2020-08-18 14:52:49 +02:00
|
|
|
#
|
|
|
|
# spec file for package emptyepsilon
|
|
|
|
#
|
2021-08-20 15:11:05 +02:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2020-08-18 14:52:49 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2020-08-18 15:47:10 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2020-08-18 14:52:49 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: emptyepsilon
|
2021-08-20 15:11:05 +02:00
|
|
|
Version: 2021.06.23
|
2020-08-18 14:52:49 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Open source spaceship bridge simulator
|
2020-08-18 15:47:10 +02:00
|
|
|
License: GPL-2.0-only
|
|
|
|
Group: Amusements/Games/Other
|
|
|
|
URL: https://daid.github.io/EmptyEpsilon/
|
2020-08-18 14:52:49 +02:00
|
|
|
Source: EmptyEpsilon-%{version}.tar.gz
|
|
|
|
Source1: SeriousProton-%{version}.tar.gz
|
2021-08-20 15:11:05 +02:00
|
|
|
Source2: glm.zip
|
|
|
|
Source3: download.sh
|
|
|
|
BuildRequires: bsdtar
|
2020-08-18 15:47:10 +02:00
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc-c++
|
2020-08-18 14:52:49 +02:00
|
|
|
BuildRequires: sfml2-devel
|
2020-08-18 15:47:10 +02:00
|
|
|
BuildRequires: xorg-x11
|
|
|
|
BuildRequires: xorg-x11-devel
|
2021-08-20 15:28:30 +02:00
|
|
|
%if 0%{?sle_version:1}
|
|
|
|
# if sle_version is defined, this is not tumbleweed
|
|
|
|
BuildRequires: gcc10 gcc10-c++
|
|
|
|
%endif
|
2020-08-18 14:52:49 +02:00
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
|
%build
|
2021-08-20 15:11:05 +02:00
|
|
|
mkdir externals
|
|
|
|
bsdtar xvf $RPM_SOURCE_DIR/glm.zip -C externals
|
2021-08-20 15:28:30 +02:00
|
|
|
%if 0%{?sle_version:1}
|
|
|
|
# if sle_version is defined, this is not tumbleweed
|
|
|
|
export CC=gcc-10
|
|
|
|
export CXX=g++-10
|
|
|
|
%endif
|
2020-08-18 14:52:49 +02:00
|
|
|
cmake -DSERIOUS_PROTON_DIR="$RPM_SOURCE_DIR/SeriousProton-EE-%{version}" \
|
2020-08-18 15:47:10 +02:00
|
|
|
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
2020-08-18 14:52:49 +02:00
|
|
|
-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}
|
2020-08-18 15:47:10 +02:00
|
|
|
%make_build -j 8
|
2020-08-18 14:52:49 +02:00
|
|
|
|
|
|
|
%install
|
2020-08-18 15:47:10 +02:00
|
|
|
%make_install
|
2021-08-20 15:11:05 +02:00
|
|
|
install -Dvm 644 $RPM_SOURCE_DIR/EmptyEpsilon-EE-%{version}/README.md -t "%{buildroot}%{_datadir}/doc/EmptyEpsilon"
|
2020-08-18 14:52:49 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
# You may have to add additional files here (documentation and binaries mostly)
|
2020-08-18 15:47:10 +02:00
|
|
|
%{_bindir}/EmptyEpsilon
|
2021-08-20 15:11:05 +02:00
|
|
|
%{_datadir}/doc/EmptyEpsilon/
|
2020-08-18 15:47:10 +02:00
|
|
|
%{_datadir}/emptyepsilon/
|
2020-08-18 14:52:49 +02:00
|
|
|
|
|
|
|
%changelog
|