diff --git a/README.md b/README.md index 6e9531a..8594f89 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # dmz-cursor-themes +An X cursors theme for the Gnome Desktop Environment. + diff --git a/dmz-cursor-themes.spec b/dmz-cursor-themes.spec new file mode 100644 index 0000000..ce690d3 --- /dev/null +++ b/dmz-cursor-themes.spec @@ -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 +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 0.4-4mamba +- fix Summary, Group, remove %debug_package, and some other non conformities in specfile + +* Wed Mar 21 2012 Filippo Bedendo Bordon 0.4-3mamba +- bugfix for cursors path + +* Wed Mar 21 2012 Filippo Bedendo Bordon 0.4-2mamba +- added %post and %postun + +* Tue Mar 20 2012 Filippo Bedendo Bordon 0.4-1mamba +- package created by autospec