c25f56
%define gettext_package gnome-terminal
c25f56
c25f56
%define glib2_version 2.50.0
c25f56
%define gtk3_version 3.22.27
c25f56
%define vte_version 0.52.2
c25f56
%define desktop_file_utils_version 0.2.90
c25f56
c25f56
Name: gnome-terminal
c25f56
Version: 3.28.2
c25f56
Release: 2%{?dist}
c25f56
Summary: Terminal emulator for GNOME
c25f56
c25f56
License: GPLv3+ and GFDL
c25f56
URL: http://www.gnome.org/
c25f56
Source0: http://download.gnome.org/sources/gnome-terminal/3.28/gnome-terminal-%{version}.tar.xz
c25f56
c25f56
Patch0: 0001-client-legacy-Fix-invalid-free.patch
c25f56
c25f56
Patch100: %{name}-notify-open-title-transparency.patch
c25f56
c25f56
# https://bugzilla.redhat.com/show_bug.cgi?id=1323217
c25f56
Patch101: %{name}-Revert-server-Error-out-on-unsupported-locale.patch
c25f56
c25f56
# https://bugzilla.redhat.com/show_bug.cgi?id=1103380
c25f56
Patch102: %{name}-scroll-speed.patch
c25f56
c25f56
Patch103: %{name}-don-t-treat-warnings-as-errors.patch
c25f56
c25f56
BuildRequires: glib2-devel >= %{glib2_version}
c25f56
BuildRequires: GConf2-devel
c25f56
BuildRequires: gtk3-devel >= %{gtk3_version}
c25f56
BuildRequires: gsettings-desktop-schemas-devel
c25f56
BuildRequires: vte291-devel >= %{vte_version}
c25f56
BuildRequires: desktop-file-utils >= %{desktop_file_utils_version}
c25f56
BuildRequires: gettext
c25f56
BuildRequires: intltool
c25f56
BuildRequires: gnome-common
c25f56
BuildRequires: autoconf automake libtool
c25f56
BuildRequires: itstool
c25f56
BuildRequires: dconf-devel
c25f56
BuildRequires: libuuid-devel
c25f56
BuildRequires: nautilus-devel
c25f56
BuildRequires: gnome-shell
c25f56
BuildRequires: pcre2-devel
c25f56
BuildRequires: systemd
c25f56
BuildRequires: vala-devel
c25f56
c25f56
Requires: dbus-x11
c25f56
Requires: glib2%{?_isa} >= %{glib2_version}
c25f56
Requires: gsettings-desktop-schemas
c25f56
Requires: gtk3%{?_isa} >= %{gtk3_version}
c25f56
Requires: vte291%{?_isa} >= %{vte_version}
c25f56
c25f56
%description
c25f56
gnome-terminal is a terminal emulator for GNOME. It features the ability to use
c25f56
multiple terminals in a single window (tabs) and profiles support.
c25f56
c25f56
%package nautilus
c25f56
Summary: GNOME Terminal extension for Nautilus
c25f56
Requires: %{name}%{?_isa} = %{version}-%{release}
c25f56
c25f56
Provides: nautilus-open-terminal = %{version}-%{release}
c25f56
Obsoletes: nautilus-open-terminal < 0.20-8
c25f56
c25f56
%description nautilus
c25f56
This package provides a Nautilus extension that adds the 'Open in Terminal'
c25f56
option to the right-click context menu in Nautilus.
c25f56
c25f56
%prep
c25f56
%setup -q
c25f56
%patch0 -p1 -b .client-free
c25f56
%patch100 -p1 -b .notify-open-title-transparency
c25f56
%patch101 -p1 -b .unsupported-locale
c25f56
%patch102 -p1 -b .scroll-speed
c25f56
%patch103 -p1 -b .warnings
c25f56
c25f56
%build
c25f56
autoreconf -f -i
c25f56
%configure --disable-static --with-gtk=3.0 --with-nautilus-extension
c25f56
c25f56
make %{?_smp_mflags}
c25f56
c25f56
%install
c25f56
%make_install
c25f56
c25f56
rm -f $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-3.0/*.la
c25f56
c25f56
%find_lang %{gettext_package} --with-gnome
c25f56
c25f56
%check
c25f56
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/org.gnome.Terminal.desktop
c25f56
c25f56
%postun
c25f56
if [ $1 -eq 0 ] ; then
c25f56
    /usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
c25f56
fi
c25f56
c25f56
%posttrans
c25f56
/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
c25f56
c25f56
%files -f %{gettext_package}.lang
c25f56
%license COPYING
c25f56
%doc AUTHORS NEWS
c25f56
c25f56
%{_bindir}/gnome-terminal
c25f56
%{_datadir}/metainfo/org.gnome.Terminal.appdata.xml
c25f56
%{_datadir}/applications/org.gnome.Terminal.desktop
c25f56
%{_libexecdir}/gnome-terminal-migration
c25f56
%{_libexecdir}/gnome-terminal-server
c25f56
%{_datadir}/dbus-1/services/org.gnome.Terminal.service
c25f56
%{_datadir}/glib-2.0/schemas/org.gnome.Terminal.gschema.xml
c25f56
%{_datadir}/gnome-shell
c25f56
%{_userunitdir}/gnome-terminal-server.service
c25f56
c25f56
%files nautilus
c25f56
%{_libdir}/nautilus/extensions-3.0/libterminal-nautilus.so
c25f56
%{_datadir}/metainfo/org.gnome.Terminal.Nautilus.metainfo.xml
c25f56
c25f56
%changelog
c25f56
* Fri Jun 08 2018 Debarshi Ray <rishi@fedoraproject.org> - 3.28.2-2
c25f56
- Backport fix for client-side memory error (GNOME/gnome-terminal#1)
c25f56
- Bump BuildRequires versions
c25f56
- Drop the dark theme override
c25f56
- Rebase and restore the scroll speed patches
c25f56
- Rebase and restore the patch to allow old ISO 8895 charsets
c25f56
- Restore the GConf migration tool
c25f56
- Resolves: #1568632
c25f56
c25f56
* Wed Jun 06 2018 Richard Hughes <rhughes@redhat.com> - 3.28.2-1
c25f56
- Update to 3.28.2
c25f56
- Resolves: #1568632
c25f56
c25f56
* Thu May 25 2017 Debarshi Ray <rishi@fedoraproject.org> - 3.22.1-2
c25f56
- Update Japanese translations for RHEL
c25f56
- Resolves: #1379605
c25f56
c25f56
* Tue Feb 28 2017 Debarshi Ray <rishi@fedoraproject.org> - 3.22.1-1
c25f56
- Update to 3.22.1
c25f56
- Drop upstreamed patches
c25f56
- Rebase downstream patches
c25f56
- Resolves: #1386964
c25f56
c25f56
* Fri Jul 22 2016 Debarshi Ray <rishi@fedoraproject.org> - 3.14.3-13
c25f56
- Fix the Obsoletes to replace nautilus-open-terminal
c25f56
- Resolves: #1341615
c25f56
c25f56
* Thu Jun 30 2016 Debarshi Ray <rishi@fedoraproject.org> - 3.14.3-12
c25f56
- Restore the rest of the title handling options and make it all work
c25f56
- Resolves: #1296110
c25f56
c25f56
* Fri Jun 10 2016 Debarshi Ray <rishi@fedoraproject.org> - 3.14.3-11
c25f56
- Revert the "New Terminal" entry in the application menu
c25f56
- Resolves: #1300826
c25f56
c25f56
* Wed Jun 01 2016 Debarshi Ray <rishi@fedoraproject.org> - 3.14.3-10
c25f56
- Add Provides/Obsoletes to replace nautilus-open-terminal
c25f56
- Resolves: #1341615
c25f56
c25f56
* Tue May 17 2016 Debarshi Ray <rishi@fedoraproject.org> - 3.14.3-9
c25f56
- Restore separate menuitems for opening tabs and windows
c25f56
- Resolves: #1300826
c25f56
c25f56
* Fri May 13 2016 Debarshi Ray <rishi@fedoraproject.org> - 3.14.3-8
c25f56
- Add a property to configure the scroll speed
c25f56
- Resolves: #1103380
c25f56
c25f56
* Mon Apr 11 2016 Debarshi Ray <rishi@fedoraproject.org> - 3.14.3-7
c25f56
- Restore the --title option
c25f56
- Resolves: #1296110
c25f56
c25f56
* Fri Apr  8 2016 Matthias Clasen <mclasen@redhat.com> - 3.14.3-6
c25f56
- Remove accels from some translations
c25f56
  Resolves: #1251885
c25f56
c25f56
* Tue Apr  5 2016 Ray Strode <rstrode@redhat.com> - 3.14.3-5
c25f56
- Allow old ISO 8895 charsets for backward compatibility
c25f56
  Resolves: #1323217
c25f56
c25f56
* Tue Apr  5 2016 Matthias Clasen <mclasen@redhat.com> - 3.14.3-4
c25f56
- Update translations
c25f56
- Resolves: #1272392
c25f56
c25f56
* Mon Oct  5 2015 Debarshi Ray <rishi@fedoraproject.org> - 3.14.3-3
c25f56
- Pass tab switching keys to the terminal for tabless windows
c25f56
- Resolves: #1268255
c25f56
c25f56
* Mon Sep 21 2015 Matthias Clasen <mclasen@redhat.com> - 3.14.3-2
c25f56
- Drop the dark theme override
c25f56
- Resolves: #1264054
c25f56
c25f56
* Wed Apr  8 2015 Debarshi Ray <rishi@fedoraproject.org> - 3.14.3-1
c25f56
- Update to 3.14.3
c25f56
- Drop the appdata-tools BR from RHEL
c25f56
- Add BRs on vala-devel, vala-tools and yelp-tools to generate the build
c25f56
  scripts
c25f56
- Resolves: #1174726, #1180775
c25f56
c25f56
* Mon Mar 23 2015 Richard Hughes <rhughes@redhat.com> - 3.14.2-1
c25f56
- Update to 3.14.2
c25f56
- Resolves: #1174726
c25f56
c25f56
* Mon Mar  3 2014 Matthias Clasen <mclasen@redhat.com> - 3.8.4-8
c25f56
- Rebuild
c25f56
- Resolves: #1070811
c25f56
c25f56
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 3.8.4-7
c25f56
- Mass rebuild 2014-01-24
c25f56
c25f56
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 3.8.4-6
c25f56
- Mass rebuild 2013-12-27
c25f56
c25f56
* Tue Dec 10 2013 Zeeshan Ali <zeenix@redhat.com> - 3.8.4-5
c25f56
- Fix #1030352.
c25f56
c25f56
* Tue Dec 10 2013 Zeeshan Ali <zeenix@redhat.com> - 3.8.4-4
c25f56
- Fix #1034618.
c25f56
c25f56
* Mon Dec  9 2013 Zeeshan Ali <zeenix@redhat.com> - 3.8.4-3
c25f56
- Fix #952664.
c25f56
c25f56
* Tue Nov 19 2013 Zeeshan Ali <zeenix@redhat.com> - 3.8.4-2
c25f56
- Fix #1030434.
c25f56
c25f56
* Mon Jul  8 2013 Matthias Clasen <mclasen@redhat.com> - 3.8.4-1
c25f56
- Update to 3.8.4
c25f56
- Fixes a crash on session resume (#981440)
c25f56
c25f56
* Mon Jun 10 2013 Kalev Lember <kalevlember@gmail.com> - 3.8.3-1
c25f56
- Update to 3.8.3
c25f56
- Use desktop-file-validate instead of desktop-file-install
c25f56
c25f56
* Mon May 13 2013 Richard Hughes <rhughes@redhat.com> - 3.8.2-1
c25f56
- Update to 3.8.2
c25f56
c25f56
* Mon Apr 15 2013 Kalev Lember <kalevlember@gmail.com> - 3.8.1-1
c25f56
- Update to 3.8.1
c25f56
c25f56
* Tue Apr 02 2013 Kalev Lember <kalevlember@gmail.com> - 3.8.0.1-1
c25f56
- Update to 3.8.0.1
c25f56
c25f56
* Tue Mar 26 2013 Kalev Lember <kalevlember@gmail.com> - 3.8.0-1
c25f56
- Update to 3.8.0
c25f56
c25f56
* Tue Mar 19 2013 Richard Hughes <rhughes@redhat.com> - 3.7.92-1
c25f56
- Update to 3.7.92
c25f56
c25f56
* Thu Mar  7 2013 Matthias Clasen <mclasen@redhat.com> - 3.7.91-1
c25f56
- Update to 3.7.91
c25f56
c25f56
* Tue Feb 26 2013 Matthias Clasen <mclasen@redhat.com> - 3.7.2-3
c25f56
- Bring back titlebars on maximized terminals
c25f56
c25f56
* Fri Jan 25 2013 Kalev Lember <kalevlember@gmail.com> - 3.7.2-2
c25f56
- Backport a fix for a crash in terminal_screen_container_style_updated
c25f56
c25f56
* Fri Jan 25 2013 Kalev Lember <kalevlember@gmail.com> - 3.7.2-1
c25f56
- Update to 3.7.2
c25f56
c25f56
* Wed Jan 16 2013 Richard Hughes <hughsient@gmail.com> - 3.7.1-1
c25f56
- Update to 3.7.1
c25f56
c25f56
* Wed Jan 09 2013 Richard Hughes <hughsient@gmail.com> - 3.7.0-1
c25f56
- Update to 3.7.0
c25f56
c25f56
* Tue Oct 16 2012 Kalev Lember <kalevlember@gmail.com> - 3.6.1-1
c25f56
- Update to 3.6.1
c25f56
c25f56
* Tue Sep 25 2012 Matthias Clasen <mclasen@redhat.com> - 3.6.0-1
c25f56
- Update to 3.6.0
c25f56
c25f56
* Tue Aug 21 2012 Richard Hughes <hughsient@gmail.com> - 3.5.90-1
c25f56
- Update to 3.5.90
c25f56
c25f56
* Fri Jul 27 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.1.1-2
c25f56
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
c25f56
c25f56
* Tue Apr 17 2012 Kalev Lember <kalevlember@gmail.com> - 3.4.1.1-1
c25f56
- Update to 3.4.1.1
c25f56
c25f56
* Tue Mar 27 2012 Kalev Lember <kalevlember@gmail.com> - 3.4.0.1-1
c25f56
- Update to 3.4.0.1
c25f56
- Avoid listing files twice in %%files
c25f56
c25f56
* Tue Feb  7 2012 Matthias Clasen <mclasen@redhat.com> - 3.3.0-1
c25f56
- Update to 3.3.0
c25f56
c25f56
* Thu Jan 12 2012 Matthias Clasen <mclasen@redhat.com> - 3.2.1-2
c25f56
- Update license field (#639132)
c25f56
c25f56
* Wed Oct 26 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-2
c25f56
- Rebuilt for glibc bug#747377
c25f56
c25f56
* Tue Oct 18 2011 Matthias Clasen <mclasen@redhat.com> - 3.2.1-1
c25f56
- Update to 3.2.1
c25f56
c25f56
* Tue Sep 27 2011 Ray <rstrode@redhat.com> - 3.2.0-1
c25f56
- Update to 3.2.0
c25f56
c25f56
* Mon Apr 25 2011 Matthias Clasen <mclasen@redhat.com> 3.0.1-1
c25f56
- Update to 3.0.1
c25f56
c25f56
* Mon Apr  4 2011 Matthias Clasen <mclasen@redhat.com> 3.0.0-1
c25f56
- Update to 3.0.0
c25f56
c25f56
* Tue Feb 22 2011 Matthias Clasen <mclasen@redhat.com> 2.33.90-1
c25f56
- Update to 2.33.90
c25f56
c25f56
* Thu Feb 10 2011 Matthias Clasen <mclasen@redhat.com> 2.33.5-3
c25f56
- Rebuild against newer gtk
c25f56
c25f56
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.33.5-2
c25f56
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
c25f56
c25f56
* Wed Feb  2 2011 Matthias Clasen <mclasen@redhat.com> - 2.33.5-1
c25f56
- Update to 2.33.5
c25f56
c25f56
* Wed Jan 12 2011 Matthias Clasen <mclasen@redhat.com> - 2.33.4-2
c25f56
- Make the find dialog work again
c25f56
c25f56
* Tue Jan 11 2011 Matthias Clasen <mclasen@redhat.com> - 2.33.4-1
c25f56
- Update to 2.33.4
c25f56
c25f56
* Fri Jan  7 2011 Matthias Clasen <mclasen@redhat.com> - 2.33.3-1
c25f56
- Update to 2.33.3
c25f56
c25f56
* Fri Dec  3 2010 Matthias Clasen <mclasen@redhat.com> - 2.33.2-2
c25f56
- Rebuild against new gtk
c25f56
c25f56
* Thu Nov 11 2010 Matthias Clasen <mclasen@redhat.com> - 2.33.2-1
c25f56
- Update to 2.33.2
c25f56
- Back to gtk3
c25f56
c25f56
* Fri Oct  8 2010 Owen Taylor <otaylor@redhat.com> - 2.33.0-3
c25f56
- Revert back to a gtk2 build - the gtk3 build has major sizing issues
c25f56
  (rhbz #641337)
c25f56
c25f56
* Thu Oct  7 2010 Matthias Clasen <mclasen@redhat.com> - 2.33.0-2
c25f56
- Build against gtk3
c25f56
c25f56
* Mon Oct  4 2010 Matthias Clasen <mclasen@redhat.com> - 2.33.0-1
c25f56
- Update to 2.33.0
c25f56
c25f56
* Wed Sep 29 2010 Matthias Clasen <mclasen@redhat.com> - 2.32.0-1
c25f56
- Update to 2.32.0
c25f56
c25f56
* Tue Aug 31 2010 Matthias Clasen <mclasen@redhat.com> - 2.31.91-1
c25f56
- Update to 2.31.91
c25f56
c25f56
* Thu Aug 19 2010 Matthias Clasen <mclasen@redhat.com> - 2.31.90-1
c25f56
- Update to 2.31.90
c25f56
c25f56
* Thu May 27 2010 Matthias Clasen <mclasen@redhat.com> - 2.31.3-1
c25f56
- Update to 2.31.3
c25f56
c25f56
* Tue May  4 2010 Matthias Clasen <mclasen@redhat.com> - 2.31.2-2
c25f56
- Add more translations for search UI
c25f56
c25f56
* Tue May  4 2010 Matthias Clasen <mclasen@redhat.com> - 2.31.2-1
c25f56
- Update to 2.31.2
c25f56
- Add translations for search UI
c25f56
c25f56
* Tue May  4 2010 Matthias Clasen <mclasen@redhat.com> - 2.31.1-1
c25f56
- Update to 2.31.1
c25f56
c25f56
* Mon Apr 26 2010 Matthias Clasen <mclasen@redhat.com> - 2.30.1-1
c25f56
- Update to 2.30.1
c25f56
c25f56
* Mon Mar 29 2010 Matthias Clasen <mclasen@redhat.com> - 2.30.0-1
c25f56
- Update to 2.30.0
c25f56
c25f56
* Thu Mar 11 2010 Matthias Clasen <mclasen@redhat.com> - 2.29.92-1
c25f56
- Update to 2.29.92
c25f56
c25f56
* Sun Feb 14 2010 Matthias Clasen <mclasen@redhat.com> - 2.29.6-3
c25f56
- Add missing libs
c25f56
c25f56
* Thu Jan 14 2010 Behdad Esfahbod <behdad@redhat.com> - 2.29.6-2
c25f56
- Second try
c25f56
- Drop stale patch
c25f56
c25f56
* Thu Jan 14 2010 Behdad Esfahbod <behdad@redhat.com> - 2.29.6-1
c25f56
- Update to 2.29.6