%define gitrepo https://github.com/eonpatapon/%{name}.git %define gitrev v%{version} %{!?_licensedir:%global license %%doc} Name: gnome-shell-extension-caffeine Version: 37 Release: 1%{?dist} Summary: Fill the cup to inhibit auto suspend and screensaver License: GPLv2 URL: %{gitrepo} Source0: %{name}-%{version}.tar.xz BuildArch: noarch BuildRequires: glib2 gettext Requires: gnome-shell-extension-common = 3.38.2 %description Fill the cup to inhibit auto suspend and screensaver. %prep %autosetup %build ./update-locale.sh glib-compile-schemas --strict \ --targetdir=caffeine@patapon.info/schemas/ caffeine@patapon.info/schemas %install [ '%{buildroot}' != '/' ] && rm -rf %{buildroot} install -d %{buildroot}%{_datadir}/gnome-shell/extensions/ cp -r caffeine@patapon.info %{buildroot}%{_datadir}/gnome-shell/extensions/ %files %license COPYING %dir %{_datadir}/gnome-shell/extensions/caffeine@patapon.info %{_datadir}/gnome-shell/extensions/caffeine@patapon.info/* %changelog * Mon Dec 14 2020 Philippe Kueck - 37.1-1 - initial packaging