Blame SPECS/gnome-tweak-tool.spec

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