]> git.pld-linux.org Git - packages/dopewars.git/blame - dopewars.spec
- rel 8; build fixed
[packages/dopewars.git] / dopewars.spec
CommitLineData
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 8Summary: Drug dealing game
58bdf6c1 9Summary(pl.UTF-8): Gra polegająca na handlowaniu narkotykami
a2d6b0bc 10Name: dopewars
65e1df3e 11Version: 1.5.12
a5adf481 12Release: 8
a2d6b0bc 13License: GPL
14Group: Applications/Games
c615139a 15Source0: http://downloads.sourceforge.net/dopewars/%{name}-%{version}.tar.gz
65e1df3e 16# Source0-md5: debf749de9053dc2fb2e74c37ae06206
1599395c 17Patch0: %{name}-desktop.patch
65e1df3e 18Patch1: %{name}-scoredir.patch
a5adf481 19Patch2: %{name}-build.patch
a2d6b0bc 20URL: http://dopewars.sourceforge.net/
1dcaf906 21%{?with_sdl:BuildRequires: SDL-devel >= 1.0.0}
22%{?with_sdl:BuildRequires: SDL_mixer-devel}
a2d6b0bc 23BuildRequires: autoconf
24BuildRequires: automake
1dcaf906 25%{?with_esd:BuildRequires: esound-devel >= 0.0.20}
56ea8398 26BuildRequires: gettext-tools
338a458c 27BuildRequires: glib2-devel >= 2.0.0
559ad620 28BuildRequires: gtk+-devel
99c46b26 29%{?with_gtk:BuildRequires: gtk+2-devel >= 1:2.0.0}
1dcaf906 30%{?with_curses:BuildRequires: ncurses-devel}
559ad620 31BuildRequires: pkgconfig
a2d6b0bc 32BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34%description
35Based on John E. Dell's old Drug Wars game, dopewars is a simulation
36of an imaginary drug market. dopewars is an All-American game which
37features buying, selling, and trying to get past the cops!
38
39The first thing you need to do is pay off your debt to the Loan Shark.
40After that, your goal is to make as much money as possible (and stay
41alive)! You have one month of game time to make your fortune.
42
541c6ec4 43dopewars supports multiple players via TCP/IP. Chatting to and
a2d6b0bc 44fighting with other players (computer or human) is supported; check
45the command line switches (via dopewars -h) for further information.
46
4084fd5a
JR
47%description -l pl.UTF-8
48dopewars jest symulacją wyimaginowanego narkotykowego rynku, bazującą
541c6ec4 49na starej grze Drug Wars autorstwa Johna E. Della. Jest to gra w
4084fd5a 50amerykańskim stylu polegająca na kupowaniu, sprzedawaniu i omijaniu
541c6ec4 51policji!
a2d6b0bc 52
4084fd5a
JR
53Pierwszą rzeczą jaką trzeba zrobić jest spłacenie długu. Potem celem
54jest zdobycie jak największej ilości pieniędzy (i przeżycie)! Gracz ma
55jeden miesiąc gry na zdobycie fortuny.
a2d6b0bc 56
4084fd5a
JR
57W dopewars można grać z wieloma graczami poprzez TCP/IP. Można także z
58nimi rozmawiać i walczyć; więcej informacji w opisie parametrów linii
59poleceń (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
68rm -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
86rm -rf $RPM_BUILD_ROOT
1599395c 87install -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 94mv $RPM_BUILD_ROOT%{_datadir}/gnome/apps/Games/dopewars.desktop $RPM_BUILD_ROOT%{_desktopdir}
a2d6b0bc 95
96rm -f doc/help/Makefile*
a5adf481 97rm -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
a2d6b0bc 98
c3ca080c 99# es_ES.po seems to be newer than es.po
559ad620 100mv -f $RPM_BUILD_ROOT%{_datadir}/locale/es_ES/LC_MESSAGES/* \
101 $RPM_BUILD_ROOT%{_datadir}/locale/es/LC_MESSAGES/
102rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/es_ES
c3ca080c 103
a2d6b0bc 104%find_lang %{name}
105
106%clean
541c6ec4 107rm -rf $RPM_BUILD_ROOT
a2d6b0bc 108
93d50913
AG
109%triggerpostun -- dopewars < 1.5.12-0.1
110# move scorefile
111mv -f %{_datadir}/dopewars.sco.rpmsave /var/games/dopewars/dopewars.sco
112chown root:games /var/games/dopewars/dopewars.sco
113chmod 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}
This page took 0.120613 seconds and 4 git commands to generate.