Blame SPECS/gnome-tweak-tool.spec

891583
%global gsettings_desktop_schemas_version 3.21.2
236086
%global name_new gnome-tweaks
891583
006048
%global major_version %%(cut -d "." -f 1-2 <<<%{version})
006048
006048
Name:           gnome-tweak-tool
236086
Version:        3.28.1
228062
Release:        2%{?dist}
236086
Summary:        Customize advanced GNOME 3 options
236086
236086
# Software is GPLv3, Appdata file is CC0-1.0
236086
License:        GPLv3 and CC0
236086
URL:            https://wiki.gnome.org/action/show/Apps/Tweaks
236086
Source0:        https://download.gnome.org/sources/%{name_new}/%{majorversion}/%{name_new}-%{version}.tar.xz
236086
Patch0:         port-to-python2.patch
006048
006048
BuildRequires:  desktop-file-utils
236086
BuildRequires:  gettext
891583
BuildRequires:  libappstream-glib
236086
BuildRequires:  meson
236086
Requires:       gnome-desktop3
236086
Requires:       gnome-settings-daemon
236086
Requires:       gnome-shell >= 3.24
891583
Requires:       gnome-shell-extension-user-theme
236086
Requires:       gobject-introspection
236086
Requires:       gsettings-desktop-schemas >= 3.27.90
236086
Requires:       gtk3 >= 3.12
236086
Requires:       libnotify
236086
Requires:       libsoup
236086
Requires:       mutter
236086
Requires:       pango
236086
Provides:       gnome-tweak-tool = %{version}.%{release}
236086
Obsoletes:      gnome-tweak-tool < 3.27.3-4
236086
BuildArch:      noarch
006048
006048
%description
236086
GNOME Tweaks allows adjusting advanced configuration settings in GNOME 3. This
236086
includes things like the fonts used in user interface elements, alternative user
236086
interface themes, changes in window management behavior, GNOME Shell appearance
236086
and extension, etc.
236086
006048
006048
%prep
236086
%setup -q -n gnome-tweaks-%{version}
236086
%patch0 -p1 -b .py3
006048
006048
%build
236086
%meson
236086
%meson_build
006048
006048
006048
%install
236086
%meson_install
006048
236086
sed -i '1s|^#!/usr/bin/env python|#!%{__python}|' $RPM_BUILD_ROOT%{_bindir}/%{name_new}
006048
891583
# Update the screenshot shown in the software center
891583
#
891583
# NOTE: It would be *awesome* if this file was pushed upstream.
891583
#
891583
# See http://people.freedesktop.org/~hughsient/appdata/#screenshots for more details.
891583
#
236086
appstream-util replace-screenshots $RPM_BUILD_ROOT%{_datadir}/metainfo/org.gnome.tweaks.appdata.xml \
891583
  https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/gnome-tweak-tool/a.png \
236086
  https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/gnome-tweak-tool/b.png
