3 %bcond_without gtk # don't build GTK+ client
4 %bcond_without curses # don't build curses client
5 %bcond_without sdl # don't use sdl sound output
6 %bcond_without esd # don't use esd sound output
8 Summary: Drug dealing game
9 Summary(pl.UTF-8): Gra polegająca na handlowaniu narkotykami
14 Group: Applications/Games
15 Source0: http://dl.sourceforge.net/dopewars/%{name}-%{version}.tar.gz
16 # Source0-md5: debf749de9053dc2fb2e74c37ae06206
17 Patch0: %{name}-desktop.patch
18 Patch1: %{name}-scoredir.patch
19 URL: http://dopewars.sourceforge.net/
20 %{?with_sdl:BuildRequires: SDL-devel >= 1.0.0}
21 %{?with_sdl:BuildRequires: SDL_mixer-devel}
22 BuildRequires: autoconf
23 BuildRequires: automake
24 %{?with_esd:BuildRequires: esound-devel >= 0.0.20}
25 BuildRequires: glib2-devel >= 2.0.0
26 %{?with_gtk:BuildRequires: gtk+2-devel >= 1:2.0.0}
27 %{?with_curses:BuildRequires: ncurses-devel}
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 Based on John E. Dell's old Drug Wars game, dopewars is a simulation
32 of an imaginary drug market. dopewars is an All-American game which
33 features buying, selling, and trying to get past the cops!
35 The first thing you need to do is pay off your debt to the Loan Shark.
36 After that, your goal is to make as much money as possible (and stay
37 alive)! You have one month of game time to make your fortune.
39 dopewars supports multiple players via TCP/IP. Chatting to and
40 fighting with other players (computer or human) is supported; check
41 the command line switches (via dopewars -h) for further information.
43 %description -l pl.UTF-8
44 dopewars jest symulacją wyimaginowanego narkotykowego rynku, bazującą
45 na starej grze Drug Wars autorstwa Johna E. Della. Jest to gra w
46 amerykańskim stylu polegająca na kupowaniu, sprzedawaniu i omijaniu
49 Pierwszą rzeczą jaką trzeba zrobić jest spłacenie długu. Potem celem
50 jest zdobycie jak największej ilości pieniędzy (i przeżycie)! Gracz ma
51 jeden miesiąc gry na zdobycie fortuny.
53 W dopewars można grać z wieloma graczami poprzez TCP/IP. Można także z
54 nimi rozmawiać i walczyć; więcej informacji w opisie parametrów linii
55 poleceń (pokaże je dopewars -h).
70 %{?with_esd:--with-esd} \
71 %{?with_sdl:--with-sdl} \
72 %{?with_curses:--enable-curses-client} \
73 %{?with_gtk:--enable-gui-client} \
74 %{?with_gtk:--enable-gui-server}
77 CFLAGS="%{rpmcflags} -Wall -I/usr/include/ncurses"
80 rm -rf $RPM_BUILD_ROOT
81 install -d $RPM_BUILD_ROOT%{_desktopdir}
84 SCOREDIR=$RPM_BUILD_ROOT/var/games/dopewars \
85 DESTDIR=${RPM_BUILD_ROOT}
87 # I think this could be done somehow prettier
88 mv $RPM_BUILD_ROOT%{_datadir}/gnome/apps/Games/dopewars.desktop $RPM_BUILD_ROOT%{_desktopdir}
90 rm -f doc/help/Makefile*
92 # es_ES.po seems to be newer than es.po
93 mv -f %{_datadir}/locale/es_ES/LC_MESSAGES/* %{_datadir}/locale/es/LC_MESSAGES/
94 rm -rf %{_datadir}/locale/es_ES
99 rm -rf $RPM_BUILD_ROOT
101 %triggerpostun -- dopewars < 1.5.12-0.1
103 mv -f %{_datadir}/dopewars.sco.rpmsave /var/games/dopewars/dopewars.sco
104 chown root:games /var/games/dopewars/dopewars.sco
105 chmod 660 /var/games/dopewars/dopewars.sco
106 %{_bindir}/dopewars -C /var/games/dopewars/dopewars.sco
108 %files -f %{name}.lang
109 %defattr(644,root,root,755)
110 %doc ChangeLog LICENCE README doc/{*.html,help}
111 %attr(2755,root,games) %{_bindir}/dopewars
112 %attr(770,root,games) /var/games/dopewars
115 %{_desktopdir}/*.desktop