]>
Commit | Line | Data |
---|---|---|
a2d6b0bc | 1 | # |
541c6ec4 JB |
2 | # TODO: move scores file to /var/games! |
3 | # | |
a2d6b0bc | 4 | # Conditional build: |
7fd7c735 | 5 | %bcond_without gtk # don't build GTK+ client |
6 | %bcond_without curses # don't build curses client | |
7 | %bcond_without sdl # don't use sdl sound output | |
8 | %bcond_without esd # don't use esd sound output | |
541c6ec4 | 9 | # |
a2d6b0bc | 10 | Summary: Drug dealing game |
58bdf6c1 | 11 | Summary(pl.UTF-8): Gra polegająca na handlowaniu narkotykami |
a2d6b0bc | 12 | Name: dopewars |
65e1df3e AG |
13 | Version: 1.5.12 |
14 | Release: 0.1 | |
a2d6b0bc | 15 | License: GPL |
16 | Group: Applications/Games | |
15c71c6c | 17 | Source0: http://dl.sourceforge.net/dopewars/%{name}-%{version}.tar.gz |
65e1df3e | 18 | # Source0-md5: debf749de9053dc2fb2e74c37ae06206 |
1599395c | 19 | Patch0: %{name}-desktop.patch |
65e1df3e | 20 | Patch1: %{name}-scoredir.patch |
a2d6b0bc | 21 | URL: http://dopewars.sourceforge.net/ |
1dcaf906 | 22 | %{?with_sdl:BuildRequires: SDL-devel >= 1.0.0} |
23 | %{?with_sdl:BuildRequires: SDL_mixer-devel} | |
a2d6b0bc | 24 | BuildRequires: autoconf |
25 | BuildRequires: automake | |
1dcaf906 | 26 | %{?with_esd:BuildRequires: esound-devel >= 0.0.20} |
338a458c | 27 | BuildRequires: glib2-devel >= 2.0.0 |
99c46b26 | 28 | %{?with_gtk:BuildRequires: gtk+2-devel >= 1:2.0.0} |
1dcaf906 | 29 | %{?with_curses:BuildRequires: ncurses-devel} |
a2d6b0bc | 30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31 | ||
32 | %description | |
33 | Based on John E. Dell's old Drug Wars game, dopewars is a simulation | |
34 | of an imaginary drug market. dopewars is an All-American game which | |
35 | features buying, selling, and trying to get past the cops! | |
36 | ||
37 | The first thing you need to do is pay off your debt to the Loan Shark. | |
38 | After that, your goal is to make as much money as possible (and stay | |
39 | alive)! You have one month of game time to make your fortune. | |
40 | ||
541c6ec4 | 41 | dopewars supports multiple players via TCP/IP. Chatting to and |
a2d6b0bc | 42 | fighting with other players (computer or human) is supported; check |
43 | the command line switches (via dopewars -h) for further information. | |
44 | ||
4084fd5a JR |
45 | %description -l pl.UTF-8 |
46 | dopewars jest symulacją wyimaginowanego narkotykowego rynku, bazującą | |
541c6ec4 | 47 | na starej grze Drug Wars autorstwa Johna E. Della. Jest to gra w |
4084fd5a | 48 | amerykańskim stylu polegająca na kupowaniu, sprzedawaniu i omijaniu |
541c6ec4 | 49 | policji! |
a2d6b0bc | 50 | |
4084fd5a JR |
51 | Pierwszą rzeczą jaką trzeba zrobić jest spłacenie długu. Potem celem |
52 | jest zdobycie jak największej ilości pieniędzy (i przeżycie)! Gracz ma | |
53 | jeden miesiąc gry na zdobycie fortuny. | |
a2d6b0bc | 54 | |
4084fd5a JR |
55 | W dopewars można grać z wieloma graczami poprzez TCP/IP. Można także z |
56 | nimi rozmawiać i walczyć; więcej informacji w opisie parametrów linii | |
57 | poleceń (pokaże je dopewars -h). | |
a2d6b0bc | 58 | |
59 | %prep | |
60 | %setup -q | |
1599395c | 61 | %patch0 -p1 |
65e1df3e | 62 | %patch1 -p1 |
a2d6b0bc | 63 | |
64 | %build | |
65 | rm -f missing | |
66 | %{__aclocal} | |
67 | %{__autoconf} | |
68 | %{__automake} | |
69 | %configure \ | |
541c6ec4 JB |
70 | --enable-plugins \ |
71 | --enable-networking \ | |
1dcaf906 | 72 | %{?with_esd:--with-esd} \ |
73 | %{?with_sdl:--with-sdl} \ | |
74 | %{?with_curses:--enable-curses-client} \ | |
75 | %{?with_gtk:--enable-gui-client} \ | |
76 | %{?with_gtk:--enable-gui-server} | |
a2d6b0bc | 77 | |
c01b5690 | 78 | %{__make} \ |
bfcf19a4 | 79 | CFLAGS="%{rpmcflags} -Wall -I/usr/include/ncurses" |
a2d6b0bc | 80 | |
81 | %install | |
82 | rm -rf $RPM_BUILD_ROOT | |
1599395c | 83 | install -d $RPM_BUILD_ROOT%{_desktopdir} |
a2d6b0bc | 84 | |
a421f811 | 85 | %{__make} install \ |
65e1df3e | 86 | SCOREDIR=$RPM_BUILD_ROOT/var/games/dopewars \ |
a421f811 | 87 | DESTDIR=${RPM_BUILD_ROOT} |
a2d6b0bc | 88 | |
89 | # I think this could be done somehow prettier | |
1599395c | 90 | mv $RPM_BUILD_ROOT%{_datadir}/gnome/apps/Games/dopewars.desktop $RPM_BUILD_ROOT%{_desktopdir} |
a2d6b0bc | 91 | |
92 | rm -f doc/help/Makefile* | |
93 | ||
94 | %find_lang %{name} | |
95 | ||
96 | %clean | |
541c6ec4 | 97 | rm -rf $RPM_BUILD_ROOT |
a2d6b0bc | 98 | |
99 | %post | |
100 | %{_bindir}/dopewars -C %{_datadir}/dopewars.sco | |
101 | ||
102 | %files -f %{name}.lang | |
103 | %defattr(644,root,root,755) | |
104 | %doc ChangeLog LICENCE README doc/{*.html,help} | |
105 | %attr(2755,root,games) %{_bindir}/* | |
65e1df3e | 106 | %attr(770,root,games) /var/games/dopewars |
a2d6b0bc | 107 | %{_mandir}/man6/* |
108 | %{_libdir}/%{name} | |
1adb5e03 | 109 | %{_desktopdir}/*.desktop |
541c6ec4 | 110 | %{_pixmapsdir}/* |
a2d6b0bc | 111 | %{_datadir}/%{name} |