File: dopewars.spec.in

package info (click to toggle)
dopewars 1.5.12-19
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 7,028 kB
  • sloc: ansic: 31,614; sh: 8,577; makefile: 470; yacc: 318
file content (114 lines) | stat: -rw-r--r-- 3,856 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
Summary:       Drug dealing game
Name:          @PACKAGE@
Version:       @VERSION@
Release:       1
Vendor:        Ben Webb <benwebb@users.sf.net>
URL:           http://dopewars.sourceforge.net/
License:       GPL
Group:         Amusements/Games
Source0:       %{name}-%{version}.tar.gz
Obsoletes:     dopewars-esd = 1.5.7
BuildRoot:     %{_tmppath}/%{name}-%{version}-root-%(id -u -n)
BuildRequires: SDL_mixer-devel, SDL-devel, esound-devel

%description
Based on John E. Dell's old Drug Wars game, dopewars is a simulation of an    
imaginary drug market.  dopewars is an All-American game which features       
buying, selling, and trying to get past the cops!                              
                                                                                
The first thing you need to do is pay off your debt to the Loan Shark. After   
that, your goal is to make as much money as possible (and stay alive)! You     
have one month of game time to make your fortune.                              

dopewars supports multiple players via. TCP/IP. Chatting to and fighting
with other players (computer or human) is supported; check the command line
switches (via dopewars -h) for further information. 

%package sdl
Summary:  dopewars SDL_mixer sound plugin
Group:    Amusements/Games
Requires: %{name}
%description sdl
This package adds a plugin to dopewars to allow sound to be output via.
the Simple DirectMedia Layer mixer (SDL_mixer).

%prep
%setup

%build
%define _localstatedir /var/lib/games
%configure --with-sdl --with-esd
make

%install
make install DESTDIR=${RPM_BUILD_ROOT}
%find_lang %{name}

%clean
test "$RPM_BUILD_ROOT" != "/" && rm -rf ${RPM_BUILD_ROOT}

%post
%{_bindir}/dopewars -C %{_localstatedir}/dopewars.sco

%files -f %{name}.lang
%defattr(-,root,root)
%doc ChangeLog LICENCE README doc/aiplayer.html doc/clientplay.html
%doc doc/configfile.html doc/contribute.html doc/credits.html
%doc doc/developer.html doc/example-cfg doc/i18n.html doc/index.html
%doc doc/installation.html doc/metaserver.html doc/server.html
%doc doc/servercommands.html doc/protocol.html doc/windows.html
%attr(2755,root,games) %{_bindir}/dopewars
%attr(0660,root,games) %config %{_localstatedir}/dopewars.sco
%{_mandir}/man6/dopewars.6.gz
%{_libdir}/dopewars/libsound_esd.so
%{_datadir}/gnome/apps/Games/dopewars.desktop
%{_datadir}/pixmaps/dopewars-pill.png
%{_datadir}/pixmaps/dopewars-weed.png
%{_datadir}/pixmaps/dopewars-shot.png
%dir %{_datadir}/dopewars/
%{_datadir}/dopewars/bye.wav
%{_datadir}/dopewars/colt.wav
%{_datadir}/dopewars/die.wav
%{_datadir}/dopewars/gun.wav
%{_datadir}/dopewars/jet.wav
%{_datadir}/dopewars/losebitch.wav
%{_datadir}/dopewars/message.wav
%{_datadir}/dopewars/murmur.wav
%{_datadir}/dopewars/punch.wav
%{_datadir}/dopewars/run.wav
%{_datadir}/dopewars/shotdown.wav
%{_datadir}/dopewars/train.wav

%files sdl
%defattr(-,root,root)
%{_libdir}/dopewars/libsound_sdl.so

%changelog
* Mon Jul 28 2003 Ben Webb <benwebb@users.sf.net>
- High score file moved to /var/lib/games for consistency with
  other packages

* Mon Oct 21 2002 Ben Webb <benwebb@users.sf.net>
- Dependency on SDL-devel added to properly build SDL plugin

* Fri Oct 18 2002 Ben Webb <benwebb@users.sf.net>
- ESD plugin incorporated into main package
- Sound files added to distribution

* Fri Jun 21 2002 Ben Webb <benwebb@users.sf.net>
- Description typos corrected
- A lot of hardcoded texts replaced with %{name} etc.
- Redundant make arguments removed

* Mon May 13 2002 Ben Webb <benwebb@users.sf.net>
- SDL and ESD plugin subpackages added

* Sun Feb 03 2002 Ben Webb <benwebb@users.sf.net>
- Use of %attr tidied up
- Rebuild with new version

* Wed Oct 17 2001 Ben Webb <benwebb@users.sf.net>
- Added in %attrs to allow building by non-root users

* Wed Sep 26 2001 Ben Webb <benwebb@users.sf.net>
- Added support for a buildroot