summaryrefslogtreecommitdiffstats
path: root/etoile
diff options
context:
space:
mode:
authorMichel Alexandre Salim <salimma@fedoraproject.org>2009-09-24 22:23:27 -0400
committerMichel Alexandre Salim <salimma@fedoraproject.org>2009-09-24 22:23:27 -0400
commit7913a85287fb1858d508229f195435b0054d7eaf (patch)
tree13162561cae6d4643515c522e904377eb21b7486 /etoile
parentde0ecea8408b614fe9249e74b96810f64d162792 (diff)
downloadspecs-7913a85287fb1858d508229f195435b0054d7eaf.tar.gz
specs-7913a85287fb1858d508229f195435b0054d7eaf.tar.xz
specs-7913a85287fb1858d508229f195435b0054d7eaf.zip
oolite*.spec: oolite spec files, updated for flattened layout.
Diffstat (limited to 'etoile')
-rw-r--r--etoile/oolite-data.spec55
-rw-r--r--etoile/oolite.spec82
2 files changed, 137 insertions, 0 deletions
diff --git a/etoile/oolite-data.spec b/etoile/oolite-data.spec
new file mode 100644
index 0000000..36fe516
--- /dev/null
+++ b/etoile/oolite-data.spec
@@ -0,0 +1,55 @@
+%global debug_package %{nil}
+
+Name: oolite-data
+Version: 1.65
+Release: 3%{?dist}
+Summary: Data files for Oolite
+
+Group: Amusements/Games
+License: GPLv2+
+URL: http://oolite.org/
+Source0: http://download.berlios.de/oolite-linux/oolite-%{version}-data.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+#BuildRequires:
+Requires: oolite = %{version}
+
+%description
+Data files for Oolite
+
+
+%prep
+%setup -q -n oolite-%{version}-src
+mv Resources/README.TXT .
+
+
+%build
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+mkdir -p $RPM_BUILD_ROOT%{_libdir}/GNUstep/Applications/oolite.app/Contents
+cp -pr Resources $RPM_BUILD_ROOT%{_libdir}/GNUstep/Applications/oolite.app/Contents/
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root,-)
+%doc README.TXT
+%{_libdir}/GNUstep/Applications/oolite.app/Contents/Resources/*
+
+
+
+%changelog
+* Thu Sep 24 2009 Michel Salim <salimma@fedoraproject.org> - 1.65-3
+- Package no longer noarch, since Fedora uses flattened layout
+
+* Thu Aug 14 2008 Michel Salim <salimma@fedoraproject.org> - 1.65-2
+- Package is now noarch
+
+* Mon Aug 11 2008 Michel Salim <salimma@fedoraproject.org> - 1.65-1
+- Initial package
+
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 <salimma@fedoraproject.org> - 1.65-2
+- Adjust file locations to use flattened layout
+
+* Mon Aug 11 2008 Michel Salim <salimma@fedoraproject.org> - 1.65-1
+- Initial package
+