File gnome-themes.spec of Package gnome-themes

#
# spec file for package gnome-themes (Version 2.32.1)
#
# Copyright (c) 2010 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:           gnome-themes
Version:        2.32.1
Release:        1
License:        GPLv2+
Summary:        GNOME Themes
Url:            http://www.gnome.org/
Group:          System/GUI/GNOME
Source0:        %{name}-%{version}.tar.bz2
BuildRequires:  fdupes
BuildRequires:  gtk2-devel
BuildRequires:  gtk2-engines-devel
BuildRequires:  icon-naming-utils
BuildRequires:  intltool
Requires:       gnome-icon-theme
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
GNOME themes, including Ximian Industrial and selected background
images.

%prep
%setup -q

%build
%configure\
	--enable-all-themes
make %{?jobs:-j %jobs}

%install
%makeinstall
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%endif
%find_lang %{name}
%icon_theme_cache_create_ghost Crux
%icon_theme_cache_create_ghost HighContrast
%icon_theme_cache_create_ghost HighContrast-SVG
%icon_theme_cache_create_ghost HighContrastInverse
%icon_theme_cache_create_ghost HighContrastLargePrint
%icon_theme_cache_create_ghost HighContrastLargePrintInverse
%icon_theme_cache_create_ghost LargePrint
%icon_theme_cache_create_ghost Mist
%fdupes %{buildroot}%{_datadir}

%clean
rm -rf %{buildroot}

%post
%icon_theme_cache_post Crux
%icon_theme_cache_post HighContrast
%icon_theme_cache_post HighContrast-SVG
%icon_theme_cache_post HighContrastInverse
%icon_theme_cache_post HighContrastLargePrint
%icon_theme_cache_post HighContrastLargePrintInverse
%icon_theme_cache_post LargePrint
%icon_theme_cache_post Mist

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

%files -f %{name}.lang
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README
%ghost %{_datadir}/icons/*/icon-theme.cache
%{_datadir}/icons/Crux/
%{_datadir}/icons/HighContrast/
%{_datadir}/icons/HighContrast-SVG/
%{_datadir}/icons/HighContrastInverse/
%{_datadir}/icons/HighContrastLargePrint/
%{_datadir}/icons/HighContrastLargePrintInverse/
%{_datadir}/icons/LargePrint/
%{_datadir}/icons/Mist/
%{_datadir}/themes/Clearlooks/
%{_datadir}/themes/ClearlooksClassic/
%{_datadir}/themes/Crux/
%{_datadir}/themes/Glider/
%{_datadir}/themes/Glossy/
%{_datadir}/themes/HighContrast/
%{_datadir}/themes/HighContrastInverse/
%{_datadir}/themes/HighContrastLargePrint/
%{_datadir}/themes/HighContrastLargePrintInverse/
%{_datadir}/themes/Inverted/
%{_datadir}/themes/LargePrint/
%{_datadir}/themes/LowContrast/
%{_datadir}/themes/LowContrastLargePrint/
%{_datadir}/themes/Mist/
%{_datadir}/themes/Simple/

%changelog
openSUSE Build Service is sponsored by