rpms/dopewars/F-9 dopewars.spec,NONE,1.1 sources,1.1,1.2

Jussi Lehtola jussilehtola at fedoraproject.org
Sat Nov 8 09:34:30 UTC 2008


Author: jussilehtola

Update of /cvs/pkgs/rpms/dopewars/F-9
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv9051/F-9

Modified Files:
	sources 
Added Files:
	dopewars.spec 
Log Message:
* Sat Nov 08 2008 Jussi Lehtola - 1.5.12-3
- First release.



--- NEW FILE dopewars.spec ---
# State dir for savegames
%define _localstatedir /var/lib/games

Summary:	A drug dealing game
Name:		dopewars
Version:	1.5.12
Release:	3
URL:		http://dopewars.sourceforge.net/
License:	GPLv2+
Group:		Amusements/Games
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:	esound-devel
BuildRequires:  desktop-file-utils
BuildRequires:	gtk2-devel
BuildRequires:	ncurses-devel
BuildRequires:	SDL_mixer-devel

%description
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:		Amusements/Games
Requires:	%{name}
%description sdl
This package adds a plugin to dopewars to allow sound to be output via.
the Simple DirectMedia Layer mixer (SDL_mixer).

%prep
%setup -q

%build
%configure \
	--enable-shared --disable-static \
	--enable-gui-server --enable-curses-client \
	--enable-gui-client --with-sdl --with-esd
make %{?_smp_mflags}

%install
rm -rf %{buildroot}
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

# Fix documentation
iconv -f ISO-8859-1 -t UTF-8 ChangeLog > ChangeLog.new && \
mv ChangeLog.new ChangeLog
chmod 644 doc/*.html

%clean
rm -rf %{buildroot}

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

%files -f %{name}.lang
%defattr(-,root,root,-)
%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(2755,root,games) %{_bindir}/dopewars
%{_mandir}/man6/*
%{_libdir}/dopewars/libsound_esd.so
%{_datadir}/applications/*
%{_datadir}/pixmaps/*
%{_datadir}/dopewars

%files sdl
%defattr(-,root,root)
%{_libdir}/dopewars/libsound_sdl.so

%changelog
* Fri Nov 07 2008 Jussi Lehtola - 1.5.12-3
- Fix source URL.

* Tue Nov 04 2008 Jussi Lehtola - 1.5.12-2
- Add BR desktop-file-utils.

* Tue Nov 04 2008 Jussi Lehtola - 1.5.12-1
- Spec file cleanups for Fedora inclusion.

* Mon Jul 28 2003 Ben Webb <benwebb at users.sf.net>
- High score file moved to /var/lib/games for consistency with
  other packages

* Mon Oct 21 2002 Ben Webb <benwebb at users.sf.net>
- Dependency on SDL-devel added to properly build SDL plugin

* Fri Oct 18 2002 Ben Webb <benwebb at users.sf.net>
- ESD plugin incorporated into main package
- Sound files added to distribution

* Fri Jun 21 2002 Ben Webb <benwebb at users.sf.net>
- Description typos corrected
- A lot of hardcoded texts replaced with %%{name} etc.
- Redundant make arguments removed

* Mon May 13 2002 Ben Webb <benwebb at users.sf.net>
- SDL and ESD plugin subpackages added

* Sun Feb 03 2002 Ben Webb <benwebb at users.sf.net>
- Use of %%attr tidied up
- Rebuild with new version

* Wed Oct 17 2001 Ben Webb <benwebb at users.sf.net>
- Added in %%attrs to allow building by non-root users

* Wed Sep 26 2001 Ben Webb <benwebb at users.sf.net>
- Added support for a buildroot


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/dopewars/F-9/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	7 Nov 2008 21:29:07 -0000	1.1
+++ sources	8 Nov 2008 09:34:00 -0000	1.2
@@ -0,0 +1 @@
+debf749de9053dc2fb2e74c37ae06206  dopewars-1.5.12.tar.gz




More information about the fedora-extras-commits mailing list