# # 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