From 7913a85287fb1858d508229f195435b0054d7eaf Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Thu, 24 Sep 2009 22:23:27 -0400 Subject: oolite*.spec: oolite spec files, updated for flattened layout. --- etoile/oolite.spec | 82 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 etoile/oolite.spec (limited to 'etoile/oolite.spec') diff --git a/etoile/oolite.spec b/etoile/oolite.spec new file mode 100644 index 0000000..8b7ecdf --- /dev/null +++ b/etoile/oolite.spec @@ -0,0 +1,82 @@ +Name: oolite +Version: 1.65 +Release: 2%{?dist} +Summary: A space sim game, inspired by Elite + +Group: Amusements/Games +# dual-licensed with CC-BY-NC-SA which is not Fedora-approved +# see forum thread for license correction, version included in +# source tarball is incorrect +License: GPLv2+ +URL: http://oolite.org/ +Source0: http://download.berlios.de/oolite-linux/oolite-%{version}-src.tar.gz +#Source1: http://download.berlios.de/oolite-linux/oolite-%{version}-data.tar.gz +Patch0: oolite-1.65-src-sharedobj.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: gnustep-base-devel desktop-file-utils +BuildRequires: mesa-libGLU-devel SDL_image-devel SDL_mixer-devel +Requires: oolite-data = %{version} + +%description +Oolite is a space sim game, inspired by Elite, powered by Objective-C +and OpenGL, and designed as a small game that is easy for users to +pick up, modify and expand upon. Almost every aspect of the game can +be changed by using simple, free graphics packages and text editors. + + +%prep +%setup -q -n %{name}-%{version}-src +#setup -q -b 1 -n %{name}-%{version}-src +%patch0 -p1 -b .sharedobj +# stub Resources directory; real one is in oolite-data +mkdir Resources +# Fix desktop file +sed -i FreeDesktop/oolite.desktop \ + -e 's|Exec=oolite|Exec=openapp oolite|' \ + -e 's|oolite-icon.png|oolite-icon|' \ + -e 's|Terminal=true|Terminal=false|' + + +%build +. %{_libdir}/GNUstep/Makefiles/GNUstep.sh +# Not parallel-buildable +make -e debug=no CP="cp -p" BINARY="-r obj/`uname -m`/linux-gnu/gnu-gnu-gnu/oolite" +BINDIR=oolite.app/`uname -m`/linux-gnu/gnu-gnu-gnu +mkdir -p $BINDIR +mv oolite.app/oolite $BINDIR/ + + +%install +rm -rf $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT%{_libdir}/GNUstep/Applications +mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps +cp -pr oolite.app $RPM_BUILD_ROOT%{_libdir}/GNUstep/Applications/ +cp -p FreeDesktop/oolite-icon.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/ +desktop-file-install \ + --dir=$RPM_BUILD_ROOT%{_datadir}/applications \ + --remove-category=Application \ + --add-category=Simulation \ + FreeDesktop/oolite.desktop + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc README.txt Doc/*.TXT +%{_libdir}/GNUstep/Applications/oolite.app +%{_datadir}/applications/oolite.desktop +%{_datadir}/pixmaps/oolite-icon.png + + + +%changelog +* Thu Sep 24 2009 Michel Salim - 1.65-2 +- Adjust file locations to use flattened layout + +* Mon Aug 11 2008 Michel Salim - 1.65-1 +- Initial package + -- cgit