From bb6095f093edd3acc175c92a8a2a26678a18bbb7 Mon Sep 17 00:00:00 2001 From: wolf Date: Fri, 8 Feb 2002 21:41:10 +0000 Subject: [PATCH] - release 2 - 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 | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/adom.spec b/adom.spec index fa68ca3..6dd5627 100644 --- 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 -- 2.44.0