2014-07-16 15:52:18 +02:00
#
2014-09-29 10:43:45 +02:00
# spec file for package adwaita-icon-theme
2014-07-16 15:52:18 +02:00
#
2017-02-22 21:38:18 +01:00
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
2014-07-16 15:52:18 +02:00
#
# 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 : adwaita-icon-theme
2017-09-15 11:39:09 +02:00
Version : 3.26.0
2014-09-11 23:26:35 +02:00
Release : 0
2014-07-16 15:52:18 +02:00
Summary : GNOME Icon Theme
License : LGPL-3.0+ or CC-BY-SA-3.0
Group : System/GUI/GNOME
2017-11-18 22:22:50 +01:00
URL : http://www.gnome.org/
2017-09-15 11:39:09 +02:00
Source0 : http://download.gnome.org/sources/adwaita-icon-theme/3.26/%{name} -%{version} .tar.xz
2017-11-18 22:22:50 +01:00
# PATCH-FIX-UPSTREAM adwaita-symbolic-audio-volume-fix.patch bgo#709131 zaitor@opensuse.org -- symbolic: audio-volume-* - line up vertices to the pixel grid
Patch0 : adwaita-symbolic-audio-volume-fix.patch
2014-07-16 15:52:18 +02:00
BuildRequires : fdupes
2014-08-23 13:52:42 +02:00
BuildRequires : gdk-pixbuf-loader-rsvg
2014-07-16 15:52:18 +02:00
BuildRequires : intltool
BuildRequires : pkg-config
# To make sure the icon theme cache gets generated
Requires(post) : gtk3-tools
Provides : %{name} -devel = %{version} -%{release}
BuildArch : noarch
%description
The default GNOME icon theme, Adwaita.
%prep
%setup -q
2017-11-18 22:22:50 +01:00
%patch0 -p1
2014-07-16 15:52:18 +02:00
%build
%configure
2017-11-18 22:22:50 +01:00
%make_build
2014-07-16 15:52:18 +02:00
%install
%makeinstall
# 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/Adwaita/scalable/actions
mkdir -p %{buildroot} %{_datadir} /icons/Adwaita/scalable/apps
mkdir -p %{buildroot} %{_datadir} /icons/Adwaita/scalable/categories
mkdir -p %{buildroot} %{_datadir} /icons/Adwaita/scalable/devices
mkdir -p %{buildroot} %{_datadir} /icons/Adwaita/scalable/emblems
mkdir -p %{buildroot} %{_datadir} /icons/Adwaita/scalable/emotes
mkdir -p %{buildroot} %{_datadir} /icons/Adwaita/scalable/mimetypes
mkdir -p %{buildroot} %{_datadir} /icons/Adwaita/scalable/places
mkdir -p %{buildroot} %{_datadir} /icons/Adwaita/scalable/status
mkdir -p %{buildroot} %{_datadir} /icons/Adwaita/scalable/stock/generic
2014-09-29 10:43:45 +02:00
# Add internet-web-browser symling (to web-browser) to adwaita-icon-theme (bnc#767437)
2014-07-16 15:52:18 +02:00
for folder in %{buildroot} %{_datadir} /icons/Adwaita/*x[0-9]*; do
ln ${folder}/apps/web-browser.png ${folder}/apps/internet-web-browser.png || :
done
%icon_theme_cache_create_ghost Adwaita
%fdupes %{buildroot}
2017-02-22 21:38:18 +01:00
%posttrans
2014-07-16 15:52:18 +02:00
%icon_theme_cache_post Adwaita
# No need for %%icon_theme_cache_postun in %%postun since the theme won't exist anymore
%files
%doc AUTHORS COPYING COPYING_LGPL COPYING_CCBYSA3
%ghost %{_datadir} /icons/Adwaita/icon-theme.cache
%{_datadir} /icons/Adwaita/
%{_datadir} /pkgconfig/adwaita-icon-theme.pc
%changelog