%global extuuid fw-fanctrl-revived@willow.sh %global extdir %{_datadir}/gnome-shell/extensions/%{extuuid} %global gschemadir %{_datadir}/glib-2.0/schemas %global gschemafile org.gnome.shell.extensions.fw-fanctrl-revived.gschema.xml %global debug_package %{nil} # renovate: datasource=github-releases depName=ghostdevv/fw-fanctrl-revived-gnome-shell-extension %global commit c2fbf1ee07034189b601b51185ccb255052be043 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: gnome-shell-extension-fw-fanctrl-revived Version: 8.0.0 Release: %autorelease -b 4 -s git%{shortcommit} Summary: A Gnome extension that controls your framework laptop fan profile License: MIT URL: https://github.com/ghostdevv/fw-fanctrl-revived-gnome-shell-extension Source0: https://github.com/RebornRider/copr-packages/releases/download/source-artefacts/gnome-shell-extension-fw-fanctrl-revived-%{shortcommit}.zip BuildArch: noarch BuildRequires: unzip BuildRequires: %{_bindir}/glib-compile-schemas Requires: gnome-shell >= 45~rc %description A Gnome extension that provides a convenient way to control your framework laptop fan profile when using fw-fanctrl %prep %autosetup -n gnome-shell-extension-fw-fanctrl-revived -N %build # Source artefact is a pre-built extension bundle; nothing to compile. %install mkdir -p %{buildroot}%{extdir} cp -a . %{buildroot}%{extdir}/ mkdir -p %{buildroot}%{gschemadir} %{__mv} -f %{buildroot}%{extdir}/schemas/%{gschemafile} %{buildroot}%{gschemadir}/ # Cleanup crap. %{__rm} -fr %{buildroot}%{extdir}/{LICENSE*,README*,schemas,locale} %files %doc README.md %license LICENSE %{extdir} %{gschemadir}/%{gschemafile} %changelog %autochangelog