File numix-icon-theme-square.spec of Package numix-icon-theme-square

%global numix_theme	  Numix-Square


Name:           numix-icon-theme-square
Version:        0
Release:        1
Summary:        %{numix_theme} icon theme
Group:		    User Interface/Desktops
License:        GPL-3.0
URL:            https://github.com/numixproject/%{name}
Source0:        %{name}-%{version}.tar.xz
BuildRequires:  hicolor-icon-theme
BuildRequires:  numix-icon-theme
BuildRequires:  fdupes
Requires:       numix-icon-theme
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
%{numix_theme} is an icon theme from the Numix project - http://numixproject.org.

%prep
%setup -q

%build

%install
%{__install} -d -m755 %{buildroot}%{_datadir}/icons/
%{__cp} -pr %{numix_theme}{,-Light} %{buildroot}%{_datadir}/icons/
find -L %{buildroot}%{_datadir}/icons -type l -print -delete
find %{buildroot}%{_datadir}/icons -type f -print -exec chmod 0644 {} \;
%fdupes -s %{buildroot}
%icon_theme_cache_create_ghost %{numix_theme} %{numix_theme}-Light

%post
%icon_theme_cache_post %{numix_theme} %{numix_theme}-Light

%files
%defattr(-,root,root,-)
%doc LICENSE README.md
%ghost %{_datadir}/icons/%{numix_theme}/icon-theme.cache
%ghost %{_datadir}/icons/%{numix_theme}-Light/icon-theme.cache
%{_datadir}/icons/%{numix_theme}
%{_datadir}/icons/%{numix_theme}-Light

%changelog