891583
236086
%find_lang %{name_new}
2b55cd
2b55cd
2b55cd
%check
006048
# Leave the desktop file validation, but don't return an error value ("Phanteon"
2b55cd
# value not supported yet by validator in "OnlyShowIn" key)
236086
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/*.desktop || true
236086
appstream-util validate-relax --nonet $RPM_BUILD_ROOT/%{_datadir}/metainfo/*.appdata.xml
006048
006048
%post
006048
/bin/touch --no-create %{_datadir}/icons/hicolor/ &>/dev/null || :
006048
006048
006048
%postun
006048
if [ $1 -eq 0 ] ; then
006048
  /bin/touch --no-create %{_datadir}/icons/hicolor/ &>/dev/null
006048
  /usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor/ &>/dev/null || :
006048
fi
006048
006048
006048
%posttrans
006048
/usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
006048
006048
236086
%files -f %{name_new}.lang
236086
%doc AUTHORS NEWS README.md
236086
%license LICENSES/
236086
%{_bindir}/%{name_new}
891583
%{_libexecdir}/gnome-tweak-tool-lid-inhibitor
006048
%{python_sitelib}/gtweak/
236086
%{_datadir}/metainfo/*.appdata.xml
236086
%{_datadir}/applications/*.desktop
236086
%{_datadir}/%{name_new}/
236086
%{_datadir}/icons/hicolor/*/apps/*.png
236086
%{_datadir}/icons/hicolor/scalable/apps/*.svg
006048
006048
006048
%changelog
236086
* Thu Jun 14 2018 Carlos Soriano <csoriano@redhat.com> - 3.28.1-2
236086
- Port to python2
236086
- Resolves: #1590848
236086
236086
* Fri Jun 08 2018 Richard Hughes <rhughes@redhat.com> - 3.28.1-1
236086
- Update to 3.28.1
236086
- Resolves: #1568638
236086
228062
* Fri Apr 13 2018 Kalev Lember <klember@redhat.com> - 3.22.0-2
228062
- Remove scaling factor setting, moved to control-center in RHEL 7.5
228062
- Resolves: #1567040
228062
891583
* Thu Sep 22 2016 Kalev Lember <klember@redhat.com> - 3.22.0-1
891583
- Update to 3.22.0
891583
891583
* Tue Sep 06 2016 Kalev Lember <klember@redhat.com> - 3.21.91-1
891583
- Update to 3.21.91
891583
- Set minimum required gsettings-desktop-schemas version
891583
- Update project URLs
891583
891583
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.20.1-2
891583
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
891583
891583
* Tue May 03 2016 Kalev Lember <klember@redhat.com> - 3.20.1-1
891583
- Update to 3.20.1
891583
891583
* Wed Mar 23 2016 Kalev Lember <klember@redhat.com> - 3.20.0-1
891583
- Update to 3.20.0
891583
891583
* Wed Feb 17 2016 Richard Hughes <rhughes@redhat.com> - 3.19.90-1
891583
- Update to 3.19.90
891583
891583
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.19.1-2
891583
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
891583
891583
* Wed Jan 20 2016 Kalev Lember <klember@redhat.com> - 3.19.1-1
891583
- Update to 3.19.1
891583
891583
* Wed Nov 11 2015 Kalev Lember <klember@redhat.com> - 3.18.1-1
891583
- Update to 3.18.1
891583
891583
* Mon Sep 21 2015 Kalev Lember <klember@redhat.com> - 3.18.0-1
891583
- Update to 3.18.0
891583
891583
* Tue Aug 18 2015 Kalev Lember <klember@redhat.com> - 3.17.90-1
891583
- Update to 3.17.90
891583
- Use make_install macro
891583
891583
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.17.1-2
891583
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
891583
891583
* Thu Apr 30 2015 Kalev Lember <kalevlember@gmail.com> - 3.17.1-1
891583
- Update to 3.17.1
891583
891583
* Thu Apr 16 2015 Kalev Lember <kalevlember@gmail.com> - 3.16.1-1
891583
- Update to 3.16.1
891583
891583
* Mon Mar 30 2015 Richard Hughes <rhughes@redhat.com> - 3.16.0-2
891583
- Use better AppData screenshots
891583
891583
* Tue Mar 24 2015 Kalev Lember <kalevlember@gmail.com> - 3.16.0-1
891583
- Update to 3.16.0
891583
891583
* Tue Mar 17 2015 Kalev Lember <kalevlember@gmail.com> - 3.15.92-1
891583
- Update to 3.15.92
891583
- Use license macro for the COPYING file
2b55cd
891583
* Tue Feb 17 2015 Richard Hughes <rhughes@redhat.com> - 3.15.90-1
891583
- Update to 3.15.90
2b55cd
2b55cd
* Fri Nov 14 2014 Kalev Lember <kalevlember@gmail.com> - 3.14.2-1
2b55cd
- Update to 3.14.2
2b55cd
2b55cd
* Tue Sep 23 2014 Kalev Lember <kalevlember@gmail.com> - 3.14.0-1
2b55cd
- Update to 3.14.0
2b55cd
2b55cd
* Wed Sep 17 2014 Kalev Lember <kalevlember@gmail.com> - 3.13.92-1
2b55cd
- Update to 3.13.92
2b55cd
2b55cd
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.12.0-2
2b55cd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2b55cd
2b55cd
* Thu Mar 27 2014 Mohamed El Morabity <melmorabity@fedoraproject.org> - 3.12.0-1
2b55cd
- Update to 3.12.0
2b55cd
2b55cd
* Wed Nov 20 2013 Mohamed El Morabity <melmorabity@fedoraproject.org> - 3.10.1-2
2b55cd
- Drop now useless dependency on Nautilus (RHBZ #1030449)
2b55cd
2b55cd
* Wed Nov 13 2013 Richard Hughes <rhughes@redhat.com> - 3.10.1-1
2b55cd
- Update to 3.10.1
2b55cd
2b55cd
* Sat Oct 19 2013 Mohamed El Morabity <melmorabity@fedoraproject.org> - 3.10.0-2
2b55cd
- Fix extension update checks
2b55cd
- Fix RHBZ #1017801
2b55cd
2b55cd
* Wed Sep 25 2013 Mohamed El Morabity - 3.10.0-1
2b55cd
- Update to 3.10.0
2b55cd
2b55cd
* Thu Sep 19 2013 Mohamed El Morabity <melmorabity@fedoraproject.org> - 3.9.92-1
2b55cd
- Update to 3.9.92
2b55cd
2b55cd
* Wed Sep 04 2013 Mohamed El Morabity <melmorabity@fedoraproject.org> - 3.9.91-1
2b55cd
- Update to 3.9.91
2b55cd
2b55cd
* Thu Aug 22 2013 Kalev Lember <kalevlember@gmail.com> - 3.9.90.1-1
2b55cd
- Update to 3.9.90.1
2b55cd
2b55cd
* Thu Aug 22 2013 Adam Williamson <awilliam@redhat.com> - 3.9.90-1
2b55cd
- bump to latest version
2b55cd
- drop shell_themes.patch as #703760 is marked FIXED
2b55cd
2b55cd
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.8.1-2
2b55cd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
006048
006048
* Tue Jul 23 2013 Mohamed El Morabity <melmorabity@fedoraproject.org> - 3.8.1-1
006048
- Update to 3.8.1
006048
- Drop gnome-tweak-tool-3.8.0-pref.js.patch patch (merged upstream)
006048
006048
* Sun Jul 07 2013 Mohamed El Morabity <pikachu.2014@gmail.com> - 3.8.0-3
006048
- Add patch to make gnome-tweak-tool look shell themes only in ~/.themes
006048
006048
* Sat May 25 2013 Mohamed El Morabity <pikachu.2014@gmail.com> - 3.8.0-2
006048
- Add patch to allow pref.js for system extensions (thanks to Ralph Bean)
006048
006048
* Mon Apr 08 2013 Mohamed El Morabity <melmorabity@fedoraproject.org> - 3.8.0-1
006048
- Update to 3.8.0
006048
006048
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7.4-2
006048
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
006048
006048
* Wed Jan 16 2013 Mohamed El Morabity <melmorabity@fedoraproject.org> - 3.7.4-1
006048
- Update to 3.7.4
006048
- Drop remove_lid_close_settings patch, fixed upstream
006048
- Spec cleanup
006048
006048
* Fri Nov  2 2012 Michel Salim <salimma@fedoraproject.org> - 3.6.1-2
006048
- Drop lid close configuration options that are now handled by systemd
006048
006048
* Tue Oct 16 2012 Kalev Lember <kalevlember@gmail.com> - 3.6.1-1
006048
- Update to 3.6.1
006048
006048
* Wed Oct  3 2012 Matthias Clasen <mclasen@redhat.com> - 3.6.0-1
006048
- Update to 3.6.0
006048
006048
* Wed Aug 22 2012 Richard Hughes <hughsient@gmail.com> - 3.5.5-1
006048
- Update to 3.5.5
006048
006048
* Thu Aug  9 2012 Michel Salim <salimma@fedoraproject.org> - 3.5.4-1
006048
- Update to 3.5.4
006048
006048
* Sun Aug  5 2012 Michel Salim <salimma@fedoraproject.org> - 3.5.0-0.1.20120717git3869087
006048
- Update to 3.5.0 snapshot for GNOME 3.5.x compatibility
006048
006048
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.0.1-3
006048
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
006048
006048
* Mon Jun  4 2012 Michel Salim <salimma@fedoraproject.org> - 3.4.0.1-2
006048
- Add R: on user theme extension (# 826129)
006048
006048
* Mon May 14 2012 Richard Hughes <hughsient@gmail.com> - 3.4.0.1-1
006048
- Update to 3.4.0.1
006048
006048
* Mon May 14 2012 Richard Hughes <hughsient@gmail.com> - 3.4.0-1
006048
- Update to 3.4.0
006048
006048
* Sat Jan 21 2012 Michel Salim <salimma@fedoraproject.org> - 3.3.4-1
006048
- Update to 3.3.4
006048
006048
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-2
006048
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
006048
006048
* Mon Nov 14 2011 Michel Salim <salimma@fedoraproject.org> - 3.2.1-1
006048
- Update to 3.2.1
006048
006048
* Wed Sep 28 2011 Ray <rstrode@redhat.com> - 3.2.0-1
006048
- Update to 3.2.0
006048
006048
* Thu Sep  1 2011 Michel Salim <salimma@fedoraproject.org> - 3.1.90-1
006048
- Update to 3.1.90
006048
006048
* Sun Aug 21 2011 Michel Salim <salimma@fedoraproject.org> - 3.1.0-1
006048
- Update to 3.1.0
006048
006048
* Tue Jul 19 2011 Michel Salim <salimma@fedoraproject.org> - 3.0.5-2
006048
- Depend on nautilus (# 722541)
006048
006048
* Thu Jun 30 2011 Michel Salim <salimma@fedoraproject.org> - 3.0.5-1
006048
- Update to 3.0.5
006048
- upstream news:
006048
  http://ftp.gnome.org/pub/GNOME/sources/gnome-tweak-tool/3.0/gnome-tweak-tool-3.0.5.news
006048
  * autostart fixes
006048
  * appearance improvements
006048
  * focus follow mouse mode
006048
  * finer-grained desktop item visibility
006048
  * streamlined shell restart offer when enabling extensions
006048
006048
* Mon Jun 13 2011 Rahul Sundaram <sundaram@fedoraproject.org> - 3.0.4-1
006048
- Update to 3.0.4
006048
- Dropped redundant commented out lines in spec
006048
- Updated description
006048
- Dropped defattr since it is set by default in recent RPM
006048
- http://ftp.gnome.org/pub/GNOME/sources/gnome-tweak-tool/3.0/gnome-tweak-tool-3.0.4.news
006048
  * Enables support for system wide themes
006048
  * Supports management of shell extensions 
006048
006048
* Wed May  4 2011 Michel Salim <salimma@fedoraproject.org> - 3.0.3-1
006048
- Update to 3.0.3
006048
006048
* Mon Apr  4 2011 Michel Salim <salimma@fedoraproject.org> - 3.0.0-1
006048
- Update to 3.0.0
006048
006048
* Fri Mar 25 2011 Michel Salim <salimma@fedoraproject.org> - 2.91.93-2
006048
- Enable icon theme selection
006048
006048
* Fri Mar 25 2011 Michel Salim <salimma@fedoraproject.org> - 2.91.93-1
006048
- Update to 2.91.93
006048
006048
* Tue Mar 22 2011 Michel Salim <salimma@fedoraproject.org> - 2.91.92-3
006048
- Include license information
006048
006048
* Tue Mar 22 2011 Michel Salim <salimma@fedoraproject.org> - 2.91.92-2
006048
- Use %%configure macro
006048
- Validate desktop file
006048
006048
* Mon Mar 21 2011 Michel Salim <salimma@fedoraproject.org> - 2.91.92-1
006048
- Initial package