File gnome-themes-standard.spec of Package gnome-themes-standard
#
# spec file for package gnome-themes-standard
#
# Copyright (c) 2013 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
Version: 3.10.0
Release: 0
Summary: Standard GNOME Themes
License: LGPL-2.1+
Group: System/GUI/GNOME
Url: http://www.gnome.org
Source: http://download.gnome.org/sources/gnome-themes-standard/3.10/%{name}-%{version}.tar.xz
Source1: baselibs.conf
BuildRequires: fdupes
# Needed to convert svg to gresource
BuildRequires: gdk-pixbuf-loader-rsvg
BuildRequires: intltool
BuildRequires: translation-update-upstream
BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(gdk-2.0) >= 2.24.15
BuildRequires: pkgconfig(gdk-3.0)
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(gtk+-2.0) >= 2.24.15
BuildRequires: pkgconfig(gtk+-3.0) >= 3.9.12
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
Group: System/GUI/GNOME
Suggests: gtk2-metatheme-adwaita
Suggests: gtk3-metatheme-adwaita
# The -lang package and has been dropped since 3.7.6
Obsoletes: %{name}-lang < %{version}
BuildArch: noarch
%description -n metatheme-adwaita-common
Adwaita is the default GNOME theme in GNOME 3.
# Note: it's really a metatheme, and not just a gtk2 theme as we require metatheme-adwaita-common
%package -n gtk2-metatheme-adwaita
Summary: Adwaita GNOME Theme -- GTK+ 2 Support
Group: System/GUI/GNOME
# the theme is using the pixmap engine, shipped inside gtk2
Requires: gtk2
Requires: gtk2-theming-engine-adwaita = %{version}
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.
# Note: it's really a metatheme, and not just a gtk3 theme as we require metatheme-adwaita-common
%package -n gtk3-metatheme-adwaita
Summary: Adwaita GNOME Theme -- GTK+ 3 Support
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 gtk2-theming-engine-adwaita
Summary: Adwaita GTK+ Theming Engine
Group: System/GUI/GNOME
%description -n gtk2-theming-engine-adwaita
Adwaita is the default GNOME theme in GNOME 3.
%package -n gtk3-theming-engine-adwaita
Summary: Adwaita GTK+ Theming Engine
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
Group: System/GUI/GNOME
Requires: gtk2-engine-hcengine
BuildArch: noarch
Conflicts: gnome-themes < 3.0.0
%description -n gnome-themes-accessibility
This package contains high-contrast and low-contrast themes for GNOME.
%prep
%setup -q
translation-update-upstream
%build
%configure
make %{?_smp_mflags}
%install
%make_install
find %{buildroot}%{_libdir} -type f -name '*.la' -delete -print
%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/
%fdupes %{buildroot}%{_datadir}/themes/Adwaita/gtk-2.0/
%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 gtk2-theming-engine-adwaita
%defattr(-,root,root)
%{_libdir}/gtk-2.0/2.10.0/engines/libadwaita.so
%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/
%changelog