rpms/wormsofprey/devel wop-0.4.3-gcc43.patch, NONE, 1.1 wormsofprey.desktop, NONE, 1.1 wormsofprey.png, NONE, 1.1 wormsofprey.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Hans de Goede jwrdegoede at rpmfusion.org
Fri Jul 25 21:43:47 CEST 2008


Author: jwrdegoede

Update of /cvs/free/rpms/wormsofprey/devel
In directory se02.es.rpmfusion.net:/tmp/cvs-serv21821/devel

Modified Files:
	.cvsignore sources 
Added Files:
	wop-0.4.3-gcc43.patch wormsofprey.desktop wormsofprey.png 
	wormsofprey.spec 
Log Message:
initial wormsofprey upload


wop-0.4.3-gcc43.patch:

--- NEW FILE wop-0.4.3-gcc43.patch ---
--- wop-0.4.3/src/scusibot.cpp	2005-10-16 19:53:05.000000000 +0200
+++ wop-0.4.3.new/src/scusibot.cpp	2008-03-20 10:52:07.000000000 +0100
@@ -5,6 +5,7 @@
 #include "stationarygun.hpp"
 #include "global.hpp"
 #include <vector>
+#include <algorithm>
 
 ScusiBot::ScusiBot()
 	: m_event( Event::EMPTY ), m_count( 0 ), m_state( IDLE ) {
--- wop-0.4.3/src/spriteset.cpp	2006-03-27 12:27:53.000000000 +0200
+++ wop-0.4.3.new/src/spriteset.cpp	2008-03-20 13:08:52.000000000 +0100
@@ -2,6 +2,7 @@
 
 #include  "spriteset.hpp"
 #include  "global.hpp"
+#include "sprite.hpp"
 
 /**********************************************************/
 
@@ -17,6 +18,9 @@
 #endif // SUPPRESS_COLORING
 #endif // BLACK_
 
+/* force creation of an implementation of SpriteSet<Sprite> */
+static SpriteSet<Sprite> foo;
+
 /**********************************************************/
 
 template <class T>


--- NEW FILE wormsofprey.desktop ---
[Desktop Entry]
Name=Wörms of Prey
Comment=Team based bomb / scorched like game
Exec=wormsofprey
Icon=wormsofprey
Terminal=false
Type=Application
Categories=Game;ArcadeGame;StrategyGame;


--- NEW FILE wormsofprey.spec ---
Name:           wormsofprey
Version:        0.4.3
Release:        2%{?dist}
Summary:        Team based bomb / scorched like game
Group:          Amusements/Games
License:        GPLv2+
URL:            http://wormsofprey.org/
Source0:        http://wormsofprey.org/download/wop-%{version}-src.tar.bz2
Source1:        %{name}.desktop
Source2:        %{name}.png
Patch0:         wop-0.4.3-gcc43.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires:  SDL_image-devel SDL_mixer-devel SDL_net-devel SDL_ttf-devel
BuildRequires:  zlib-devel imake desktop-file-utils
Requires:       %{name}-data >= 20051221

%description
Each player controls a team of worms and the purpose is to ellimate all the
other worms, for which each worm has a number of different weapons at his
disposal. Features: Multi-player with one player per computer, Completely new
graphics, Low bandwidth usage, Different game modes (death match, team play),
Ropes can be attached to any object, Rope can be released, Any number of ropes
and Multiple moving goals.


%prep
%setup -q -n wop-%{version}
%patch0 -p1
sed -i 's|^CXXFLAGS ?= .*|CXXFLAGS ?= %{optflags}|' sdlwidgets/Makefile \
  src/Makefile
sed -i 's|data = ./data|data = %{_datadir}/%{name}|' woprc
sed -i 's|\r||' ChangeLog
iconv -f ISO-8859-1 -t UTF-8 REVIEWS > REVIEWS.tmp
touch -r REVIEWS REVIEWS.tmp
mv REVIEWS.tmp REVIEWS


%build
make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{name}
install -m 644 woprc $RPM_BUILD_ROOT/%{_sysconfdir}
install -m 755 bin/wop $RPM_BUILD_ROOT/%{_bindir}/%{name}

# below is the desktop file and icon stuff.
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
desktop-file-install --vendor dribble           \
  --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  %{SOURCE1}
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/16x16/apps
install -p -m 644 %{SOURCE2} \
  $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/16x16/apps


%clean
rm -rf $RPM_BUILD_ROOT


%post
touch --no-create %{_datadir}/icons/hicolor || :
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
   %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi

%postun
touch --no-create %{_datadir}/icons/hicolor || :
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
   %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi


%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING README README-COMMAND-LINE-OPTIONS.txt REVIEWS
%config(noreplace) %{_sysconfdir}/woprc
%{_bindir}/%{name}
%dir %{_datadir}/%{name}
%{_datadir}/applications/dribble-%{name}.desktop
%{_datadir}/icons/hicolor/16x16/apps/%{name}.png


%changelog
* Thu Mar 20 2008 Hans de Goede <j.w.r.degoede at hhs.nl> 0.4.3-2%{?dist}
- Fix building with gcc 4.3

* Wed Aug  9 2006 Hans de Goede <j.w.r.degoede at hhs.nl> 0.4.3-1%{?dist}
- Initial Fedora Extras package


Index: .cvsignore
===================================================================
RCS file: /cvs/free/rpms/wormsofprey/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	1 Jun 2008 13:58:56 -0000	1.1
+++ .cvsignore	25 Jul 2008 19:43:47 -0000	1.2
@@ -0,0 +1 @@
+wop-0.4.3-src.tar.bz2


Index: sources
===================================================================
RCS file: /cvs/free/rpms/wormsofprey/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	1 Jun 2008 13:58:56 -0000	1.1
+++ sources	25 Jul 2008 19:43:47 -0000	1.2
@@ -0,0 +1 @@
+ae07e9e1092de6c447a9af2cf8e90959  wop-0.4.3-src.tar.bz2



More information about the rpmfusion-commits mailing list