%global uuid suspend-button@laserb %global shortname suspend-button Name: gnome-shell-extension-%{shortname} Version: 17 Release: 1%{?dist} Summary: GS extension of %{shortname} License: GPLv2 URL: https://extensions.gnome.org/extension/826/suspend-button/ Source0: %{uuid}.tar.xz BuildArch: noarch Requires: gnome-shell %description Allows to modify the suspend/shutdown button in the status menu. %prep %setup -q -n %{uuid} %build # Nothing to build %install mkdir -p %{buildroot}%{_datadir}/gnome-shell/extensions/%{uuid} find -type f | while read link do install -Dp -m 0644 $link %{buildroot}%{_datadir}/gnome-shell/extensions/%{uuid}/$link done %files %doc README.md %{_datadir}/gnome-shell/extensions/%{uuid}/ %changelog * Wed Dec 21 2016 Mosaab Alzoubi - 17-1 - Initial