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