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

%global commit0 271471c7944d592a1d666910de0adce82a393d31
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})

Name:		numix-icon-theme
Version:	0.1.0
Release:	15.git%{shortcommit0}%{?dist}
Summary:	Numix Project icon theme

Source:		https://github.com/numixproject/numix-icon-theme/archive/%{commit0}.tar.gz#/numix-icon-theme-%{shortcommit0}.tar.gz

Group:		User Interface/Desktops
License:	GPLv3
URL:		http://numixproject.org

BuildArch:	noarch
Requires:	filesystem
Requires:	gnome-icon-theme
Requires:	hicolor-icon-theme

%description
Numix is the official icon theme from the Numix project.
It is heavily inspired by, and based upon parts of the Elementary,
Humanity and Gnome icon themes.

%prep
%autosetup -n %{name}-%{commit0}

%build
find -type f -executable -exec chmod -x {} \;

%install
install -d %{buildroot}%{_datadir}/icons

mkdir -p %{buildroot}%{_datadir}/doc/%{name}
cp -r Numix %{buildroot}%{_datadir}/icons/Numix
cp -r Numix-Light %{buildroot}%{_datadir}/icons/Numix-Light

%post
/bin/touch --no-create %{_datadir}/icons/Numix &>/dev/null || :
/bin/touch --no-create %{_datadir}/icons/Numix-Light &>/dev/null || :

%postun
if [ $1 -eq 0 ] ; then
    /bin/touch --no-create %{_datadir}/icons/Numix &>/dev/null
    /bin/touch --no-create %{_datadir}/icons/Numix-Light &>/dev/null
    /usr/bin/gtk-update-icon-cache %{_datadir}/icons/Numix &>/dev/null || :
    /usr/bin/gtk-update-icon-cache %{_datadir}/icons/Numix-Light &>/dev/null || :
fi

%posttrans
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/Numix &>/dev/null || :
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/Numix-Light &>/dev/null || :

%files
%license license
%doc readme.md
%{_datadir}/icons/Numix
%{_datadir}/icons/Numix-Light

%changelog
* Tue Apr 18 2017 Fedora <sspreitz@redhat.com> - 0.1.0-15.git271471c
- rebuilt

* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.0-14.git294ec8e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

* Sat Sep 24 2016 Sascha Spreitzer <sspreitz@redhat.com> - 0.1.0-13.git294ec8e
- rebuilt

* Tue Jun 14 2016 Sascha Spreitzer <sspreitz@redhat.com> - 0.1.0-12.git101307f
- rebuilt

* Mon Jun 13 2016 Sascha Spreitzer <sspreitz@redhat.com> - 0.1.0-11.git101307f
- Requires filesystem

* Mon Jun 13 2016 Sascha Spreitzer <sspreitz@redhat.com> - 0.1.0-10.git101307f
- Fix file permissions

* Tue May 03 2016 Sascha Spreitzer <sspreitz@redhat.com> - 0.1.0-9.git101307f
- spec file fixes

* Wed Apr 20 2016 Sascha Spreitzer <sspreitz@redhat.com> - 0.1.0-8.git101307f
- license tag for license file, diffable lines

* Tue Apr 19 2016 Sascha Spreitzer <sspreitz@redhat.com> - 0.1.0-7.git101307f
- split spec file

* Sat Apr 16 2016 Sascha Spreitzer <sspreitz@redhat.com> - 0.1.0-6.git101307f
- adjust groups and tabstops

* Sat Apr 16 2016 Sascha Spreitzer <sspreitz@redhat.com> - 0.1.0-5.git101307f
- fix sources setup and relative dirs

* Sat Apr 16 2016 Sascha Spreitzer <sspreitz@redhat.com> - 0.1.0-4.git101307f
- add license and readme files

* Sat Apr 16 2016 Sascha Spreitzer <sspreitz@redhat.com> - 0.1.0-3.git101307f
- require gdk-pixbuf2

* Sat Apr 16 2016 Sascha Spreitzer <sspreitz@redhat.com> - 0.1.0-2.git101307f
- refactor for git use

* Sun Jan 24 2016 Sascha Spreitzer <sspreitz@redhat.com> - 0.1.0-1.git101307f
- Refactor to build real srpms
- Repackaging
- Adding Shine and uTouch

openSUSE Build Service is sponsored by