dmz-cursor-themes/dmz-cursor-themes.spec

76 lines
2.4 KiB
RPMSpec

Name: dmz-cursor-themes
Version: 0.4.5.1
Release: 1mamba
Summary: DMZ X cursors themes
Group: Graphical Desktop/Look 'n' feel
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://packages.debian.org/sid/gnome/dmz-cursor-theme
Source: http://ftp.debian.org/debian/pool/main/d/dmz-cursor-theme/dmz-cursor-theme_%{version}.tar.xz
License: CC-BY-SA
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
%description
An X cursors theme for the Gnome Desktop Environment.
%prep
%setup -q -n dmz-cursor-theme-%{version}
%build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
mkdir -p %{buildroot}/%{_datadir}/icons
cp -r DMZ-Black %{buildroot}/%{_datadir}/icons/
cp -r DMZ-White %{buildroot}/%{_datadir}/icons/
#cp -pr dmz/xcursors %{buildroot}/%{_datadir}/icons/DMZ-White/cursors
#cp -pr dmz-aa/xcursors %{buildroot}/%{_datadir}/icons/DMZ-Black/cursors
%post
if [ $1 -ge 1 ]; then
[ "`readlink -f /usr/share/icons/default`" != "/etc/alternatives/x-cursor-theme" ] && rm -f /usr/share/icons/default
/usr/sbin/update-alternatives --install %{_datadir}/icons/default x-cursor-theme %{_datadir}/icons/DMZ-Black 20
/usr/sbin/update-alternatives --install %{_datadir}/icons/default x-cursor-theme %{_datadir}/icons/DMZ-White 10
fi
exit 0
%postun
if [ $1 -eq 0 ]; then
/usr/sbin/update-alternatives --remove x-cursor-theme %{_datadir}/icons/DMZ-Black
/usr/sbin/update-alternatives --remove x-cursor-theme %{_datadir}/icons/DMZ-White
fi
exit 0
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%dir %{_datadir}/icons/DMZ-White
%{_datadir}/icons/DMZ-White/*
%dir %{_datadir}/icons/DMZ-Black
%{_datadir}/icons/DMZ-Black/*
%doc debian/copyright
%changelog
* Sun Jun 25 2023 Automatic Build System <autodist@mambasoft.it> 0.4.5.1-1mamba
- automatic update by autodist
* Thu Feb 04 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.5-1mamba
- update to 0.4.5
* Sat Mar 31 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4-4mamba
- fix Summary, Group, remove debug_package, and some other non conformities in specfile
* Wed Mar 21 2012 Filippo Bedendo Bordon <michiamophil@gmail.com> 0.4-3mamba
- bugfix for cursors path
* Wed Mar 21 2012 Filippo Bedendo Bordon <michiamophil@gmail.com> 0.4-2mamba
- added %post and %postun
* Tue Mar 20 2012 Filippo Bedendo Bordon <michiamophil@gmail.com> 0.4-1mamba
- package created by autospec