Summary: A tool to customize advanced GNOME 3 options
Summary(pl.UTF-8): Narzędzie do dostosowywania zaawansowanych opcji GNOME 3
Name: gnome-tweak-tool
-Version: 3.24.1
+Version: 3.26.4
Release: 1
License: GPL v3+
Group: X11/Applications
-Source0: http://ftp.gnome.org/pub/GNOME/sources/gnome-tweak-tool/3.24/%{name}-%{version}.tar.xz
-# Source0-md5: 74b346ac732042cf870aafe4c18dbcaa
-Patch0: pyc.patch
-Patch1: %{name}-import-gobject.patch
+Source0: http://ftp.gnome.org/pub/GNOME/sources/gnome-tweak-tool/3.26/%{name}-%{version}.tar.xz
+# Source0-md5: 2018fc13a1e61fbaff3ee53b4968d7eb
URL: http://live.gnome.org/GnomeTweakTool
BuildRequires: gettext-tools >= 0.17
BuildRequires: glib2-devel >= 2.0
BuildRequires: gsettings-desktop-schemas-devel >= 3.24
-BuildRequires: gtk+3-devel >= 3.12.0
BuildRequires: intltool >= 0.40.0
+BuildRequires: meson >= 0.40.0
BuildRequires: pkgconfig
-BuildRequires: python >= 1:2.6
BuildRequires: python-pygobject3-devel >= 3.10
+BuildRequires: python3 >= 1:3.0
BuildRequires: rpmbuild(macros) >= 1.311
BuildRequires: sed >= 4.0
BuildRequires: tar >= 1:1.22
Requires: gsettings-desktop-schemas >= 3.24
Requires: gtk+3 >= 3.12.0
Requires: hicolor-icon-theme
-Requires: python >= 1:2.6
+Requires: libnotify >= 0.7
+Requires: libsoup >= 2.4
Requires: python-pygobject3 >= 3.10
+Requires: python3 >= 1:3.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%prep
%setup -q
-%patch0 -p1
-%patch1 -p1
%{__sed} -i -e '1s,/usr/bin/env python,/usr/bin/python,' gnome-tweak-tool gnome-tweak-tool-lid-inhibitor
%build
-%configure
-%{__make}
+%meson build
+%meson_build -C build
%install
rm -rf $RPM_BUILD_ROOT
-%{__make} install \
- DESTDIR=$RPM_BUILD_ROOT
-
-%py_postclean
+%meson_install -C build
%find_lang %{name}
%doc AUTHORS NEWS README
%attr(755,root,root) %{_bindir}/gnome-tweak-tool
%attr(755,root,root) %{_libexecdir}/gnome-tweak-tool-lid-inhibitor
-%dir %{py_sitescriptdir}/gtweak
-%{py_sitescriptdir}/gtweak/*.py[co]
-%dir %{py_sitescriptdir}/gtweak/tweaks
-%{py_sitescriptdir}/gtweak/tweaks/*.py[co]
+%{py3_sitedir}/gtweak
%{_datadir}/gnome-tweak-tool
-%{_datadir}/appdata/gnome-tweak-tool.appdata.xml
+%{_datadir}/metainfo/gnome-tweak-tool.appdata.xml
%{_desktopdir}/gnome-tweak-tool.desktop
%{_iconsdir}/hicolor/*x*/apps/gnome-tweak-tool.png
%{_iconsdir}/hicolor/scalable/apps/gnome-tweak-tool-symbolic.svg
+++ /dev/null
-diff -urN gnome-tweak-tool-2.91.92/gtweak/tweakmodel.py gnome-tweak-tool-2.91.92.new//gtweak/tweakmodel.py
---- gnome-tweak-tool-2.91.92/gtweak/tweakmodel.py 2011-03-09 20:33:40.000000000 +0000
-+++ gnome-tweak-tool-2.91.92.new//gtweak/tweakmodel.py 2011-03-19 12:46:22.703334424 +0000
-@@ -67,7 +67,7 @@
- def load_tweaks(self, main_window):
- tweak_files = [
- os.path.splitext(os.path.split(f)[-1])[0]
-- for f in glob.glob(os.path.join(self._tweak_dir, "tweak_group_*.py"))]
-+ for f in glob.glob(os.path.join(self._tweak_dir, "tweak_group_*.pyc"))]
-
- if not gtweak.ENABLE_TEST:
- try: