File mingw64-hicolor-icon-theme.spec of Package mingw64-hicolor-icon-theme

#
# spec file for package mingw64-hicolor-icon-theme
#
# Copyright (c) 2017 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   hicolor-icon-theme
Name:           mingw64-%{_name}
Version:        0.17
Release:        0
Summary:        Fallback Icon Theme
License:        GPL-2.0-or-later
Group:          System/X11/Utilities
Url:            https://freedesktop.org/wiki/Software/icon-theme/
Source:         http://icon-theme.freedesktop.org/releases/%{_name}-%{version}.tar.xz
Source1:        macros.mingw64-hicolor
Source99:       %{name}-rpmlintrc
BuildRequires:  mingw64-filesystem
Requires:       mingw64-filesystem
%_mingw64_package_header
BuildArch:      noarch

%description
This is the default fallback theme used by implementations of the icon
theme specification.

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

%build
%_mingw64_configure
make %{?_smp_mflags}

%install
make %{?_smp_mflags} DESTDIR=%{buildroot} install
touch %{buildroot}%{_mingw64_datadir}/icons/hicolor/icon-theme.cache
chmod -x COPYING
# Install rpm macros
install -D -m644 %{SOURCE1} %{buildroot}%{_sysconfdir}/rpm/macros.mingw64-hicolor

%files
%defattr(-, root, root)
%doc COPYING ChangeLog README
%dir %{_mingw64_datadir}
%dir %{_mingw64_datadir}/icons
%ghost %{_mingw64_datadir}/icons/hicolor/icon-theme.cache
%{_mingw64_datadir}/icons/hicolor/
%config %{_sysconfdir}/rpm/macros.mingw64-hicolor

%changelog
openSUSE Build Service is sponsored by