]> git.pld-linux.org Git - packages/adom.git/commitdiff
- release 2
authorwolf <wolf@pld-linux.org>
Fri, 8 Feb 2002 21:41:10 +0000 (21:41 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- moved binary from bindir to prefix/games, added sgid
- /var/games/adom for global score file
- added icon and desktop file

Changed files:
    adom.spec -> 1.12

adom.spec

index fa68ca3886b8953e135c59134e61ea6dc7535dfd..6dd56271275cc0fd4d9ab513289fd930f1d0a410 100644 (file)
--- a/adom.spec
+++ b/adom.spec
@@ -11,10 +11,14 @@ Group:              Applications/Games
 Group(de):     Applikationen/Spiele
 Group(pl):     Aplikacje/Gry
 Source0:       http://www.adom.de/adom/download/linux/%{name}-%{_ver}-elf.tar.gz
+Source1:       %{name}.desktop
+Source2:       %{name}.png
 URL:           http://www.adom.de/
 ExclusiveArch: %{ix86}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define        _scoredir       /var/games/adom
+
 %description
 ADOM stands for Ancient Domains of Mystery. ADOM is a so-called
 rogue-like game. This means that it is a single-user game which allows
@@ -36,9 +40,17 @@ u
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_bindir}
+install -d $RPM_BUILD_ROOT{%{_prefix}/games,%{_scoredir},%{_sysconfdir},%{_applnkdir}/Games/Roguelike,%{_pixmapsdir}}
+
+install adom $RPM_BUILD_ROOT%{_prefix}/games
+touch $RPM_BUILD_ROOT%{_scoredir}/.HISCORE
+
+cat > $RPM_BUILD_ROOT%{_sysconfdir}/adom_ds.cfg << EOF
+%{_scoredir}
+EOF
 
-install adom $RPM_BUILD_ROOT%{_bindir}
+install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Games/Roguelike
+install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
 
 gzip -9nf adomfaq.txt manual.doc readme.1st
 
@@ -47,5 +59,12 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
+%attr(2755,root,games) %{_prefix}/games/adom
+%attr(775,root,games) %dir %{_scoredir}
+%attr(664,root,games) %config(noreplace) %verify(not md5 size mtime) %{_scoredir}/.HISCORE
+%{_sysconfdir}/adom_ds.cfg
+
+%{_applnkdir}/Games/Roguelike/*
+%{_pixmapsdir}/*
+
 %doc *.gz
-%attr(755,root,root) %{_bindir}/adom
This page took 0.060085 seconds and 4 git commands to generate.