]> git.pld-linux.org Git - packages/dopewars.git/blob - dopewars.spec
c598d72fff5771c2e1e06aed8151c640507d20e9
[packages/dopewars.git] / dopewars.spec
1 #
2 # Conditional build:
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
7 #
8 Summary:        Drug dealing game
9 Summary(pl.UTF-8):      Gra polegająca na handlowaniu narkotykami
10 Name:           dopewars
11 Version:        1.5.12
12 Release:        3
13 License:        GPL
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)
29
30 %description
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!
34
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.
38
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.
42
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
47 policji!
48
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.
52
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).
56
57 %prep
58 %setup -q
59 %patch0 -p1
60 %patch1 -p1
61
62 %build
63 rm -f missing
64 %{__aclocal}
65 %{__autoconf}
66 %{__automake}
67 %configure \
68         --enable-plugins \
69         --enable-networking \
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}
75
76 %{__make} \
77         CFLAGS="%{rpmcflags} -Wall -I/usr/include/ncurses"
78
79 %install
80 rm -rf $RPM_BUILD_ROOT
81 install -d $RPM_BUILD_ROOT%{_desktopdir}
82
83 %{__make} install \
84         SCOREDIR=$RPM_BUILD_ROOT/var/games/dopewars \
85         DESTDIR=${RPM_BUILD_ROOT}
86
87 # I think this could be done somehow prettier
88 mv $RPM_BUILD_ROOT%{_datadir}/gnome/apps/Games/dopewars.desktop $RPM_BUILD_ROOT%{_desktopdir}
89
90 rm -f doc/help/Makefile*
91
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
95
96 %find_lang %{name}
97
98 %clean
99 rm -rf $RPM_BUILD_ROOT
100
101 %triggerpostun -- dopewars < 1.5.12-0.1
102 # move scorefile
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
107
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
113 %{_mandir}/man6/*
114 %{_libdir}/%{name}
115 %{_desktopdir}/*.desktop
116 %{_pixmapsdir}/*
117 %{_datadir}/%{name}
This page took 0.049024 seconds and 2 git commands to generate.