# vim: set ts=4 sw=4 et: # # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # Name: faenza-icon-theme Version: 1.2 Release: 0 License: GPL-3.0+ Summary: Faenza Icon Theme Url: http://tiheum.deviantart.com/art/Faenza-Icons-173323228 Group: System/GUI/GNOME ## http://www.deviantart.com/download/173323228/faenza_icons_by_tiheum-d2v6x24.zip Source: faenza_icons_by_tiheum-d2v6x24.zip Source1: http://gnome-look.org/CONTENT/content-files/132681-Faenza-Mint.tar.gz BuildRequires: fdupes %if 0%{?suse_version} # For all the icon themes macros BuildRequires: hicolor-icon-theme %endif BuildRequires: unzip # Inherits from GNOME icon theme Requires: gnome-icon-theme BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %description This icon theme for GNOME provides monochromatic icons for panels, toolbars and buttons and colourful squared icons for devices, applications, folder, files and GNOME menu items. %package ambiance Summary: Faenza-Ambiance Icon Theme Group: System/GUI/GNOME Requires: %{name}-darkest = %{version} %description ambiance This icon theme for GNOME provides monochromatic icons for panels, toolbars and buttons and colourful squared icons for devices, applications, folder, files and GNOME menu items. Faenza-Ambiance is suitable with dark panel and toolbars. %package dark Summary: Faenza-Dark Icon Theme Group: System/GUI/GNOME Requires: %{name} = %{version} %description dark This icon theme for GNOME provides monochromatic icons for panels, toolbars and buttons and colourful squared icons for devices, applications, folder, files and GNOME menu items. %package darker Summary: Faenza-Dark Icon Theme Group: System/GUI/GNOME Requires: %{name}-darkest = %{version} %description darker This icon theme for GNOME provides monochromatic icons for panels, toolbars and buttons and colourful squared icons for devices, applications, folder, files and GNOME menu items. %package darkest Summary: Faenza-Dark Icon Theme Group: System/GUI/GNOME Requires: %{name}-dark = %{version} %description darkest This icon theme for GNOME provides monochromatic icons for panels, toolbars and buttons and colourful squared icons for devices, applications, folder, files and GNOME menu items. %package radiance Summary: Faenza-Radiance Icon Theme Group: System/GUI/GNOME Requires: %{name} = %{version} %description radiance This icon theme for GNOME provides monochromatic icons for panels, toolbars and buttons and colourful squared icons for devices, applications, folder, files and GNOME menu items. Faenza-Radiance is suitable with light panel and controls. %package mint Summary: Faenza-Mint Icon Theme Group: System/GUI/GNOME Requires: %{name}-dark = %{version} %description mint This icon theme for GNOME provides monochromatic icons for panels, toolbars and buttons and colourful squared icons for devices, applications, folder, files and GNOME menu items. %prep %setup -q -c "faenza-%{version}" -a 1 dist= %if 0%{?suse_version:1} dist=opensuse %endif %if 0%{?fedora_version:1} dist=fedora %endif %if 0%{?mandriva_version:1} || 0%{?mdv_version:1} dist=mandriva %endif [ -n "$dist" ] || { echo "Failed to determine distribution" >&2; exit 1; } for f in Faenza*.tar.gz; do tar xzf "$f" done find . -maxdepth 1 -type d -name 'Faenza*' | while read f; do f="${f#*/}" n="${f##*/}" n="${n%.tar.gz}" find "$n/" -type f ! -perm 0644 -exec chmod 0644 {} \; pushd "$n" find . -type f -name "distributor-logo-${dist}.*" | while read x; do xf="${x##*/}" xd="${x%/*}" xe="${xf##*.}" rm -f "$xd/distributor-logo.$xe" ln -s "$xf" "$xd/distributor-logo.$xe" rm -f "$xd/start-here.$xe" ln -s "$xf" "$xd/start-here.$xe" done popd #$n done %build %install install -d "%{buildroot}%{_datadir}/icons" find . -maxdepth 1 -type d -name 'Faenza*' | while read d; do n="${d##*/}" cp -a "$d" "%{buildroot}%{_datadir}/icons/$n" %fdupes -s "%{buildroot}%{_datadir}/icons/$n" done %if 0%{?suse_version} > 1130 %icon_theme_cache_create_ghost Faenza %icon_theme_cache_create_ghost Faenza-Ambiance %icon_theme_cache_create_ghost Faenza-Dark %icon_theme_cache_create_ghost Faenza-Darker %icon_theme_cache_create_ghost Faenza-Darkest %icon_theme_cache_create_ghost Faenza-Radiance %icon_theme_cache_create_ghost Faenza-Mint %endif %if 0%{?suse_version} > 1130 # No need for %%icon_theme_cache_postun in %%postun since the themes won't exist anymore %post %icon_theme_cache_post Faenza %post ambiance %icon_theme_cache_post Faenza-Ambiance %post dark %icon_theme_cache_post Faenza-Dark %post darker %icon_theme_cache_post Faenza-Darker %post darkest %icon_theme_cache_post Faenza-Darkest %post radiance %icon_theme_cache_post Faenza-Radiance %post mint %icon_theme_cache_post Faenza-Mint %endif %files %defattr(-,root,root) %doc AUTHORS ChangeLog COPYING README %{_datadir}/icons/Faenza %if 0%{?suse_version} > 1130 %ghost %{_datadir}/icons/Faenza/icon-theme.cache %endif %files ambiance %defattr(-,root,root) %{_datadir}/icons/Faenza-Ambiance %if 0%{?suse_version} > 1130 %ghost %{_datadir}/icons/Faenza-Ambiance/icon-theme.cache %endif %files dark %defattr(-,root,root) %{_datadir}/icons/Faenza-Dark %if 0%{?suse_version} > 1130 %ghost %{_datadir}/icons/Faenza-Dark/icon-theme.cache %endif %files darker %defattr(-,root,root) %{_datadir}/icons/Faenza-Darker %if 0%{?suse_version} > 1130 %ghost %{_datadir}/icons/Faenza-Darker/icon-theme.cache %endif %files darkest %defattr(-,root,root) %{_datadir}/icons/Faenza-Darkest %if 0%{?suse_version} > 1130 %ghost %{_datadir}/icons/Faenza-Darkest/icon-theme.cache %endif %files radiance %defattr(-,root,root) %{_datadir}/icons/Faenza-Radiance %if 0%{?suse_version} > 1130 %ghost %{_datadir}/icons/Faenza-Radiance/icon-theme.cache %endif %files mint %defattr(-,root,root) %{_datadir}/icons/Faenza-Mint %if 0%{?suse_version} > 1130 %ghost %{_datadir}/icons/Faenza-Mint/icon-theme.cache %endif %changelog