ae83b6
%global apiver 2.91
ae83b6
ae83b6
Name:           vte291
ae83b6
Version:        0.52.2
ae83b6
Release:        2%{?dist}
ae83b6
Summary:        Terminal emulator library
ae83b6
ae83b6
License:        LGPLv2+
ae83b6
URL:            http://www.gnome.org/
ae83b6
ae83b6
Source0:        http://download.gnome.org/sources/vte/0.52/vte-%{version}.tar.xz
ae83b6
Source1:        %{name}-git.mk
ae83b6
ae83b6
# https://bugzilla.gnome.org/show_bug.cgi?id=711059
ae83b6
# https://bugzilla.redhat.com/show_bug.cgi?id=1103380
ae83b6
Patch100:       %{name}-command-notify-scroll-speed.patch
ae83b6
ae83b6
# https://bugzilla.redhat.com/show_bug.cgi?id=1443504
ae83b6
# https://bugzilla.redhat.com/show_bug.cgi?id=1590537
ae83b6
Patch101:       %{name}-restore-gnome-pty-helper.patch
ae83b6
ae83b6
# https://bugzilla.redhat.com/show_bug.cgi?id=1569801
ae83b6
Patch102:       %{name}-avoid-braced-initialization.patch
ae83b6
ae83b6
BuildRequires:  autoconf
ae83b6
BuildRequires:  automake
ae83b6
BuildRequires:  libtool
ae83b6
BuildRequires:  gettext
ae83b6
BuildRequires:  pkgconfig(gnutls)
ae83b6
BuildRequires:  gobject-introspection-devel
ae83b6
BuildRequires:  gperf
ae83b6
BuildRequires:  pkgconfig(gtk+-3.0)
ae83b6
BuildRequires:  pkgconfig(libpcre2-8)
ae83b6
BuildRequires:  intltool
ae83b6
BuildRequires:  vala
ae83b6
ae83b6
# initscripts creates the utmp group
ae83b6
Requires:       initscripts
ae83b6
Requires:       vte-profile
ae83b6
ae83b6
Conflicts:      gnome-terminal < 3.20.1-2
ae83b6
ae83b6
%description
ae83b6
VTE is a library implementing a terminal emulator widget for GTK+. VTE
ae83b6
is mainly used in gnome-terminal, but can also be used to embed a
ae83b6
console/terminal in games, editors, IDEs, etc.
ae83b6
ae83b6
%package        devel
ae83b6
Summary:        Development files for %{name}
ae83b6
Requires:       %{name}%{?_isa} = %{version}-%{release}
ae83b6
ae83b6
%description devel
ae83b6
The %{name}-devel package contains libraries and header files for
ae83b6
developing applications that use %{name}.
ae83b6
ae83b6
# vte-profile is deliberately not noarch to avoid having to obsolete a noarch
ae83b6
# subpackage in the future when we get rid of the vte3 / vte291 split. Yum is
ae83b6
# notoriously bad when handling noarch obsoletes and insists on installing both
ae83b6
# of the multilib packages (i686 + x86_64) as the replacement.
ae83b6
%package -n     vte-profile
ae83b6
Summary:        Profile script for VTE terminal emulator library
ae83b6
License:        GPLv3+
ae83b6
# vte.sh was previously part of the vte3 package
ae83b6
Conflicts:      vte3 < 0.36.1-3
ae83b6
ae83b6
%description -n vte-profile
ae83b6
The vte-profile package contains a profile.d script for the VTE terminal
ae83b6
emulator library.
ae83b6
ae83b6
%prep
ae83b6
%setup -q -n vte-%{version}
ae83b6
%patch100 -p1 -b .command-notify-scroll-speed
ae83b6
%patch101 -p1 -b .restore-gnome-pty-helper
ae83b6
%patch102 -p1 -b .avoid-braced-initialization
ae83b6
ae83b6
%build
ae83b6
install -m 0644 %{SOURCE1} ./git.mk
ae83b6
autoreconf --force --install
ae83b6
ae83b6
CFLAGS="%optflags -fPIE -DPIE -Wno-nonnull" \
ae83b6
CXXFLAGS="$CFLAGS" \
ae83b6
LDFLAGS="$LDFLAGS -Wl,-z,relro -Wl,-z,now -pie" \
ae83b6
%configure \
ae83b6
        --disable-static \
ae83b6
        --libexecdir=%{_libdir}/vte-%{apiver} \
ae83b6
        --disable-gtk-doc \
ae83b6
        --enable-gnome-pty-helper \
ae83b6
        --enable-introspection
