File gnome-themes-standard.spec of Package gnome-themes-standard
#
# spec file for package gnome-themes-standard
#
# 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 http://bugs.opensuse.org/
#
Name: gnome-themes-standard
Summary: Standard GNOME Themes
Version: 3.2.1
Release: 1
License: LGPLv2.1+
Group: System/GUI/GNOME
Url: http://www.gnome.org
Source: http://download.gnome.org/sources/gnome-themes-standard/3.2/%{name}-%{version}.tar.bz2
BuildRequires: fdupes
BuildRequires: intltool
BuildRequires: pkgconfig(gtk+-3.0) >= 3.1.18
BuildRequires: pkgconfig(librsvg-2.0)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This packages contains the standard GNOME themes from GNOME 3 and
later.
%package -n metatheme-adwaita-common
Summary: Adwaita GNOME Theme -- Common Files
License: LGPLv2.1+
Group: System/GUI/GNOME
# We don't even recommend the lang package since there's actually no
# need for it.
#Recommends: %%{name}-lang
Suggests: gtk2-metatheme-adwaita
Suggests: gtk3-metatheme-adwaita
# this is really just to make the lang package installable
Provides: %{name} = %{version}
BuildArch: noarch
%description -n metatheme-adwaita-common
Adwaita is the default GNOME theme in GNOME 3.
%package -n gtk2-metatheme-adwaita
Summary: Adwaita GNOME Theme -- GTK+ 2 Support
License: LGPLv2.1+
Group: System/GUI/GNOME
# we need clearlooks
Requires: gtk2-engines
Requires: metatheme-adwaita-common = %{version}
Supplements: packageand(metatheme-adwaita-common:gtk2)
BuildArch: noarch
%description -n gtk2-metatheme-adwaita
Adwaita is the default GNOME theme in GNOME 3.
%package -n gtk3-metatheme-adwaita
Summary: Adwaita GNOME Theme -- GTK+ 3 Support
License: LGPLv2.1+
Group: System/GUI/GNOME
Requires: cantarell-fonts
Requires: gtk3-theming-engine-adwaita = %{version}
Requires: metatheme-adwaita-common = %{version}
Supplements: packageand(metatheme-adwaita-common:gtk3)
BuildArch: noarch
%description -n gtk3-metatheme-adwaita
Adwaita is the default GNOME theme in GNOME 3.
%package -n gtk3-theming-engine-adwaita
Summary: Adwaita GTK+ Theming Engine
License: LGPLv2.1+
Group: System/GUI/GNOME
%description -n gtk3-theming-engine-adwaita
Adwaita is the default GNOME theme in GNOME 3.
%package -n gnome-themes-accessibility
Summary: Accessibility GNOME Themes
License: LGPLv2.1+
Group: System/GUI/GNOME
Conflicts: gnome-themes < 3.0.0
BuildArch: noarch
%description -n gnome-themes-accessibility
This package contains high-contrast and low-contrast themes for GNOME.
%lang_package
%prep
%setup -q
%build
%configure
%__make %{?_smp_mflags}
%install
%makeinstall
%find_lang %{name}
%icon_theme_cache_create_ghost HighContrast
%icon_theme_cache_create_ghost HighContrastInverse
%icon_theme_cache_create_ghost LowContrast
%fdupes %{buildroot}%{_datadir}/icons/Adwaita/cursors/
%fdupes %{buildroot}%{_datadir}/icons/HighContrast/
%fdupes %{buildroot}%{_datadir}/icons/HighContrastInverse/
rm -f %{buildroot}%{_libdir}/gtk-3.0/*/theming-engines/*.la
%clean
rm -rf %{buildroot}
%post -n gnome-themes-accessibility
%icon_theme_cache_post HighContrast
%icon_theme_cache_post HighContrastInverse
%icon_theme_cache_post LowContrast
# No need for %%icon_theme_cache_postun in %%postun since the theme won't exist anymore
%files -n metatheme-adwaita-common
%defattr(-,root,root)
%doc COPYING NEWS
%dir %{_datadir}/icons/Adwaita
%dir %{_datadir}/themes/Adwaita
%dir %{_datadir}/gnome-background-properties
%{_datadir}/icons/Adwaita/cursors/
%{_datadir}/gnome-background-properties/adwaita.xml
%{_datadir}/themes/Adwaita/backgrounds/
%{_datadir}/themes/Adwaita/metacity-1/
%{_datadir}/themes/Adwaita/index.theme
%files -n gtk2-metatheme-adwaita
%defattr(-,root,root)
%{_datadir}/themes/Adwaita/gtk-2.0/
%files -n gtk3-metatheme-adwaita
%defattr(-,root,root)
%{_datadir}/themes/Adwaita/gtk-3.0/
%files -n gtk3-theming-engine-adwaita
%defattr(-,root,root)
%{_libdir}/gtk-3.0/3.0.0/theming-engines/libadwaita.so
%files -n gnome-themes-accessibility
%defattr(-,root,root)
%ghost %{_datadir}/icons/HighContrast/icon-theme.cache
%ghost %{_datadir}/icons/HighContrastInverse/icon-theme.cache
%ghost %{_datadir}/icons/LowContrast/icon-theme.cache
%{_datadir}/icons/HighContrast/
%{_datadir}/icons/HighContrastInverse/
%{_datadir}/icons/LowContrast/
%{_datadir}/themes/HighContrast/
%{_datadir}/themes/HighContrastInverse/
%{_datadir}/themes/LowContrast/
%files lang -f %{name}.lang
%changelog