Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
home:Kieltux:games
descent3
descent3.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File descent3.spec of Package descent3
# # spec file for package descent3 # # Copyright (c) 2024 SUSE LLC # # 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 https://bugs.opensuse.org/ # %define commit 616f921e97b0fb4745a2d36de149c737bf720214 Name: descent3 Version: 1.50+git.20240920 Release: 0 Summary: Tunnel–terrain-hybrid ship-based shooter fighting robots License: GPL-3.0-or-later Group: Amusements/Games/3D/Shoot URL: https://github.com/DescentDevelopers/Descent3 Source: %{name}-%{version}.tar.xz BuildRequires: cmake BuildRequires: pkgconfig BuildRequires: pkgconfig(glm) BuildRequires: pkgconfig(sdl2) BuildRequires: pkgconfig(zlib) %if 0%{?sle_version} >= 150500 && 0%{?sle_version} < 160000 && 0%{?is_opensuse} BuildRequires: gcc13 BuildRequires: gcc13-c++ %else BuildRequires: c++_compiler %endif Provides: bundled(stb_image_write) = 1.16 Provides: bundled(plog) Provides: bundled(libacm) %description The game takes place in a science fiction setting of the Solar System where the player is a mercenary and must stop robots infected by an alien virus. The player controls a flying ship in zero gravity with a six degrees of freedom movement scheme. The game features both indoor and outdoor environments, made possible with the use of a hybrid engine that combines the capabilities of a portal rendering engine with those of a flight simulator-like terrain engine. There is a single-player campaign mode and an an online multiplayer mode where numerous players can compete against each other in different game types. %prep %autosetup -p1 -n %{name}-%{version} %build %if 0%{?sle_version} >= 150500 && 0%{?sle_version} < 160000 && 0%{?is_opensuse} export CC="gcc-13" export CXX="g++-13" %endif %cmake -DCMAKE_INSTALL_BINDIR="%_libexecdir/%name" \ -DCMAKE_INSTALL_DATADIR="%_datadir/%name" \ -DCMAKE_INSTALL_DOCDIR:PATH="share/doc/packages/%name" \ -DFORCE_PORTABLE_INSTALL=OFF \ -DCMAKE_C_FLAGS_RELWITHDEBINFO="%optflags" \ -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="%optflags" %cmake_build %install %cmake_install b="%buildroot" # packaged separately rm -fv "$b/%_defaultdocdir/%name/LICENSE" mkdir -p "$b/%_bindir" cat >"$b/%_bindir/descent3" <<-EOF #!/bin/sh -e progdir="%_libexecdir/descent3" datadir="%_datadir/descent3" userdir="\$HOME/.config/descent3" mkdir -p "\$userdir/missions" cd "\$userdir" if [ ! -e d3-linux.hog ]; then ln -s "\$datadir/d3-linux.hog" . fi if [ ! -e online ]; then ln -s "\$datadir/online" . fi if [ ! -e d3.hog ]; then echo "ERROR: Copy d3.hog to \$userdir, then relaunch." echo "INFO: You may find this file on the D3 Linux ISO." exit 1 fi if [ ! -e extra.hog ] || [ ! -e extra13.hog ]; then echo "NOTE: Copy extra.hog and extra13.hog to \$userdir, then relaunch." echo "INFO: You may find these files on the D3 Linux ISO in data.tar.gz." echo "INFO: tar -C \$userdir -xf /path/to/data.tar.gz extra.hog extra13.hog" exit 1 fi if [ ! -e missions/d3.mn3 ]; then echo "NOTE: Descent3 main mission \"Retribution\" is absent. The engine will launch but is useless." echo "NOTE: Copy d3.mn3, d3_2.mn3, d3voice1.hog, d3voice2.hog to \$userdir/missions, then relaunch." echo "INFO: You may find these files on the D3 Linux ISO in the missions/ directory." fi if [ ! -e missions/training.mn3 ]; then echo "NOTE: Descent3 training mission absent." echo "INFO: You may find it on the D3 Linux ISO in data.tar.gz." echo "INFO: tar -C \$userdir -xf /path/to/data.tar.gz missions/" fi exec %_libexecdir/%name/Descent3 "\$@" EOF chmod a+x "%buildroot/%_bindir/descent3" %files %license LICENSE %_bindir/descent3 %_datadir/descent3/ %_defaultdocdir/%name/ %_libexecdir/%name/ # these are .so-like files %_libdir/netgames/ %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor