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

#
# spec file for package humanity-icon-theme
#
# Copyright (c) 2015 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 _name   Humanity
Name:           humanity-icon-theme
Version:        0.6.10
Release:        0
Summary:        Ayatana Humanity icon theme
License:        GPL-2.0
Group:          System/GUI/Other
Url:            https://launchpad.net/humanity
Source:         http://archive.ubuntu.com/ubuntu/pool/main/h/%{name}/%{name}_%{version}.tar.gz
BuildRequires:  fdupes
BuildRequires:  hicolor-icon-theme
Requires:       adwaita-icon-theme
Requires:       hicolor-icon-theme
BuildArch:      noarch

%description
Humanity and Humanity Dark are nice and well polished icon themes for the Gtk
desktop.

%prep
%setup -q
for doc in AUTHORS CONTRIBUTORS COPYING; do
    mv -f %{_name}/$doc .
    rm -f %{_name}-Dark/$doc
done

%build
# Nothing to build.

%install
mkdir -p %{buildroot}%{_datadir}/icons/
cp -a {%{_name},%{_name}-Dark} %{buildroot}%{_datadir}/icons/
find -L %{buildroot}%{_datadir}/icons/ -type l -delete
%icon_theme_cache_create_ghost %{_name}
%icon_theme_cache_create_ghost %{_name}-Dark
%fdupes %{buildroot}%{_datadir}/icons/

%post
%icon_theme_cache_post %{_name}
%icon_theme_cache_post %{_name}-Dark

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

%files
%defattr(-,root,root)
%doc AUTHORS CONTRIBUTORS COPYING
%ghost %{_datadir}/icons/%{_name}*/icon-theme.cache
%{_datadir}/icons/%{_name}*

%changelog
openSUSE Build Service is sponsored by