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

#
# spec file for package elementary-icon-theme
#
# Copyright (c) 2014 SUSE LINUX Products 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:           elementary-icon-theme
%define _name   elementary
Version:        3.1
Release:        0
Summary:        Simple and appealing Tango-styled icon theme
License:        GPL-3.0+
Group:          System/GUI/Other
Url:            https://launchpad.net/elementaryicons
Source:         https://launchpad.net/%{_name}icons/3.x/%{version}/+download/%{_name}icons%{version}.tar.gz

BuildRequires:  fdupes
BuildRequires:  hicolor-icon-theme
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
The official elementary icons are designed to be simple and appealing,
these icons are the inspiration behind Ubuntu's default Humanity icon theme.

%prep
%setup -q -n %{_name}icons%{version}

%build
# Nothing to build.

%install
mkdir -p %{buildroot}%{_datadir}/icons/%{_name}
cp -rf * %{buildroot}%{_datadir}/icons/%{_name}
%if %suse_version > 1130
%icon_theme_cache_create_ghost %{_name}
%endif
%fdupes -s %{buildroot}%{_datadir}/icons

%if %suse_version > 1130
%post
%icon_theme_cache_post %{_name}

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

%files
%defattr (-,root,root)
%doc AUTHORS CONTRIBUTORS COPYING
%if %suse_version > 1130
%ghost %{_datadir}/icons/%{_name}/icon-theme.cache
%endif
%{_datadir}/icons/%{_name}/

%changelog
openSUSE Build Service is sponsored by