From 14c9f0bb5592d86761f96c1a9c50cb1efafc0684 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Nov 19 2015 15:42:46 +0000 Subject: import vte291-0.38.3-2.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..19c1b8b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/vte-0.38.3.tar.xz diff --git a/.vte291.metadata b/.vte291.metadata new file mode 100644 index 0000000..ee44a90 --- /dev/null +++ b/.vte291.metadata @@ -0,0 +1 @@ +4a53d2bab9bde435e24f6598ca5d01f473cc71ab SOURCES/vte-0.38.3.tar.xz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/0001-widget-Don-t-hide-the-mouse-pointer.patch b/SOURCES/0001-widget-Don-t-hide-the-mouse-pointer.patch new file mode 100644 index 0000000..22e1548 --- /dev/null +++ b/SOURCES/0001-widget-Don-t-hide-the-mouse-pointer.patch @@ -0,0 +1,30 @@ +From ab9f289d925262c369c6611f0ecaf1f63c6a738c Mon Sep 17 00:00:00 2001 +From: Debarshi Ray +Date: Wed, 1 Jul 2015 16:45:12 +0200 +Subject: [PATCH] widget: Don't hide the mouse pointer + +Although the code has been there for a while, users have recently +reported that the pointer remains hidden even after moving the mouse. +This is more irritating than having the pointer remain visible while +using the terminal, so let's disable this code until a fix shows up. + +https://bugzilla.gnome.org/show_bug.cgi?id=725342 +--- + src/vte.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/vte.c b/src/vte.c +index 906d799..7ea3a8b 100644 +--- a/src/vte.c ++++ b/src/vte.c +@@ -2189,6 +2189,7 @@ _vte_terminal_set_pointer_visible(VteTerminal *terminal, gboolean visible) + GdkWindow *window; + struct vte_match_regex *regex = NULL; + ++ visible = TRUE; + terminal->pvt->mouse_cursor_visible = visible; + + if (! gtk_widget_get_realized (&terminal->widget)) +-- +2.1.0 + diff --git a/SOURCES/0001-widget-Only-show-the-cursor-on-motion-if-moved.patch b/SOURCES/0001-widget-Only-show-the-cursor-on-motion-if-moved.patch new file mode 100644 index 0000000..6195e27 --- /dev/null +++ b/SOURCES/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 +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/SPECS/vte291.spec b/SPECS/vte291.spec new file mode 100644 index 0000000..3617368 --- /dev/null +++ b/SPECS/vte291.spec @@ -0,0 +1,149 @@ +%global apiver 2.91 + +Name: vte291 +Version: 0.38.3 +Release: 2%{?dist} +Summary: Terminal emulator library + +License: LGPLv2+ +URL: http://www.gnome.org/ +Source0: http://download.gnome.org/sources/vte/0.38/vte-%{version}.tar.xz +# https://bugzilla.gnome.org/show_bug.cgi?id=688456 +Patch0: 0001-widget-Only-show-the-cursor-on-motion-if-moved.patch +# https://bugzilla.gnome.org/show_bug.cgi?id=725342 +Patch1: 0001-widget-Don-t-hide-the-mouse-pointer.patch + +BuildRequires: gettext +BuildRequires: gobject-introspection-devel +BuildRequires: gtk3-devel +BuildRequires: intltool +BuildRequires: vala-tools + +# initscripts creates the utmp group +Requires: initscripts +Requires: vte-profile + +%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. + +%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}. + +# vte-profile is deliberately not noarch to avoid having to obsolete a noarch +# subpackage in the future when we get rid of the vte3 / vte291 split. Yum is +# notoriously bad when handling noarch obsoletes and insists on installing both +# of the multilib packages (i686 + x86_64) as the replacement. +%package -n vte-profile +Summary: Profile script for VTE terminal emulator library +License: GPLv3+ +# vte.sh was previously part of the vte3 package +Conflicts: vte3 < 0.36.1-3 + +%description -n vte-profile +The vte-profile package contains a profile.d script for the VTE terminal +emulator library. + +%prep +%setup -q -n vte-%{version} +%patch0 -p1 -b .motion +%patch1 -p1 -b .auto-hide + +sed -i 's/VTE_DEFAULT_TERM=xterm/\0-256color/' configure + +%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-gnome-pty-helper \ + --enable-introspection +make %{?_smp_mflags} V=1 + +%install +%make_install + +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 +%{_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/ + +%files -n vte-profile +%{_sysconfdir}/profile.d/vte.sh + +%changelog +* Wed Jul 01 2015 Debarshi Ray - 0.38.3-2 +- Don't hide the mouse pointer +Resolves: #1238315 + +* Fri Apr 17 2015 Debarshi Ray - 0.38.3-1 +- Update to 0.38.3 +Resolves: #1184192 + +* Tue Dec 02 2014 Debarshi Ray - 0.38.2-3 +- Change default to TERM=xterm-256color (RH #1166428) + +* Mon Dec 01 2014 Debarshi Ray - 0.38.2-2 +- Backport upstream patch to fix zombie shells (GNOME #740929) + +* Mon Nov 10 2014 Kalev Lember - 0.38.2-1 +- Update to 0.38.2 + +* Mon Oct 13 2014 Kalev Lember - 0.38.1-1 +- Update to 0.38.1 + +* Sun Sep 14 2014 Kalev Lember - 0.38.0-1 +- Update to 0.38.0 + +* Mon Aug 18 2014 Kalev Lember - 0.37.90-1 +- Update to 0.37.90 + +* Mon Aug 18 2014 Fedora Release Engineering - 0.37.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Tue Jul 22 2014 Kalev Lember - 0.37.2-2 +- Rebuilt for gobject-introspection 1.41.4 + +* Tue Jun 24 2014 Richard Hughes - 0.37.2-1 +- Update to 0.37.2 + +* Sun Jun 08 2014 Fedora Release Engineering - 0.37.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Wed May 28 2014 Kalev Lember - 0.37.1-1 +- Update to 0.37.1 + +* Wed May 07 2014 Kalev Lember - 0.37.0-2 +- Split out a vte-profile subpackage that can be used with both vte291 / vte3 + +* Tue May 06 2014 Kalev Lember - 0.37.0-1 +- Initial Fedora package, based on previous vte3 0.36 packaging