rpms/monsterz/devel monsterz-0.7.0-userpmopts.patch, NONE, 1.1 monsterz.desktop, NONE, 1.1 monsterz.png, NONE, 1.1 monsterz.score, NONE, 1.1 monsterz.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Ian Chapman (oddsocks)
fedora-extras-commits at redhat.com
Wed Jul 26 21:31:02 UTC 2006
Author: oddsocks
Update of /cvs/extras/rpms/monsterz/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv8238/devel
Modified Files:
.cvsignore sources
Added Files:
monsterz-0.7.0-userpmopts.patch monsterz.desktop monsterz.png
monsterz.score monsterz.spec
Log Message:
auto-import monsterz-0.7.0-6 on branch devel from monsterz-0.7.0-6.src.rpm
monsterz-0.7.0-userpmopts.patch:
--- NEW FILE monsterz-0.7.0-userpmopts.patch ---
--- monsterz-0.7.0/Makefile.orig 2006-05-30 00:43:59.000000000 +0100
+++ monsterz-0.7.0/Makefile 2006-05-30 00:44:24.000000000 +0100
@@ -6,6 +6,7 @@
scoredir = /var/games
scorefile = $(scoredir)/monsterz
+CFLAGS=
VERSION = 0.7.0
DIRECTORY = monsterz-$(VERSION)
@@ -22,7 +23,7 @@
all: monsterz
monsterz: monsterz.c
- $(CC) -Wall monsterz.c -DDATADIR=\"$(pkgdatadir)\" -DSCOREFILE=\"$(scorefile)\" -o monsterz
+ $(CC) ${CFLAGS} -Wall monsterz.c -DDATADIR=\"$(pkgdatadir)\" -DSCOREFILE=\"$(scorefile)\" -o monsterz
bitmap: $(BITMAP)
--- NEW FILE monsterz.desktop ---
[Desktop Entry]
Encoding=UTF-8
Name=Monsterz
GenericName=Monsterz Puzzle Game
Comment=Puzzle game, similar to Bejeweled or Zookeeper
Exec=monsterz
Icon=monsterz.png
Terminal=false
Type=Application
Categories=Application;Game;StrategyGame;
--- NEW FILE monsterz.score ---
CLASSIC:Tux:1000:1
CLASSIC:Tux:900:1
CLASSIC:Tux:800:1
CLASSIC:Tux:700:1
CLASSIC:Tux:600:1
CLASSIC:Tux:500:1
CLASSIC:Tux:400:1
CLASSIC:Tux:300:1
CLASSIC:Tux:200:1
CLASSIC:Tux:100:1
--- NEW FILE monsterz.spec ---
Name: monsterz
Version: 0.7.0
Release: 6%{?dist}
Summary: Puzzle game, similar to Bejeweled or Zookeeper
Group: Amusements/Games
License: WTFPL
URL: http://sam.zoy.org/monsterz/
Source0: http://sam.zoy.org/monsterz/%{name}-%{version}.tar.gz
Source1: monsterz.png
Source2: monsterz.desktop
Source3: monsterz.score
Patch0: monsterz-0.7.0-userpmopts.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: desktop-file-utils
Requires: pygame
Requires: monsterz-data
%description
Monsterz is a little arcade puzzle game, similar to the famous Bejeweled or
Zookeeper. The goal of the game is to create rows of similar monsters, either
horizontally or vertically. The only allowed move is the swap of two adjacent
monsters, on the condition that it creates a row of three or more. When
alignments are cleared, pieces fall from the top of the screen to fill the
board again. Chain reactions earn you even more points.
%package data
Summary: Data files for the game monsterz
Group: Amusements/Games
%description data
Data files for the game monsterz
%prep
%setup -q
%patch0 -p1
%build
make %{?_smp_mflags} prefix=%{_usr} datadir=%{_datadir} pkgdatadir=%{_datadir}/%{name} CFLAGS="$RPM_OPT_FLAGS"
%install
rm -rf %{buildroot}
#Bypass make install as it requires root priviledges and the SRPM
#may not necessarily be built as root
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/64x64/apps
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_datadir}/%{name}/graphics
mkdir -p %{buildroot}%{_datadir}/%{name}/sound
mkdir -p %{buildroot}%{_var}/games
install -pm0755 monsterz %{buildroot}%{_bindir}
install -pm0755 monsterz.py %{buildroot}%{_datadir}/%{name}
cp -a graphics/*.png %{buildroot}%{_datadir}/%{name}/graphics
cp -a sound/* %{buildroot}%{_datadir}/%{name}/sound
install -pm0664 %{SOURCE3} %{buildroot}%{_var}/games/monsterz
desktop-file-install --vendor fedora \
--add-category X-Fedora \
--dir %{buildroot}%{_datadir}/applications \
%{SOURCE2}
install -pm0644 %{SOURCE1} %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
%clean
rm -rf %{buildroot}
%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,-)
%{_datadir}/applications/fedora-%{name}.desktop
%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
%attr(2755,root,games) %{_bindir}/%{name}
%attr(-,root,games) %config(noreplace) %{_var}/games/%{name}
%doc AUTHORS COPYING README TODO
%files data
%defattr(-,root,root,-)
%{_datadir}/%{name}
%changelog
* Tue Jul 25 2006 Ian Chapman <packages at amiga-hardware.com> 0.7.0-6%{?dist}
- Split data into a separate package.
* Sun Jul 23 2006 Ian Chapman <packages at amiga-hardware.com> 0.7.0-5%{?dist}
- Moved .desktop external to spec
- Moved score file external to spec
- License changed to WTFPL
- Use %%{_datadir}/%%{name} not %%{_datadir}/games/%%{name}
* Sun Jul 09 2006 Ian Chapman <packages at amiga-hardware.com> 0.7.0-4%{?dist}
- Moved icon installation to make it freedesktop compliant
- Added %%post and %%postun sections to update icon cache at installation
- Move hiscore table and .desktop generation to %%build
* Sat Jun 24 2006 Ian Chapman <packages at amiga-hardware.com> 0.7.0-3%{?dist}
- Cosmetic fixes for the Dribble repository
* Mon May 29 2006 Ian Chapman <packages at amiga-hardware.com> 0.7.0-2%{?dist}
- Replace %%{__rm} in clean section with rm
- Added patch to compile using rpmoptflags
* Mon May 22 2006 Ian Chapman <packages at amiga-hardware.com> 0.7.0-1.iss
- Initial Release
Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/monsterz/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 26 Jul 2006 21:29:46 -0000 1.1
+++ .cvsignore 26 Jul 2006 21:31:02 -0000 1.2
@@ -0,0 +1 @@
+monsterz-0.7.0.tar.gz
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/monsterz/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 26 Jul 2006 21:29:46 -0000 1.1
+++ sources 26 Jul 2006 21:31:02 -0000 1.2
@@ -0,0 +1 @@
+323d04d4a2a2905df91eab4ff17e537d monsterz-0.7.0.tar.gz
More information about the fedora-extras-commits
mailing list