fix Summary, Group, remove %debug_package, and some other non conformities in specfile [release 0.4-4mamba;Sat Mar 31 2012]

This commit is contained in:
Silvan Calarco 2024-01-05 21:50:23 +01:00
parent 873f74927d
commit a88ffb7f86
2 changed files with 72 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# dmz-cursor-themes
An X cursors theme for the Gnome Desktop Environment.

70
dmz-cursor-themes.spec Normal file
View File

@ -0,0 +1,70 @@
Name: dmz-cursor-themes
Version: 0.4
Release: 4mamba
Summary: DMZ X cursors themes
Group: Graphical Desktop/Look 'n' feel
Vendor: openmamba
Distribution: openmamba
Packager: Filippo Bedendo Bordon <michiamophil@gmail.com>
URL: http://jimmac.musichall.cz/themes.php?skin=7
Source: dmz-cursor-themes-%{version}.tar.bz2
License: CC-BY-SA
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
An X cursors theme for the Gnome Desktop Environment.
%prep
%setup -q
%build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
mkdir -p %{buildroot}/%{_datadir}/icons/DMZ-White
cp -pr dmz/xcursors %{buildroot}/%{_datadir}/icons/DMZ-White/cursors
cp -p dmz/index.theme %{buildroot}/%{_datadir}/icons/DMZ-White/
cp -p dmz/cursor.theme %{buildroot}/%{_datadir}/icons/DMZ-White/
mkdir -p %{buildroot}/%{_datadir}/icons/DMZ-Black
cp -pr dmz-aa/xcursors %{buildroot}/%{_datadir}/icons/DMZ-Black/cursors
cp -p dmz-aa/index.theme %{buildroot}/%{_datadir}/icons/DMZ-Black/
cp -p dmz-aa/cursor.theme %{buildroot}/%{_datadir}/icons/DMZ-Black/
%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)
%doc dmz/COPYING
%dir %{_datadir}/icons/DMZ-White
%{_datadir}/icons/DMZ-White/*
%dir %{_datadir}/icons/DMZ-Black
%{_datadir}/icons/DMZ-Black/*
%changelog
* 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