Group :: Desktop gráfico/GNOME
RPM: gnome-tweaks
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%def_disable snapshot
%define _libexecdir %_prefix/libexec
%define ver_major 45
%define beta %nil
%define old_name gnome-tweak-tool
%define xdg_name org.gnome.tweaks
%define pypi_name gtweak
Name: gnome-tweaks
Version: %ver_major.0
Release: alt1%beta
Summary: A tool to customize advanced GNOME 3 options
Group: Graphical desktop/GNOME
License: GPLv3
Url: https://wiki.gnome.org/Apps/Tweaks
%if_enabled snapshot
Source: %name-%version.tar
%else
Source: ftp://ftp.gnome.org/pub/gnome/sources/%name/%ver_major/%name-%version%beta.tar.xz
%endif
Patch: %name-3.27.4-alt-desktop.patch
BuildArch: noarch
%define gsds_ver 45
%define handy_ver 1.5.0
Requires: gnome-settings-daemon >= %ver_major
Requires: gsettings-desktop-schemas-devel >= %gsds_ver
Requires: sound-theme-freedesktop
Requires: typelib(Gtk) = 3.0 typelib(Handy) = 1
Provides: %old_name = %version-%release
Obsoletes: %old_name < 3.27.4
BuildRequires(pre): rpm-macros-meson rpm-build-gir rpm-build-python3
BuildRequires: meson
BuildRequires: gsettings-desktop-schemas-devel >= %gsds_ver
BuildRequires: python3-module-pygobject3-devel >= 3.10.0
BuildRequires: pkgconfig(libhandy-1) >= %handy_ver typelib(Handy) = 1
%description
GNOME Tweaks is an application for changing the advanced settings
of GNOME 3.
Features:
* Install and switch gnome-shell themes
* Switch GTK+ themes
* Switch icon themes
* Change
- The user-interface and title bar fonts
- Icons in menus and buttons
- Behavior on laptop lid close
- Shell font size
- File manager desktop icons
- Title bar click action
- Shell clock to show date
- Font hinting
- Font anti-aliasing
%prep
%setup -n %name-%version%beta
%patch -b .desktop
%build
%meson
%meson_build
%install
%meson_install
%find_lang %name
%files -f %name.lang
%_bindir/%name
%python3_sitelibdir_noarch/%pypi_name/
%_desktopdir/%xdg_name.desktop
%_datadir/%name/
%_datadir/glib-2.0/schemas/%xdg_name.gschema.xml
%_iconsdir/hicolor/*/*/*.svg
%_datadir/metainfo/%xdg_name.appdata.xml
%doc AUTHORS NEWS README*
%changelog
…
Todas as alterações você pod ver aqui
%define _libexecdir %_prefix/libexec
%define ver_major 45
%define beta %nil
%define old_name gnome-tweak-tool
%define xdg_name org.gnome.tweaks
%define pypi_name gtweak
Name: gnome-tweaks
Version: %ver_major.0
Release: alt1%beta
Summary: A tool to customize advanced GNOME 3 options
Group: Graphical desktop/GNOME
License: GPLv3
Url: https://wiki.gnome.org/Apps/Tweaks
%if_enabled snapshot
Source: %name-%version.tar
%else
Source: ftp://ftp.gnome.org/pub/gnome/sources/%name/%ver_major/%name-%version%beta.tar.xz
%endif
Patch: %name-3.27.4-alt-desktop.patch
BuildArch: noarch
%define gsds_ver 45
%define handy_ver 1.5.0
Requires: gnome-settings-daemon >= %ver_major
Requires: gsettings-desktop-schemas-devel >= %gsds_ver
Requires: sound-theme-freedesktop
Requires: typelib(Gtk) = 3.0 typelib(Handy) = 1
Provides: %old_name = %version-%release
Obsoletes: %old_name < 3.27.4
BuildRequires(pre): rpm-macros-meson rpm-build-gir rpm-build-python3
BuildRequires: meson
BuildRequires: gsettings-desktop-schemas-devel >= %gsds_ver
BuildRequires: python3-module-pygobject3-devel >= 3.10.0
BuildRequires: pkgconfig(libhandy-1) >= %handy_ver typelib(Handy) = 1
%description
GNOME Tweaks is an application for changing the advanced settings
of GNOME 3.
Features:
* Install and switch gnome-shell themes
* Switch GTK+ themes
* Switch icon themes
* Change
- The user-interface and title bar fonts
- Icons in menus and buttons
- Behavior on laptop lid close
- Shell font size
- File manager desktop icons
- Title bar click action
- Shell clock to show date
- Font hinting
- Font anti-aliasing
%prep
%setup -n %name-%version%beta
%patch -b .desktop
%build
%meson
%meson_build
%install
%meson_install
%find_lang %name
%files -f %name.lang
%_bindir/%name
%python3_sitelibdir_noarch/%pypi_name/
%_desktopdir/%xdg_name.desktop
%_datadir/%name/
%_datadir/glib-2.0/schemas/%xdg_name.gschema.xml
%_iconsdir/hicolor/*/*/*.svg
%_datadir/metainfo/%xdg_name.appdata.xml
%doc AUTHORS NEWS README*
%changelog
…
Todas as alterações você pod ver aqui