%global themes Faience Faience-Azur Faience-Ocre Faience-Claire %global theme_name faience %global theme_title Faience %global theme_zip faience_icon_theme_by_tiheum-d47vo5d.zip Name: %{theme_name}-icon-theme Version: 0.3 Release: 1%{?dist} Summary: %{theme_title} icon theme Group: User Interface/Desktops License: GPLv3 URL: http://tiheum.deviantart.com/art/Faience-icon-theme-255099649 Source0: http://www.deviantart.com/download/255099649/%{theme_zip} BuildArch: noarch %description %{theme_title} icon theme %prep %setup -q -c -n %{name}-%{version} # unpack the icon tarballs for theme in %{themes} do tar zxvf ${theme}.tar.gz &>/dev/null ||: done # fix permissions find . -type d -exec chmod 0755 {} \; find . -type f -exec chmod 0644 {} \; %build # nothing to build %install install -dm 755 $RPM_BUILD_ROOT%{_datadir}/icons cp -a %{theme_title}* $RPM_BUILD_ROOT%{_datadir}/icons %post for theme in %{themes} do touch --no-create %{_datadir}/icons/${theme} &>/dev/null ||: done %postun if [ $1 -eq 0 ] ; then for theme in %{themes} do touch --no-create %{_datadir}/icons/${theme} &>/dev/null gtk-update-icon-cache -q %{_datadir}/icons/${theme} &>/dev/null || : done fi %posttrans for theme in %{themes} do gtk-update-icon-cache %{_datadir}/icons/${theme} &>/dev/null || : done %files %doc AUTHORS ChangeLog COPYING README %{_datadir}/icons/%{theme_title}* %changelog * Tue Sep 25 2012 Tim Lauridsen 0.3-1 - Initial rpm build