]> git.pld-linux.org Git - packages/dopewars.git/blame - dopewars.spec
- updated to 1.5.12
[packages/dopewars.git] / dopewars.spec
CommitLineData
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 10Summary: Drug dealing game
58bdf6c1 11Summary(pl.UTF-8): Gra polegająca na handlowaniu narkotykami
a2d6b0bc 12Name: dopewars
65e1df3e
AG
13Version: 1.5.12
14Release: 0.1
a2d6b0bc 15License: GPL
16Group: Applications/Games
15c71c6c 17Source0: http://dl.sourceforge.net/dopewars/%{name}-%{version}.tar.gz
65e1df3e 18# Source0-md5: debf749de9053dc2fb2e74c37ae06206
1599395c 19Patch0: %{name}-desktop.patch
65e1df3e 20Patch1: %{name}-scoredir.patch
a2d6b0bc 21URL: http://dopewars.sourceforge.net/
1dcaf906 22%{?with_sdl:BuildRequires: SDL-devel >= 1.0.0}
23%{?with_sdl:BuildRequires: SDL_mixer-devel}
a2d6b0bc 24BuildRequires: autoconf
25BuildRequires: automake
1dcaf906 26%{?with_esd:BuildRequires: esound-devel >= 0.0.20}
338a458c 27BuildRequires: 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 30BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32%description
33Based on John E. Dell's old Drug Wars game, dopewars is a simulation
34of an imaginary drug market. dopewars is an All-American game which
35features buying, selling, and trying to get past the cops!
36
37The first thing you need to do is pay off your debt to the Loan Shark.
38After that, your goal is to make as much money as possible (and stay
39alive)! You have one month of game time to make your fortune.
40
541c6ec4 41dopewars supports multiple players via TCP/IP. Chatting to and
a2d6b0bc 42fighting with other players (computer or human) is supported; check
43the command line switches (via dopewars -h) for further information.
44
4084fd5a
JR
45%description -l pl.UTF-8
46dopewars jest symulacją wyimaginowanego narkotykowego rynku, bazującą
541c6ec4 47na starej grze Drug Wars autorstwa Johna E. Della. Jest to gra w
4084fd5a 48amerykańskim stylu polegająca na kupowaniu, sprzedawaniu i omijaniu
541c6ec4 49policji!
a2d6b0bc 50
4084fd5a
JR
51Pierwszą rzeczą jaką trzeba zrobić jest spłacenie długu. Potem celem
52jest zdobycie jak największej ilości pieniędzy (i przeżycie)! Gracz ma
53jeden miesiąc gry na zdobycie fortuny.
a2d6b0bc 54
4084fd5a
JR
55W dopewars można grać z wieloma graczami poprzez TCP/IP. Można także z
56nimi rozmawiać i walczyć; więcej informacji w opisie parametrów linii
57poleceń (pokaże je dopewars -h).
a2d6b0bc 58
59%prep
60%setup -q
1599395c 61%patch0 -p1
65e1df3e 62%patch1 -p1
a2d6b0bc 63
64%build
65rm -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
82rm -rf $RPM_BUILD_ROOT
1599395c 83install -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 90mv $RPM_BUILD_ROOT%{_datadir}/gnome/apps/Games/dopewars.desktop $RPM_BUILD_ROOT%{_desktopdir}
a2d6b0bc 91
92rm -f doc/help/Makefile*
93
94%find_lang %{name}
95
96%clean
541c6ec4 97rm -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}
This page took 0.09013 seconds and 4 git commands to generate.