commit 8233e268beece34d40c596e08bbf4cb6b6c8d7c37f22139a16674952de6c91e3 Author: Michael Vetter Date: Tue Aug 18 12:52:49 2020 +0000 Accepting request 826315 from home:dheidler New Package: EmptyEpsilon - see http://daid.github.io/EmptyEpsilon/ for details OBS-URL: https://build.opensuse.org/request/show/826315 OBS-URL: https://build.opensuse.org/package/show/games/emptyepsilon?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/EmptyEpsilon-2020.08.07.tar.gz b/EmptyEpsilon-2020.08.07.tar.gz new file mode 100644 index 0000000..b3a6013 --- /dev/null +++ b/EmptyEpsilon-2020.08.07.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0964edf59b12b3b4a2c3c0e2ab659b654b49b3f2d7d5c9aad5dfcf4d51c2082b +size 270858781 diff --git a/SeriousProton-2020.08.07.tar.gz b/SeriousProton-2020.08.07.tar.gz new file mode 100644 index 0000000..d0a8b36 --- /dev/null +++ b/SeriousProton-2020.08.07.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9247e61c6c7f01bcdd5b7588d25db6647623038178b7812fb241d0d73c9352d7 +size 1172263 diff --git a/download.sh b/download.sh new file mode 100644 index 0000000..d0293a6 --- /dev/null +++ b/download.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +version="$1" + +wget https://github.com/daid/SeriousProton/archive/EE-${version}.tar.gz -O SeriousProton-${version}.tar.gz +wget https://github.com/daid/EmptyEpsilon/archive/EE-${version}.tar.gz -O EmptyEpsilon-${version}.tar.gz diff --git a/emptyepsilon.changes b/emptyepsilon.changes new file mode 100644 index 0000000..e3653c9 --- /dev/null +++ b/emptyepsilon.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Thu Aug 13 15:50:43 UTC 2020 - Dominik Heidler + +- Initial checkin diff --git a/emptyepsilon.spec b/emptyepsilon.spec new file mode 100644 index 0000000..376027a --- /dev/null +++ b/emptyepsilon.spec @@ -0,0 +1,66 @@ +# +# spec file for package emptyepsilon +# +# Copyright (c) 2020 SUSE +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +Name: emptyepsilon +Version: 2020.08.07 +Release: 0 +Url: http://daid.github.io/EmptyEpsilon/ +Summary: Open source spaceship bridge simulator +License: GPL-2.0 +Group: Games +Source: EmptyEpsilon-%{version}.tar.gz +Source1: SeriousProton-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: cmake gcc gcc-c++ xorg-x11 xorg-x11-devel +BuildRequires: sfml2-devel +BuildArch: x86_64 + +%description +EmptyEpsilon places you in the roles of a spaceship's bridge officers, like those seen in Star Trek. While you can play EmptyEpsilon alone or with friends, the best experience involves 6 players working together on each ship. +Each officer fills a unique role: Captain, Helms, Weapons, Relay, Science, and Engineering. Except for the Captain, each officer operates part of the ship through a specialized screen. The Captain relies on their trusty crew to report information and follow orders. + +%prep +cd $RPM_SOURCE_DIR +tar xf SeriousProton-%{version}.tar.gz +tar xf EmptyEpsilon-%{version}.tar.gz +sed 's|new Engine();|chdir(RESOURCE_BASE_DIR); new Engine();|' -i EmptyEpsilon-EE-%{version}/src/main.cpp + +%build +cmake -DSERIOUS_PROTON_DIR="$RPM_SOURCE_DIR/SeriousProton-EE-%{version}" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DCPACK_PACKAGE_VERSION_MAJOR="$(echo %{version} | cut -d. -f1)" \ + -DCPACK_PACKAGE_VERSION_MINOR="$(echo %{version} | cut -d. -f2)" \ + -DCPACK_PACKAGE_VERSION_PATCH="$(echo %{version} | cut -d. -f3)" \ + -DOpenGL_GL_PREFERENCE=GLVND \ + $RPM_SOURCE_DIR/EmptyEpsilon-EE-%{version} +make -j 8 + +%install +make install DESTDIR=$RPM_BUILD_ROOT +install -Dvm 644 $RPM_SOURCE_DIR/EmptyEpsilon-EE-%{version}/README.md -t "$RPM_BUILD_ROOT/usr/share/doc/emptyepsilon" +mv -v "$RPM_BUILD_ROOT/usr/script_reference.html" "$RPM_BUILD_ROOT/usr/share/doc/emptyepsilon" + +%files +%defattr(-,root,root,-) +# You may have to add additional files here (documentation and binaries mostly) +/usr/bin/EmptyEpsilon +/usr/share/doc/emptyepsilon/ +/usr/share/emptyepsilon/ + +%changelog