File faenza-icons.spec of Package Faenza-Icon

%global themes Faenza Faenza-Ambiance Faenza-Dark Faenza-Darker Faenza-Darkest Faenza-Mint Faenza-Radiance KFaenza

Name:    faenza-icon-theme
Version: 1.3
Release: 4.1
Summary: Icon theme designed for Equinox GTK theme.
License: GPL+
Group:   User Interface/Desktops
Source0: %{name}.tar.bz2
URL:     http://tiheum.deviantart.com/art/Faenza-Icons-173323228
#URL:    http://kde-look.org/content/show.php/KFaenza?content=143890
#URL:    http://kde-look.org/content/show.php/KFaenza+icon+patch?content=153813
BuildArch: noarch

%description
Contains icons for Equinox GTK theme.

%prep
%setup -q -n %{name}
# fix permissions
find . -type d -exec chmod 0755 {} \;
find . -type f -exec chmod 0644 {} \;

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p %{buildroot}%{_datadir}/icons
cp -r * %{buildroot}%{_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
%defattr(-, root, root)
%{_datadir}/icons/*Faenza*

%changelog
* Wed Dec 26 2012 Muhammad Shaban <Mr.Muhammad@linuxac.org> 1.3
- update
- add KFaenza & remove Faenza-cupertino

* Tue Jun 12 2012 Muhammad Shaban <Mr.Muhammad@linuxac.org> 1.2
- update
- add Faenza-cupertino & Faenza-Mint

* Sat Nov 03 2011 Muhammad Shaban <Mr.Muhammad@linuxac.org> 1.1
- Initial build