bd487ed
%global majorversion %(cut -d "." -f 1-2 <<<%{version})
bd487ed
bd487ed
Name:           gnome-tweaks
e5f8fe8
Version:        3.28.1
bd487ed
Release:        1%{?dist}
bd487ed
Summary:        Customize advanced GNOME 3 options
bd487ed
bd487ed
# Software is GPLv3, Appdata file is CC0-1.0
bd487ed
License:        GPLv3 and CC0
bd487ed
URL:            https://wiki.gnome.org/action/show/Apps/Tweaks
bd487ed
Source0:        https://download.gnome.org/sources/%{name}/%{majorversion}/%{name}-%{version}.tar.xz
bd487ed
bd487ed
BuildRequires:  desktop-file-utils
bd487ed
BuildRequires:  gettext
bd487ed
BuildRequires:  libappstream-glib
bd487ed
BuildRequires:  meson
bd487ed
BuildRequires:  python3-devel
bd487ed
Requires:       gnome-desktop3
bd487ed
Requires:       gnome-settings-daemon
bd487ed
Requires:       gnome-shell >= 3.24
bd487ed
Requires:       gnome-shell-extension-user-theme
bd487ed
Requires:       gobject-introspection
bd487ed
Requires:       gsettings-desktop-schemas >= 3.27.90
bd487ed
Requires:       gtk3 >= 3.12
bd487ed
Requires:       libnotify
bd487ed
Requires:       libsoup
bd487ed
Requires:       mutter
bd487ed
Requires:       pango
bd487ed
Requires:       python3dist(pygobject)
bd487ed
Provides:       gnome-tweak-tool = %{version}.%{release}
bd487ed
Obsoletes:      gnome-tweak-tool < 3.27.3-4
bd487ed
BuildArch:      noarch
bd487ed
bd487ed
%description
bd487ed
GNOME Tweaks allows adjusting advanced configuration settings in GNOME 3. This
bd487ed
includes things like the fonts used in user interface elements, alternative user
bd487ed
interface themes, changes in window management behavior, GNOME Shell appearance
bd487ed
and extension, etc.
bd487ed
bd487ed
bd487ed
%prep
bd487ed
%autosetup
bd487ed
bd487ed
bd487ed
%build
bd487ed
%meson
bd487ed
%meson_build
bd487ed
bd487ed
bd487ed
%install
bd487ed
%meson_install
bd487ed
bd487ed
# Update the screenshot shown in the software center
bd487ed
#
bd487ed
# NOTE: It would be *awesome* if this file was pushed upstream.
bd487ed
#
bd487ed
# See http://people.freedesktop.org/~hughsient/appdata/#screenshots for more details.
bd487ed
#
bd487ed
appstream-util replace-screenshots $RPM_BUILD_ROOT%{_datadir}/metainfo/org.gnome.tweaks.appdata.xml \
bd487ed
  https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/gnome-tweak-tool/a.png \
bd487ed
  https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/gnome-tweak-tool/b.png
bd487ed
bd487ed
%find_lang %{name}
bd487ed
bd487ed
bd487ed
%check
bd487ed
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/*.desktop
bd487ed
appstream-util validate-relax --nonet $RPM_BUILD_ROOT/%{_datadir}/metainfo/*.appdata.xml
bd487ed
bd487ed
bd487ed
%files -f %{name}.lang
bd487ed
%doc AUTHORS NEWS README.md
bd487ed
%license LICENSES/
bd487ed
%{_bindir}/%{name}
bd487ed
%{_libexecdir}/gnome-tweak-tool-lid-inhibitor
bd487ed
%{python3_sitelib}/gtweak/
bd487ed
%{_datadir}/metainfo/*.appdata.xml
bd487ed
%{_datadir}/applications/*.desktop
bd487ed
%{_datadir}/%{name}/
bd487ed
%{_datadir}/icons/hicolor/*/apps/*.png
bd487ed
%{_datadir}/icons/hicolor/scalable/apps/*.svg
bd487ed
bd487ed
bd487ed
%changelog
e5f8fe8
* Sun Apr 08 2018 Kalev Lember <klember@redhat.com> - 3.28.1-1
e5f8fe8
- Update to 3.28.1
e5f8fe8
6702be3
* Mon Mar 12 2018 Mohamed El Morabity <melmorabity@fedoraproject.org> - 3.28.0-1
6702be3
- Update to 3.28.0
6702be3
bd487ed
* Fri Mar 09 2018 Mohamed El Morabity <melmorabity@fedoraproject.org> - 3.27.92-1
bd487ed
- Initial RPM release, based on gnome-tweak-tool.spec