File gnome-themes.spec of Package gnome-themes

# spec file for package gnome-themes
# Copyright (c) 2016 SUSE LINUX 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

Name:           gnome-themes
Version:        3.0.0
Release:        0
Summary:        GNOME Themes
License:        GPL-2.0+
Group:          System/GUI/GNOME
# PATCH-FIX-UPSTREAM gnome-themes-disable-engine-test.patch bgo#642970 -- don't check for gtk-engines-3 at build time
Patch0:         gnome-themes-disable-engine-test.patch
BuildRequires:  automake
BuildRequires:  fdupes
BuildRequires:  gtk3-devel
BuildRequires:  icon-naming-utils
BuildRequires:  intltool
BuildRequires:  translation-update-upstream
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

GNOME themes, including Ximian Industrial and selected background

%setup -q
%patch0 -p1

#needed by patch0
autoreconf -fiv

make %{?jobs:-j %jobs}

%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
# remove themes which are now in gnome-themes-standard
rm -rf %{buildroot}%{_datadir}/themes/{HighContrast,HighContrast-SVG,HighContrastInverse}
rm -rf %{buildroot}%{_datadir}/icons/{HighContrast,HighContrast-SVG,HighContrastInverse}
%find_lang %{name} %{?no_lang_C}
%icon_theme_cache_create_ghost Crux
%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}

rm -rf %{buildroot}

%icon_theme_cache_post Crux
%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

%defattr(-, root, root)
%ghost %{_datadir}/icons/*/icon-theme.cache

%files lang -f %{name}.lang

openSUSE Build Service is sponsored by