[vte291] Initial import
Kalev Lember
kalev at fedoraproject.org
Wed May 7 11:19:00 UTC 2014
commit 78b4eab4ec77b55df73ff819027514bb01fa3929
Author: Kalev Lember <kalevlember at gmail.com>
Date: Wed May 7 13:17:04 2014 +0200
Initial import
https://bugzilla.redhat.com/show_bug.cgi?id=1095218
.gitignore | 1 +
...t-Only-show-the-cursor-on-motion-if-moved.patch | 39 +++++++++
sources | 1 +
vte291.spec | 90 ++++++++++++++++++++
4 files changed, 131 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..3899b8e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/vte-0.37.0.tar.xz
diff --git a/0001-widget-Only-show-the-cursor-on-motion-if-moved.patch b/0001-widget-Only-show-the-cursor-on-motion-if-moved.patch
new file mode 100644
index 0000000..6195e27
--- /dev/null
+++ b/0001-widget-Only-show-the-cursor-on-motion-if-moved.patch
@@ -0,0 +1,39 @@
+From 9077ef68bebee9a22d836a00af72aa02d5628ed4 Mon Sep 17 00:00:00 2001
+From: Bastien Nocera <hadess at hadess.net>
+Date: Fri, 16 Nov 2012 16:18:05 +0100
+Subject: [PATCH] widget: Only show the cursor on motion if moved
+
+Some devices, like Wacom tablets, will emit mouse motion
+events even when the mouse doesn't move on the tablet. This
+means that the mouse cursor will show up on the screen very shortly
+after hiding.
+
+We now check the motion event against the last location of the
+mouse cursor to avoid this behaviour.
+
+https://bugzilla.gnome.org/show_bug.cgi?id=688456
+---
+ src/vte.c | 7 +++++--
+ 1 file changed, 5 insertions(+), 2 deletions(-)
+
+diff --git a/src/vte.c b/src/vte.c
+index bbe6cf6..c5922e6 100644
+--- a/src/vte.c
++++ b/src/vte.c
+@@ -7294,8 +7294,11 @@ vte_terminal_motion_notify(GtkWidget *widget, GdkEventMotion *event)
+ } else {
+ /* Hilite any matches. */
+ vte_terminal_match_hilite(terminal, x, y);
+- /* Show the cursor. */
+- _vte_terminal_set_pointer_visible(terminal, TRUE);
++ /* Show the cursor if we moved. */
++ if (event->type != GDK_MOTION_NOTIFY ||
++ x != terminal->pvt->mouse_last_x ||
++ y != terminal->pvt->mouse_last_y)
++ _vte_terminal_set_pointer_visible(terminal, TRUE);
+ }
+
+ switch (event->type) {
+--
+1.8.0
+
diff --git a/sources b/sources
index e69de29..291d951 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+eb95e65c90dbe9cb25257f0e17cdf0e2 vte-0.37.0.tar.xz
diff --git a/vte291.spec b/vte291.spec
new file mode 100644
index 0000000..c9c1295
--- /dev/null
+++ b/vte291.spec
@@ -0,0 +1,90 @@
+%global apiver 2.91
+
+Name: vte291
+Version: 0.37.0
+Release: 1%{?dist}
+Summary: Terminal emulator library
+
+License: LGPLv2+
+URL: http://www.gnome.org/
+Source0: http://download.gnome.org/sources/vte/0.37/vte-%{version}.tar.xz
+# https://bugzilla.gnome.org/show_bug.cgi?id=688456
+Patch2: 0001-widget-Only-show-the-cursor-on-motion-if-moved.patch
+
+BuildRequires: gettext
+BuildRequires: gobject-introspection-devel
+BuildRequires: gtk3-devel
+BuildRequires: intltool
+BuildRequires: ncurses-devel
+BuildRequires: vala-tools
+
+# initscripts creates the utmp group
+Requires: initscripts
+
+%description
+VTE is a library implementing a terminal emulator widget for GTK+. VTE
+is mainly used in gnome-terminal, but can also be used to embed a
+console/terminal in games, editors, IDEs, etc.
+
+VTE supports Unicode and character set conversion, as well as emulating
+any terminal known to the system's terminfo database.
+
+%package devel
+Summary: Development files for %{name}
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+%prep
+%setup -q -n vte-%{version}
+%patch2 -p1 -b .motion
+
+%build
+CFLAGS="%optflags -fPIE -DPIE" \
+CXXFLAGS="$CFLAGS" \
+LDFLAGS="$LDFLAGS -Wl,-z,relro -Wl,-z,now -pie" \
+%configure \
+ --disable-static \
+ --with-gtk=3.0 \
+ --libexecdir=%{_libdir}/vte-%{apiver} \
+ --disable-gtk-doc \
+ --enable-introspection
+make %{?_smp_mflags} V=1
+
+%install
+%make_install
+
+# Rename the profile script for parallel installability
+mv $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/vte.sh \
+ $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/vte-%{apiver}.sh
+
+rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
+
+%find_lang vte-%{apiver}
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files -f vte-%{apiver}.lang
+%doc COPYING NEWS README
+%{_sysconfdir}/profile.d/vte-%{apiver}.sh
+%{_libdir}/libvte-%{apiver}.so.0*
+%dir %{_libdir}/vte-%{apiver}
+%attr(2711,root,utmp) %{_libdir}/vte-%{apiver}/gnome-pty-helper
+%{_libdir}/girepository-1.0/
+
+%files devel
+%{_bindir}/vte-%{apiver}
+%{_includedir}/vte-%{apiver}/
+%{_libdir}/libvte-%{apiver}.so
+%{_libdir}/pkgconfig/vte-%{apiver}.pc
+%{_datadir}/gir-1.0/
+%doc %{_datadir}/gtk-doc/
+%{_datadir}/vala/
+
+%changelog
+* Tue May 06 2014 Kalev Lember <kalevlember at gmail.com> - 0.37.0-1
+- Initial Fedora package, based on previous vte3 0.36 packaging
More information about the scm-commits
mailing list