Compare commits

..

4 commits

Author SHA1 Message Date
Fedora Release Engineering
d9915fff9f dist-git conversion 2010-07-29 15:25:21 +00:00
Bill Nottingham
263fb9048d Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-26 01:18:38 +00:00
Michael Thomas
5ce0caf7f3 License tag clarification 2007-08-22 06:05:00 +00:00
Bill Nottingham
96622f90f3 Initialize branch F-7 for wormux 2007-05-18 11:09:38 +00:00
5 changed files with 176 additions and 1 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
wormux-0.7.9.tar.gz

View file

@ -1 +0,0 @@
Renamed to warmux (#773419)

1
sources Normal file
View file

@ -0,0 +1 @@
d921ae5bad243dec7bb6825d6e0b9d16 wormux-0.7.9.tar.gz

51
wormux-0.7.9-cflags.patch Normal file
View file

@ -0,0 +1,51 @@
--- wormux-0.7.9/configure.ac~ 2007-01-28 16:06:11.000000000 +0200
+++ wormux-0.7.9/configure.ac 2007-03-24 12:59:34.000000000 +0200
@@ -150,11 +150,8 @@
GCC_FLAGS="$GCC_FLAGS -O2"
fi
- dnl Ignore default options set by autoconf
- dnl CFLAGS="$CFLAGS $GCC_FLAGS"
- CFLAGS="$GCC_FLAGS"
- dnl CXXFLAGS="$CXXFLAGS $GCC_FLAGS"
- CXXFLAGS="$GCC_FLAGS"
+ CFLAGS="$GCC_FLAGS $CFLAGS"
+ CXXFLAGS="$GCC_FLAGS $CXXFLAGS"
else
if test "x${debug}" = "xyes"; then
--- wormux-0.7.9/configure~ 2007-01-28 16:06:58.000000000 +0200
+++ wormux-0.7.9/configure 2007-03-24 12:59:57.000000000 +0200
@@ -7319,8 +7319,8 @@
GCC_FLAGS="$GCC_FLAGS -O2"
fi
- CFLAGS="$GCC_FLAGS"
- CXXFLAGS="$GCC_FLAGS"
+ CFLAGS="$GCC_FLAGS $CFLAGS"
+ CXXFLAGS="$GCC_FLAGS $CXXFLAGS"
else
if test "x${debug}" = "xyes"; then
--- wormux-0.7.9/src/Makefile.am~ 2007-01-28 16:03:48.000000000 +0200
+++ wormux-0.7.9/src/Makefile.am 2007-03-24 13:03:12.000000000 +0200
@@ -176,7 +176,7 @@
weapon/blowtorch.cpp weapon/blowtorch.h \
weapon/syringe.cpp weapon/syringe.h
-AM_CXXFLAGS = -DINSTALL_DATADIR=\"$(pkgdatadir)\" -DINSTALL_LOCALEDIR=\"$(localedir)\" -DFONT_FILE=\"$(fontfile)\" -DPACKAGE_VERSION=\"$(PACKAGE_VERSION)\" -Werror
+AM_CXXFLAGS = -DINSTALL_DATADIR=\"$(pkgdatadir)\" -DINSTALL_LOCALEDIR=\"$(localedir)\" -DFONT_FILE=\"$(fontfile)\" -DPACKAGE_VERSION=\"$(PACKAGE_VERSION)\"
if WIN32
--- wormux-0.7.9/src/Makefile.in~ 2007-01-28 16:06:57.000000000 +0200
+++ wormux-0.7.9/src/Makefile.in 2007-03-24 13:03:28.000000000 +0200
@@ -518,7 +518,7 @@
weapon/submachine_gun.h weapon/polecat.cpp weapon/polecat.h \
weapon/blowtorch.cpp weapon/blowtorch.h weapon/syringe.cpp \
weapon/syringe.h $(am__append_1)
-AM_CXXFLAGS = -DINSTALL_DATADIR=\"$(pkgdatadir)\" -DINSTALL_LOCALEDIR=\"$(localedir)\" -DFONT_FILE=\"$(fontfile)\" -DPACKAGE_VERSION=\"$(PACKAGE_VERSION)\" -Werror
+AM_CXXFLAGS = -DINSTALL_DATADIR=\"$(pkgdatadir)\" -DINSTALL_LOCALEDIR=\"$(localedir)\" -DFONT_FILE=\"$(fontfile)\" -DPACKAGE_VERSION=\"$(PACKAGE_VERSION)\"
all: config.h
$(MAKE) $(AM_MAKEFLAGS) all-recursive

123
wormux.spec Normal file
View file

@ -0,0 +1,123 @@
Name: wormux
Version: 0.7.9
Release: 4%{?dist}
Summary: 2D convivial mass murder game
Group: Amusements/Games
License: GPLv2+
URL: http://www.wormux.org
Source0: http://download.gna.org/wormux/%{name}-%{version}.tar.gz
Patch0: wormux-0.7.9-cflags.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: SDL_image-devel SDL_gfx-devel SDL_mixer-devel
BuildRequires: SDL_ttf-devel SDL_net-devel curl-devel
BuildRequires: gettext libxml++-devel desktop-file-utils
Requires: wormux-data
%description
Battle your favorite free software mascots in the Wormux arena. With big
sticks of dynamite, grenades, baseball bats, and bazookas you can exterminate
your opponent in a 2D cartoon style scenery. The goal of the game is to
destroy all of your opponents' mascots.
%package data
Summary: Data files for wormux
Group: Amusements/Games
Requires: %{name} = %{version}
%description data
Data files for wormux
%prep
%setup -q
%patch0 -p1
%build
%configure --disable-nls --disable-dependency-tracking
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
sed -i -e 's/Icon=.*/Icon=wormux.png/' \
$RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
desktop-file-install --vendor fedora \
--dir $RPM_BUILD_ROOT/%{_datadir}/applications/ \
--remove-category=Application \
--remove-category=ArcadeGame \
--add-category=StrategyGame \
--delete-original \
$RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
install -d $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/32x32/apps/
install -p -m 644 data/%{name}_32x32.png $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
%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 COPYING ChangeLog
%{_bindir}/%{name}
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
%{_mandir}/man6/*.6.gz
%files data
%defattr(-,root,root,-)
%{_datadir}/%{name}
%changelog
- License tag clarification
* Wed Mar 28 2007 Wart <wart@kobold.org> 0.7.9-3
- Enable use of $RPM_OPT_FLAGS
* Fri Mar 9 2007 Wart <wart@kobold.org> 0.7.9-2
- Clean up desktop file categories
- Use upstream's desktop file and icon
* Sat Feb 17 2007 Wart <wart@kobold.org> 0.7.9-1
- Update to 0.7.9
* Fri Sep 1 2006 Wart <wart@kobold.org> 0.7.4-1
- Update to 0.7.4
* Fri Aug 04 2006 Wart <wart@kobold.org> 0.7.2-6
- Add 'ArcadeGame' category to .desktop file
* Fri Jun 09 2006 Wart <wart@kobold.org> 0.7.2-5
- Improve grammar in description
* Fri Jun 09 2006 Wart <wart@kobold.org> 0.7.2-4
- Fix broken path to desktop icon
- Fix typo in description
* Fri Jun 09 2006 Wart <wart@kobold.org> 0.7.2-3
- Use RPM_BUILD_ROOT consistently
- Put the wormux icon in a size-specific directory
- Removed INSTALL from the documentation files
* Fri Jun 09 2006 Wart <wart@kobold.org> 0.7.2-2
- Expanded the description
- Separated game data into a subpackage
* Fri Jun 02 2006 Wart <wart@kobold.org> 0.7.2-1
- Initial Fedora Extras package