]> git.pld-linux.org Git - packages/dopewars.git/commitdiff
- todo done auto/th/dopewars-1_5_12-1
authorAdam Gołębiowski <adamg@pld-linux.org>
Sun, 8 Nov 2009 15:20:21 +0000 (15:20 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- drop %post script, add %trigger to move old scorefile
- adapterized (no globs for suid/sgid files)
- release 1

Changed files:
    dopewars.spec -> 1.23

dopewars.spec

index b8e523357f9bab2e67e535a8f09de73ca9200008..55cbdc8424c427828a443933c1b0cd48ea63c418 100644 (file)
@@ -1,6 +1,4 @@
 #
-# TODO: move scores file to /var/games!
-#
 # Conditional build:
 %bcond_without gtk             # don't build GTK+ client
 %bcond_without curses          # don't build curses client
@@ -11,7 +9,7 @@ Summary:       Drug dealing game
 Summary(pl.UTF-8):     Gra polegająca na handlowaniu narkotykami
 Name:          dopewars
 Version:       1.5.12
-Release:       0.1
+Release:       1
 License:       GPL
 Group:         Applications/Games
 Source0:       http://dl.sourceforge.net/dopewars/%{name}-%{version}.tar.gz
@@ -96,13 +94,17 @@ rm -f doc/help/Makefile*
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post
-%{_bindir}/dopewars -C %{_datadir}/dopewars.sco
+%triggerpostun -- dopewars < 1.5.12-0.1
+# move scorefile
+mv -f %{_datadir}/dopewars.sco.rpmsave /var/games/dopewars/dopewars.sco
+chown root:games /var/games/dopewars/dopewars.sco
+chmod 660 /var/games/dopewars/dopewars.sco
+%{_bindir}/dopewars -C /var/games/dopewars/dopewars.sco
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc ChangeLog LICENCE README doc/{*.html,help}
-%attr(2755,root,games) %{_bindir}/*
+%attr(2755,root,games) %{_bindir}/dopewars
 %attr(770,root,games) /var/games/dopewars
 %{_mandir}/man6/*
 %{_libdir}/%{name}
This page took 0.08623 seconds and 4 git commands to generate.