File tango-icon-theme.spec of Package tango-icon-theme

#
# spec file for package tango-icon-theme
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

Name:           tango-icon-theme
BuildRequires:  ImageMagick-devel
BuildRequires:  fdupes
BuildRequires:  icon-naming-utils
BuildRequires:  intltool
BuildRequires:  librsvg-devel
# Needed by patch0 and patch1
BuildRequires:  libtool
BuildRequires:  rsvg-view
BuildArch:      noarch
Version:        0.8.90
Release:        0
Source:         %{name}-%{version}.tar.bz2
Source1:        %{name}-extras-0.1.1.tar.bz2
# PATCH-FIX-UPSTREAM tango-icon-theme-rsvg-2_35_2.patch fdo#45803 dimstar@opensuse.org -- Fix build with librsvg 2.35.2: /usr/bin/rsvg was a deprecated wrapper.
Patch0:         tango-icon-theme-rsvg-2_35_2.patch
# PATCH-FIX-UPSTREAM tango-icon-theme-extras-rsvg-2_35_2.patch fdo#45803 dimstar@opensuse.org -- Fix build with librsvg 2.35.2: /usr/bin/rsvg was a deprecated wrapper.
Patch1:         tango-icon-theme-extras-rsvg-2_35_2.patch
Url:            http://tango.freedesktop.org/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Tango Icon Theme
License:        CC-BY-SA-2.5
Group:          System/GUI/GNOME
Recommends:     gnome-icon-theme >= 2.12.0
Requires:       hicolor-icon-theme

%description
This is the Tango base theme. On top of that, the package includes
some specific icons from the legacy tango-icon-theme-extras package.

%prep
%setup -b 1
%patch0 -p1
cd ../%{name}-extras-0.1.1
%patch1 -p1

%build
# Needed by patch0.
autoreconf -fi
%configure --enable-png-creation
make %{?jobs:-j%jobs}
cd ../%{name}-extras-0.1.1
# Needed by patch1
autoreconf -fi
%configure --enable-png-creation
make %{?jobs:-j%jobs}

%install
%makeinstall
cd ../%{name}-extras-0.1.1
%makeinstall
%icon_theme_cache_create_ghost Tango
%fdupes $RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%post
%icon_theme_cache_post Tango

# No need for %%icon_theme_cache_postun in %postun since the theme won't exist anymore

%files
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog README
%ghost %{_datadir}/icons/Tango/icon-theme.cache
%{_datadir}/icons/Tango/

%changelog
openSUSE Build Service is sponsored by