ae83b6
make %{?_smp_mflags} V=1
ae83b6
ae83b6
%install
ae83b6
%make_install
ae83b6
ae83b6
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
ae83b6
ae83b6
%find_lang vte-%{apiver}
ae83b6
ae83b6
%post -p /sbin/ldconfig
ae83b6
ae83b6
%postun -p /sbin/ldconfig
ae83b6
ae83b6
%files -f vte-%{apiver}.lang
ae83b6
%license COPYING
ae83b6
%doc NEWS README
ae83b6
%{_libdir}/libvte-%{apiver}.so.0*
ae83b6
%dir %{_libdir}/vte-%{apiver}
ae83b6
%attr(2711,root,utmp) %{_libdir}/vte-%{apiver}/gnome-pty-helper
ae83b6
%{_libdir}/girepository-1.0/
ae83b6
ae83b6
%files devel
ae83b6
%{_bindir}/vte-%{apiver}
ae83b6
%{_includedir}/vte-%{apiver}/
ae83b6
%{_libdir}/libvte-%{apiver}.so
ae83b6
%{_libdir}/pkgconfig/vte-%{apiver}.pc
ae83b6
%{_datadir}/gir-1.0/
ae83b6
%doc %{_datadir}/gtk-doc/
ae83b6
%{_datadir}/vala/
ae83b6
ae83b6
%files -n vte-profile
ae83b6
%{_sysconfdir}/profile.d/vte.sh
ae83b6
ae83b6
%changelog
ae83b6
* Thu Jun 07 2018 Debarshi Ray <rishi@fedoraproject.org> - 0.52.2-2
ae83b6
- Fix race between gnome-pty-helper and VteTerminal
ae83b6
Resolves: #1569801, #1590537
ae83b6
ae83b6
* Thu Jun 07 2018 Debarshi Ray <rishi@fedoraproject.org> - 0.52.2-1
ae83b6
- Update to 0.52.2
ae83b6
Resolves: #1569801
ae83b6
ae83b6
* Tue May 23 2017 Debarshi Ray <rishi@fedoraproject.org> - 0.46.2-1
ae83b6
- Update to 0.46.2
ae83b6
- Backport upstream patch to remove an unused variable
ae83b6
Resolves: #1387056
ae83b6
ae83b6
* Mon May 22 2017 Debarshi Ray <rishi@fedoraproject.org> - 0.46.1-2
ae83b6
- Restore gnome-pty-helper
ae83b6
- Add git.mk and other dependencies to regenerate the build scripts
ae83b6
Resolves: #1443504
ae83b6
ae83b6
* Fri Feb 24 2017 Debarshi Ray <rishi@fedoraproject.org> - 0.46.1-1
ae83b6
- Update to 0.46.1
ae83b6
- Drop upstreamed patches
ae83b6
- Drop workaround for old GTK+ bug (#1238315)
ae83b6
- Rebase downstream patches
ae83b6
Resolves: #1387056
ae83b6
ae83b6
* Fri May 13 2016 Debarshi Ray <rishi@fedoraproject.org> - 0.38.4-2
ae83b6
- Add a property to configure the scroll speed
ae83b6
Resolves: #1103380
ae83b6
ae83b6
* Wed Mar 09 2016 Debarshi Ray <rishi@fedoraproject.org> - 0.38.4-1
ae83b6
- Update to 0.38.4
ae83b6
Resolves: #1303630
ae83b6
ae83b6
* Wed Feb 24 2016 Debarshi Ray <rishi@fedoraproject.org> - 0.38.3-3
ae83b6
- Backport support for CSI 3J (clear scrollback)
ae83b6
Resolves: #1186623
ae83b6
ae83b6
* Wed Jul 01 2015 Debarshi Ray <rishi@fedoraproject.org> - 0.38.3-2
ae83b6
- Don't hide the mouse pointer
ae83b6
Resolves: #1238315
ae83b6
ae83b6
* Fri Apr 17 2015 Debarshi Ray <rishi@fedoraproject.org> - 0.38.3-1
ae83b6
- Update to 0.38.3
ae83b6
Resolves: #1184192
ae83b6
ae83b6
* Tue Dec 02 2014 Debarshi Ray <rishi@fedoraproject.org> - 0.38.2-3
ae83b6
- Change default to TERM=xterm-256color (RH #1166428)
ae83b6
ae83b6
* Mon Dec 01 2014 Debarshi Ray <rishi@fedoraproject.org> - 0.38.2-2
ae83b6
- Backport upstream patch to fix zombie shells (GNOME #740929)
ae83b6
ae83b6
* Mon Nov 10 2014 Kalev Lember <kalevlember@gmail.com> - 0.38.2-1
ae83b6
- Update to 0.38.2
ae83b6
ae83b6
* Mon Oct 13 2014 Kalev Lember <kalevlember@gmail.com> - 0.38.1-1
ae83b6
- Update to 0.38.1
ae83b6
ae83b6
* Sun Sep 14 2014 Kalev Lember <kalevlember@gmail.com> - 0.38.0-1
ae83b6
- Update to 0.38.0
ae83b6
ae83b6
* Mon Aug 18 2014 Kalev Lember <kalevlember@gmail.com> - 0.37.90-1
ae83b6
- Update to 0.37.90
ae83b6
ae83b6
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.37.2-3
ae83b6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
ae83b6
ae83b6
* Tue Jul 22 2014 Kalev Lember <kalevlember@gmail.com> - 0.37.2-2
ae83b6
- Rebuilt for gobject-introspection 1.41.4
ae83b6
ae83b6
* Tue Jun 24 2014 Richard Hughes <rhughes@redhat.com> - 0.37.2-1
ae83b6
- Update to 0.37.2
ae83b6
ae83b6
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.37.1-2
ae83b6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
ae83b6
ae83b6
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 0.37.1-1
ae83b6
- Update to 0.37.1
ae83b6
ae83b6
* Wed May 07 2014 Kalev Lember <kalevlember@gmail.com> - 0.37.0-2
ae83b6
- Split out a vte-profile subpackage that can be used with both vte291 / vte3
ae83b6
ae83b6
* Tue May 06 2014 Kalev Lember <kalevlember@gmail.com> - 0.37.0-1
ae83b6
- Initial Fedora package, based on previous vte3 0.36 packaging