%global extdir impatience@gfxmonk.net %global gschemadir %{_datadir}/glib-2.0/schemas Name: gnome-shell-extension-impatience Version: 0.5.3 Release: %autorelease Summary: Increase animation speed in gnome shell # Automatically converted from old format: GPLv2 - review is highly recommended. License: GPL-2.0-only URL: https://github.com/timbertson/gnome-shell-impatience Source0: https://github.com/timbertson/gnome-shell-impatience/archive/refs/tags/version-0.5.3.tar.gz BuildArch: noarch BuildRequires: gettext BuildRequires: %{_bindir}/glib-compile-schemas Requires: gnome-shell-extension-common %description This extension allows the user to easily adjust animation speeds in gnome-shell. %prep %autosetup -n gnome-shell-impatience-version-0.5.3 sed -i 's/48/49/g' impatience/metadata.json %build glib-compile-schemas --strict --targetdir=impatience/schemas/ impatience/schemas %install mkdir -p %{buildroot}%{_datadir}/gnome-shell/extensions/%{extdir} cp -ar impatience/* %{buildroot}%{_datadir}/gnome-shell/extensions/%{extdir} # Fedora and EPEL 8 handles post scripts via triggers %if 0%{?rhel} && 0%{?rhel} <= 7 %postun if [ $1 -eq 0 ] ; then %{_bindir}/glib-compile-schemas %{gschemadir} &> /dev/null || : fi %posttrans %{_bindir}/glib-compile-schemas %{gschemadir} &> /dev/null || : %endif %files %{_datadir}/gnome-shell/extensions/%{extdir} %changelog %autochangelog