File flat-remix-icon-theme.spec of Package flat-remix-icon-theme

Name:		flat-remix-icon-theme
Version:	20190109
Release:	0
Summary:	Flat Remix icon theme for Linux
License:	GPL-3.0
Group:		System/GUI/Other
Url:		https://github.com/daniruiz/flat-remix/
Source0:	flat-remix-%{version}.tar.gz
BuildArch:	noarch
%if 0%{?suse_version} < 1500
Requires(post):	hicolor-icon-theme
Requires(postun): hicolor-icon-theme
%endif

%description
Flat Remix icon theme is a pretty simple Linux icon theme inspired on material design. It is mostly flat with some shadows, highlights and gradients for some depth, and uses a colorful palette with nice contrasts.

This package contains the following icon themes:

Flat-Remix
Flat-Remix-Dark
Flat-Remix-Light

%prep
%setup -q -n flat-remix-%{version}

%install
mkdir -p %{buildroot}%{_datadir}/icons
cp -f -r Flat-Remix* %{buildroot}%{_datadir}/icons

%if 0%{?suse_version} < 1500
%post
%icon_theme_cache_post Flat-Remix
%icon_theme_cache_post Flat-Remix-Dark
%icon_theme_cache_post Flat-Remix-Light

%postun
%icon_theme_cache_postun Flat-Remix
%icon_theme_cache_postun Flat-Remix-Dark
%icon_theme_cache_postun Flat-Remix-Light
%endif

%files
%defattr(-, root, root)
%doc README.md CREDITS Authors
%license LICENSE
%{_datadir}/icons/Flat-Remix
%{_datadir}/icons/Flat-Remix-Dark
%{_datadir}/icons/Flat-Remix-Light