File gnome-themes-extras.spec of Package gnome-themes-extras

# spec file for package gnome-themes-extras
# Copyright (c) 2011 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

# norootforbuild

Name:           gnome-themes-extras
BuildRequires:  fdupes glib2-devel gtk2-engines-devel icon-naming-utils intltool translation-update-upstream
# FIXME: Should be a part of gtk2-engines-devel, which is not yet splitted:
BuildRequires:  gtk2-devel
License:        GPLv2 ; GPLv2+
Group:          System/GUI/GNOME
Version:        2.22.0
Release:        58
Source:         %{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM bgo#528322 -- Fix Darklooks's gtkrc tooltip definitions (fixed upstream but not released since 2008.04)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Additional GNOME Themes
Requires:       gnome-themes
Enhances:       gnome-themes
BuildArch:      noarch

This package contains several extra GNOME themes.

%setup -q
%patch0 -p1

autoreconf -f -i
make %{?jobs:-j %jobs}

mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}
find -name AUTHORS -o -name "COPYING*" -o -name "README*" -o -name TODO -o -name "ChangeLog*" -o -name MAINTAINERS -o -name "*NEWS*" |
    while read ; do
	mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}/${REPLY%/*}
	cp -a $REPLY $RPM_BUILD_ROOT%{_docdir}/%{name}/$REPLY
rm -r $RPM_BUILD_ROOT%{_docdir}/%{name}/po
# COPYING README TODO are 1 byte long
rm $RPM_BUILD_ROOT%{_docdir}/%{name}/{COPYING,README,TODO}
# NOTE: There is no real use of these locales just now:
%find_lang %{name}
%fdupes $RPM_BUILD_ROOT%{_datadir}
%icon_theme_cache_create_ghost Foxtrot
%icon_theme_cache_create_ghost Gion
%icon_theme_cache_create_ghost Neu
%icon_theme_cache_create_ghost gnome-alternative


%icon_theme_cache_post Foxtrot
%icon_theme_cache_post Gion
%icon_theme_cache_post Neu
%icon_theme_cache_post gnome-alternative

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

%files -f %{name}.lang
%defattr(-, root, root)
%doc %{_docdir}/%{name}
%ghost %{_datadir}/icons/*/icon-theme.cache