File mint-y-icon-theme.spec of Package mint-y-icon-theme

#
# spec file for package mint-y-icon-theme
#
# Copyright (c) 2021 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


%define _name   Mint-Y
Name:           mint-y-icon-theme
Version:        1.5.0
Release:        0
Summary:        Mint-Y icon theme
License:        CC-BY-SA-4.0 AND GPL-3.0-or-later
URL:            https://github.com/linuxmint/mint-y-icons
Source:         http://packages.linuxmint.com/pool/main/m/mint-y-icons/mint-y-icons_%{version}.tar.xz
BuildRequires:  fdupes
BuildRequires:  hicolor-icon-theme
Requires:       adwaita-icon-theme
Requires:       gnome-icon-theme
Requires:       hicolor-icon-theme
BuildArch:      noarch

%description
The flat, colourful, and modern theme based on Paper and Moka.

%prep
%setup -q -n mint-y-icons

%build
# Nothing to build.

%install
mkdir -p %{buildroot}%{_datadir}/icons/
cp -a .%{_datadir}/icons/%{_name} %{buildroot}%{_datadir}/icons/%{_name}
%icon_theme_cache_create_ghost %{_name}

%fdupes %{buildroot}%{_datadir}/icons/

%if 0%{?suse_version} < 1500
%post
%icon_theme_cache_post %{_name}

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

%files
%license debian/copyright
%doc debian/changelog
%{_datadir}/icons/%{_name}
%ghost %{_datadir}/icons/%{_name}/icon-theme.cache

%changelog
openSUSE Build Service is sponsored by