Репозиторий Sisyphus
Последнее обновление: 21 октября 2020 | Пакетов: 17714 | Посещений: 19447473
en ru br
Репозитории ALT

Группа :: Игры/Прочее
Пакет: dopewars

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

# BEGIN SourceDeps(oneline):
BuildRequires: /usr/bin/desktop-file-install glib2-devel libSDL-devel libesd-devel
# END SourceDeps(oneline)
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
# State dir for savegames
%global _localstatedir /var/lib/games
# SVN release
%global rel 1033

Summary: A drug dealing game
Name: dopewars
Version: 1.5.12
Release: alt1_20.%{rel}svn
URL: http://dopewars.sourceforge.net/
License: GPLv2+
Group: Games/Other
#Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
## The source tarball has been generated followingly:
# svn co https://svn.sourceforge.net/svnroot/dopewars/dopewars/trunk dopewars
# tar jcf dopewars-%{version}-%{rel}svn.tar.bz2
Source0: %{name}-%{version}-%{rel}svn.tar.bz2

BuildRequires: desktop-file-utils
BuildRequires: gtk-builder-convert gtk-demo libgail-devel libgtk+2-devel libgtk+2-gir-devel
BuildRequires: libncurses++-devel libncurses-devel libncursesw-devel libtic-devel libtinfo-devel
BuildRequires: libSDL_mixer-devel

# SVN stuff

BuildRequires: automake-common
BuildRequires: autoconf-common
BuildRequires: libtool-common
BuildRequires: gettext gettext-tools

Based on John E. Dell's old Drug Wars game, dopewars is a simulation of an
imaginary drug market. dopewars is an All-American game which features
buying, selling, and trying to get past the cops!

The first thing you need to do is pay off your debt to the Loan Shark. After
that, your goal is to make as much money as possible (and stay alive)! You
have one month of game time to make your fortune.

dopewars supports multiple players via. TCP/IP. Chatting to and fighting
with other players (computer or human) is supported; check the command line
switches (via dopewars -h) for further information.

%package sdl
Summary: SDL sound support for dopewars
Group: Games/Other
Requires: %{name} = %{version}-%{release}
%description sdl
This package adds a plugin to dopewars to allow sound to be output via.
the Simple DirectMedia Layer mixer (SDL_mixer).

#%setup -q
%setup -q -n %{name}

# Clean out svn stuff

find . -name .svn | xargs rm -rf;
# Fix documentation
iconv -f ISO-8859-1 -t UTF-8 ChangeLog > ChangeLog.new && \
mv ChangeLog.new ChangeLog
chmod 644 doc/*.html

NOCONFIGURE=1 autoreconf -vif
%configure \
--enable-shared --disable-static \
--enable-gui-server --enable-curses-client \
--enable-gui-client --with-sdl --without-esd

make install DESTDIR=%{buildroot}
%find_lang %{name}

# Fix desktop file install

mv %{buildroot}/%{_datadir}/gnome/apps/Games/dopewars.desktop .
iconv -f ISO-8859-1 -t UTF-8 dopewars.desktop > dopewars.desktop.new && \
mv dopewars.desktop{.new,}
desktop-file-install --vendor="" \
--dir=${RPM_BUILD_ROOT}%{_datadir}/applications dopewars.desktop

# Remove documentation installed by make install

rm -rf %{buildroot}%{_docdir}

%{_bindir}/dopewars -C %{_localstatedir}/dopewars.sco

%files -f %{name}.lang
%doc ChangeLog LICENCE NEWS README doc/*.html doc/example-cfg
# Score file needs to be writable by games group
%attr(0664,root,games) %{_localstatedir}/dopewars.sco
# Bin file needs to be able to write into score file
%attr(2711,root,games) %{_bindir}/dopewars
%exclude %{_libdir}/dopewars/libsound_sdl.so

%files sdl


Полный changelog можно просмотреть здесь

дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin