%global commit e1d8cb149bd29ae29ac8abd5a4b33dde801b76d6 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global _release 1 %global _snapshot 20141227git%shortcommit %global theme_name Paper Name: paper-gtk-theme Version: 1.0 Release: 0.%_release.%{_snapshot}%{?dist} Summary: Paper GTK Theme License: GPLv3+ URL: http://snwh.org/paper Source0: https://github.com/snwh/%{name}/archive/%{commit}/%{name}-%{commit}.tar.gz BuildArch: noarch %description Paper themes for GTK+2, GTK+3, Metacity and GNOME Shell %package gtk2-theme Summary: %{theme_name} GTK+2 themes Group: User Interface/Desktops Requires: %{name} = %{version}-%{release}, gtk-murrine-engine >= 0.98.1.1, gtk2-engines %description gtk2-theme Themes for GTK+2 as part of the %{theme_name} theme. %package gtk3-theme Summary: %{theme_name} GTK+3 themes Group: User Interface/Desktops Requires: %{name} = %{version}-%{release}, gtk-unico-engine >= 1.0.2 %description gtk3-theme Themes for GTK+3 as part of the %{theme_name} theme. %package metacity-theme Summary: %{theme_name} Metacity themes Group: User Interface/Desktops Requires: %{name} = %{version}-%{release}, metacity %description metacity-theme Themes for Metacity as part of the %{theme_name} theme. %package plank Summary: %{theme_name} for plank Group: User Interface/Desktops Requires: %{name} = %{version}-%{release}, plank %description plank Themes for plank as part of the %{theme_name} theme. %prep %setup -qn %{name}-%{commit} # Remove Unity stuff rm -r %{theme_name}/unity/ %build # Nothing to build %install mkdir -p -m755 %{buildroot}%{_datadir}/themes/%{theme_name} cp -pr %{theme_name}/* %{buildroot}%{_datadir}/themes/%{theme_name} chmod 0644 README.md %files %doc LICENSE README.md %{_datadir}/themes/%{theme_name}/gnome-shell %{_datadir}/themes/%{theme_name}/index.theme %files gtk2-theme %{_datadir}/themes/%{theme_name}/gtk-2.0/ %files gtk3-theme %{_datadir}/themes/%{theme_name}/gtk-3.0/ %files metacity-theme %{_datadir}/themes/%{theme_name}/metacity-1/ %files plank %{_datadir}/themes/%{theme_name}/plank/ %changelog * Sun Dec 28 2014 Eduardo Echeverria - 1.0-0.1.20141227gite1d8cb1 - Initial packaging