adwaita-icon-theme/adwaita-icon-theme.spec

84 lines
2.9 KiB
RPMSpec

#
# spec file for package adwaita-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 http://bugs.opensuse.org/
#
Name: adwaita-icon-theme
Version: 3.19.90
Release: 0
Summary: GNOME Icon Theme
License: LGPL-3.0+ or CC-BY-SA-3.0
Group: System/GUI/GNOME
Url: http://www.gnome.org/
Source0: http://download.gnome.org/sources/adwaita-icon-theme/3.19/%{name}-%{version}.tar.xz
BuildRequires: fdupes
BuildRequires: gdk-pixbuf-loader-rsvg
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
%description
The default GNOME icon theme, Adwaita.
%prep
%setup -q
%build
%configure
make %{?_smp_mflags}
%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
# Add internet-web-browser symling (to web-browser) to adwaita-icon-theme (bnc#767437)
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}
%clean
rm -rf %{buildroot}
%post
%icon_theme_cache_post Adwaita
# No need for %%icon_theme_cache_postun in %%postun since the theme won't exist anymore
%files
%defattr(-, root, root)
%doc AUTHORS COPYING COPYING_LGPL COPYING_CCBYSA3
%ghost %{_datadir}/icons/Adwaita/icon-theme.cache
%{_datadir}/icons/Adwaita/
%{_datadir}/pkgconfig/adwaita-icon-theme.pc
%changelog