- Version 2021.06.23

OBS-URL: https://build.opensuse.org/package/show/games/emptyepsilon?expand=0&rev=3
This commit is contained in:
Dominik Heidler 2021-08-20 13:11:05 +00:00 committed by Git OBS Bridge
parent 7021bf21dd
commit 8da62e19ce
8 changed files with 33 additions and 13 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0964edf59b12b3b4a2c3c0e2ab659b654b49b3f2d7d5c9aad5dfcf4d51c2082b
size 270858781

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:878f36330a95a76039671a980a2fd680e7ddbdc5e22ff6ca046010b03d3efd01
size 285211647

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9247e61c6c7f01bcdd5b7588d25db6647623038178b7812fb241d0d73c9352d7
size 1172263

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4c79b358ad310c773dd0db265393fba829df10a6f284240acbb383288d4f33d5
size 1181117

View File

@ -1,6 +1,15 @@
#!/bin/bash #!/bin/bash
version="$1" #version="$1"
version=$(grep Version: emptyepsilon.spec | awk '{print $NF}')
wget https://github.com/daid/SeriousProton/archive/EE-${version}.tar.gz -O SeriousProton-${version}.tar.gz 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 wget https://github.com/daid/EmptyEpsilon/archive/EE-${version}.tar.gz -O EmptyEpsilon-${version}.tar.gz
tmp=$(mktemp -d)
tar xzvf EmptyEpsilon-${version}.tar.gz -C "$tmp" EmptyEpsilon-EE-${version}/CMakeLists.txt
glm_url=$(grep -A1 glm.zip "${tmp}/EmptyEpsilon-EE-${version}/CMakeLists.txt" | grep "https://" | awk -F '"' '{print $2}')
wget "$glm_url" -O glm.zip
rm -r "$tmp"

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Aug 20 13:03:24 UTC 2021 - Dominik Heidler <dheidler@suse.de>
- Version 2021.06.23
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Aug 13 15:50:43 UTC 2020 - Dominik Heidler <dheidler@suse.de> Thu Aug 13 15:50:43 UTC 2020 - Dominik Heidler <dheidler@suse.de>

View File

@ -1,7 +1,7 @@
# #
# spec file for package emptyepsilon # spec file for package emptyepsilon
# #
# Copyright (c) 2020 SUSE LLC # Copyright (c) 2021 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -17,7 +17,7 @@
Name: emptyepsilon Name: emptyepsilon
Version: 2020.08.07 Version: 2021.06.23
Release: 0 Release: 0
Summary: Open source spaceship bridge simulator Summary: Open source spaceship bridge simulator
License: GPL-2.0-only License: GPL-2.0-only
@ -25,6 +25,9 @@ Group: Amusements/Games/Other
URL: https://daid.github.io/EmptyEpsilon/ URL: https://daid.github.io/EmptyEpsilon/
Source: EmptyEpsilon-%{version}.tar.gz Source: EmptyEpsilon-%{version}.tar.gz
Source1: SeriousProton-%{version}.tar.gz Source1: SeriousProton-%{version}.tar.gz
Source2: glm.zip
Source3: download.sh
BuildRequires: bsdtar
BuildRequires: cmake BuildRequires: cmake
BuildRequires: gcc BuildRequires: gcc
BuildRequires: gcc-c++ BuildRequires: gcc-c++
@ -40,9 +43,10 @@ Each officer fills a unique role: Captain, Helms, Weapons, Relay, Science, and E
cd $RPM_SOURCE_DIR cd $RPM_SOURCE_DIR
tar xf SeriousProton-%{version}.tar.gz tar xf SeriousProton-%{version}.tar.gz
tar xf EmptyEpsilon-%{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 %build
mkdir externals
bsdtar xvf $RPM_SOURCE_DIR/glm.zip -C externals
cmake -DSERIOUS_PROTON_DIR="$RPM_SOURCE_DIR/SeriousProton-EE-%{version}" \ cmake -DSERIOUS_PROTON_DIR="$RPM_SOURCE_DIR/SeriousProton-EE-%{version}" \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DCMAKE_BUILD_TYPE=Release \ -DCMAKE_BUILD_TYPE=Release \
@ -55,13 +59,12 @@ cmake -DSERIOUS_PROTON_DIR="$RPM_SOURCE_DIR/SeriousProton-EE-%{version}" \
%install %install
%make_install %make_install
install -Dvm 644 $RPM_SOURCE_DIR/EmptyEpsilon-EE-%{version}/README.md -t "%{buildroot}%{_datadir}/doc/emptyepsilon" install -Dvm 644 $RPM_SOURCE_DIR/EmptyEpsilon-EE-%{version}/README.md -t "%{buildroot}%{_datadir}/doc/EmptyEpsilon"
mv -v "%{buildroot}%{_prefix}/script_reference.html" "%{buildroot}%{_datadir}/doc/emptyepsilon"
%files %files
# You may have to add additional files here (documentation and binaries mostly) # You may have to add additional files here (documentation and binaries mostly)
%{_bindir}/EmptyEpsilon %{_bindir}/EmptyEpsilon
%{_datadir}/doc/emptyepsilon/ %{_datadir}/doc/EmptyEpsilon/
%{_datadir}/emptyepsilon/ %{_datadir}/emptyepsilon/
%changelog %changelog

3
glm.zip Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:37e2a3d62ea3322e43593c34bae29f57e3e251ea89f4067506c94043769ade4c
size 5670692