packages: frogatto/frogatto.spec (NEW) - added to pld

lisu lisu at pld-linux.org
Wed Dec 28 15:51:10 CET 2011


Author: lisu                         Date: Wed Dec 28 14:51:10 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- added to pld

---- Files affected:
packages/frogatto:
   frogatto.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/frogatto/frogatto.spec
diff -u /dev/null packages/frogatto/frogatto.spec:1.1
--- /dev/null	Wed Dec 28 15:51:10 2011
+++ packages/frogatto/frogatto.spec	Wed Dec 28 15:51:05 2011
@@ -0,0 +1,81 @@
+# $Revision$, $Date$
+Summary:	An open-source “platformer” game
+Name:		frogatto
+Version:	1.1.1
+Release:	1
+License:	GPL v3+
+Group:		X11/Applications/Games
+Source0:	http://www.frogatto.com/files/%{name}-%{version}.tar.bz2
+# Source0-md5:	bf5a2ee4c3254a424766895ff250758b
+Patch0:		%{name}-makefile.patch
+Patch1:		%{name}-assertion.patch
+URL:		http://www.frogatto.com/
+BuildRequires:	OpenGL-GLU-devel
+BuildRequires:	OpenGL-devel
+BuildRequires:	SDL-devel >= 1.2.7
+BuildRequires:	SDL_image-devel >= 1.2.0
+BuildRequires:	SDL_mixer-devel >= 1.2.0
+BuildRequires:	SDL_ttf-devel >= 2.0.8
+BuildRequires:	boost-devel >= 1.35.0
+BuildRequires:	ccache
+BuildRequires:	glew-devel
+BuildRequires:	sed >= 4.0
+BuildRequires:	zlib-devel
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Frogatto is an open-source “platformer” game, which means you’re given
+a cross-section view into the world, and you help a small green fellow
+named Frogatto walk and jump between solid footholds whilst you lead
+him through his story. There’s a long history to the genre, so just by
+being in it we inevitably have a lot in common with other games,
+however, we’re not trying to clone any specific game.
+
+%prep
+%setup -q
+%patch0 -p1
+%patch1 -p1
+
+# fix linking with our boost libs
+%{__sed} -i 's,-mt,,g' Makefile
+
+# set proper paths
+%{__sed} -i 's,data/,%{_datadir}/frogatto/data/,g' `find -name "*.[ch]pp" -o -name "*.po*" -o -name "*.cfg"`
+%{__sed} -i 's,./images/,%{_datadir}/frogatto/images/,g' `find -name "*.cpp"`
+%{__sed} -i 's,./locale/,%{_datadir}/locale/,g' src/i18n.cpp
+
+%build
+%{__make} \
+	CXX="%{__cxx}" \
+	OPT="%{rpmcxxflags}" \
+	LDFLAGS="%{rpmldflags}"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/frogatto,%{_datadir}/locale}
+
+cp -a game $RPM_BUILD_ROOT%{_bindir}/frogatto
+cp -a data $RPM_BUILD_ROOT%{_datadir}/frogatto
+cp -a images $RPM_BUILD_ROOT%{_datadir}/frogatto
+cp -a locale/* $RPM_BUILD_ROOT%{_datadir}/locale
+
+%find_lang %{name} --all-name
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%doc CHANGELOG
+%attr(755,root,root) %{_bindir}/frogatto
+%{_datadir}/frogatto
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2011/12/28 14:51:05  lisu
+- added to pld
+
================================================================


More information about the pld-cvs-commit mailing list