File elementary-icon-theme.spec of Package elementary-icon-theme
#
# spec file for package elementary-icon-theme
#
# Copyright (c) 2018 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/
#
%define _version 4.x
Name: elementary-icon-theme
Version: 4.3.1
Release: 0
Summary: A Tango-styled icon theme
License: GPL-3.0-or-later
Group: System/GUI/Other
URL: https://github.com/elementary/icons
Source: https://github.com/elementary/icons/archive/%{version}.tar.gz#/icons-%{version}.tar.gz
# PATCH-FIX-UPSTREAM elementary-icon-theme-chmod.patch mailaender@opensuse.org -- https://github.com/elementary/icons/pull/130
Patch0: elementary-icon-theme-chmod.patch
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: hicolor-icon-theme
BuildArch: noarch
%description
An original set of vector icons designed specifically for Elementary
OS and its desktop environment, Pantheon.
%prep
%setup -q -n icons-%{version}
%patch0 -p1
%build
%cmake
%install
%cmake_install
# Remove weirdness.
rm %{buildroot}/.VolumeIcon.{png,icns}
%icon_theme_cache_create_ghost elementary
%fdupes %{buildroot}%{_datadir}/icons/
%if 0%{?suse_version} < 1500
%post
%icon_theme_cache_post elementary
# No need for %%icon_theme_cache_postun in %%postun since the theme won't exist anymore.
%endif
%files
%if 0%{?suse_version} >= 1500
%license COPYING
%else
%doc COPYING
%endif
%doc AUTHORS CONTRIBUTORS
%{_datadir}/icons/elementary/
%ghost %{_datadir}/icons/elementary/icon-theme.cache
%changelog