File gnome-icon-theme.spec of Package gnome-icon-theme

# spec file for package gnome-icon-theme
# 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-icon-theme
Version:        3.12.0
Release:        0
Summary:        GNOME Icon Theme
License:        LGPL-3.0+ or CC-BY-SA-3.0
Group:          System/GUI/GNOME
BuildRequires:  fdupes
BuildRequires:  hicolor-icon-theme
BuildRequires:  icon-naming-utils-devel
BuildRequires:  intltool
BuildRequires:  pkg-config
# To make sure the icon theme cache gets generated
Requires(post): gtk3-tools
Provides:       %{name}-devel = %{version}-%{release}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

The default GNOME icon theme.

%setup -q

make %{?jobs:-j%jobs}

# Those folders disappeared in the upgrade from 2.28.0 -> 2.29.0
# FIXME: eventually no application should install any files there
mkdir -p %{buildroot}%{_datadir}/icons/gnome/scalable/actions
mkdir -p %{buildroot}%{_datadir}/icons/gnome/scalable/apps
mkdir -p %{buildroot}%{_datadir}/icons/gnome/scalable/categories
mkdir -p %{buildroot}%{_datadir}/icons/gnome/scalable/devices
mkdir -p %{buildroot}%{_datadir}/icons/gnome/scalable/emblems
mkdir -p %{buildroot}%{_datadir}/icons/gnome/scalable/emotes
mkdir -p %{buildroot}%{_datadir}/icons/gnome/scalable/mimetypes
mkdir -p %{buildroot}%{_datadir}/icons/gnome/scalable/places
mkdir -p %{buildroot}%{_datadir}/icons/gnome/scalable/status
mkdir -p %{buildroot}%{_datadir}/icons/gnome/scalable/stock/generic
# Add internet-web-browser symling (to web-browser) to gnome-icon-theme (bnc#767437)
for folder in %{buildroot}%{_datadir}/icons/gnome/*x[0-9]*; do
 ln ${folder}/apps/web-browser.png ${folder}/apps/internet-web-browser.png || :
%icon_theme_cache_create_ghost gnome
%fdupes %{buildroot}

rm -rf %{buildroot}

%icon_theme_cache_post gnome

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

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