%global src_name gnome_shell___elementary_by_half_left-d45raik.zip %global theme_name elementary %global theme Elementary # Platform denpendent constants # The source contains 2 zip's one for Gnome 3.0 and one for 3.2 %if 0%{?fc15} %global shell_ver 3.0 %global theme_zip %{theme} %else %global shell_ver 3.2 %global theme_zip %{theme}-3.2 %endif Name: gnome-shell-theme-%{theme_name} Version: %{shell_ver} Release: 2%{?dist} Summary: The %{theme} gnome-shell theme Group: User Interface/Desktops License: GPLv3 URL: http://half-left.deviantart.com/art/GNOME-Shell-Elementary-251536124 Source0: http://www.deviantart.com/download/251536124/%{src_name} Requires: gnome-shell-extensions-user-theme Requires: gnome-shell >= %{shell_ver} BuildArch: noarch %description The %{theme} gnome-shell theme created by half_left for gnome-shell %{shell_ver} %prep %setup -q -c unzip %{theme_zip}.zip %install mkdir -p -m755 $RPM_BUILD_ROOT/%{_datadir}/themes/%{theme}/gnome-shell # put the theme files into some data dir cp -r %{theme_zip}/* $RPM_BUILD_ROOT/%{_datadir}/themes/%{theme}/. # delete backup files (*~) find $RPM_BUILD_ROOT -name *~ -type f -print | xargs /bin/rm -f # remove LICENSE from BUILDROOT find $RPM_BUILD_ROOT -name LICENSE -type f -print | xargs /bin/rm -f %files %doc %{theme_zip}/gnome-shell/LICENSE %dir %{_datadir}/themes/%{theme} %{_datadir}/themes/%{theme}/* %changelog * Thu Oct 27 2011 Tim Lauridsen 3.2-2 - Make it work on both F15 & F16 * Wed Oct 26 2011 Tim Lauridsen 3.2-1 - initial rpm build for Gnome 3.2