# Copyright (C) 2026 Nicola Taibi %global rel 15 Name: spacegl Version: 2026.02.09 Release: %{rel}%{?dist} Summary: Space GL: A space exploration & combat game, Multi-User Client-Server Edition License: GPL-3.0-or-later URL: https://github.com/nicolataibi/spacegl Source0: https://github.com/nicolataibi/spacegl/archive/refs/tags/%{version}-%{rel}.tar.gz BuildRequires: gcc BuildRequires: make BuildRequires: freeglut-devel BuildRequires: mesa-libGLU-devel BuildRequires: mesa-libGL-devel BuildRequires: glew-devel BuildRequires: openssl-devel BuildRequires: desktop-file-utils Requires: freeglut Requires: mesa-libGLU Requires: mesa-libGL Requires: glew Requires: openssl Requires: %{name}-data = %{version}-%{release} %description Space GL is a high-performance 3D multi-user client-server game engine. It features real-time galaxy synchronization via shared memory (SHM), advanced cryptographic communication frequencies (AES, PQC, etc.), and a technical 3D visualizer based on OpenGL and FreeGLUT. %package data Summary: Data files for %{name} BuildArch: noarch # 2. Aggiungi questa riga mancante: Requires: %{name} = %{version}-%{release} %description data Data files (graphics, sounds, and images) for Space GL. %prep %setup -q -n %{name}-%{version}-%{rel} %build # Forza il ricalcolo dei flag di Fedora %set_build_flags # Compila forzando il rifacimento (evita il "Nothing to be done") %make_build clean %make_build %check # Ora il check passerà perché abbiamo sistemato il Makefile %make_build check %install mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_datadir}/%{name} mkdir -p %{buildroot}%{_datadir}/%{name}/readme_assets cp -p readme_assets/*.jpg %{buildroot}%{_datadir}/%{name}/readme_assets/ cp -p readme_assets/*.png %{buildroot}%{_datadir}/%{name}/readme_assets/ # Install binaries install -p -m 0755 spacegl_server %{buildroot}%{_bindir}/ install -p -m 0755 spacegl_client %{buildroot}%{_bindir}/ install -p -m 0755 spacegl_3dview %{buildroot}%{_bindir}/ install -p -m 0755 spacegl_viewer %{buildroot}%{_bindir}/ # Install helper scripts as user commands install -p -m 0755 run_server.sh %{buildroot}%{_bindir}/%{name}-server install -p -m 0755 run_client.sh %{buildroot}%{_bindir}/%{name}-client # Create and install desktop file mkdir -p %{buildroot}%{_datadir}/applications cat > %{buildroot}%{_datadir}/applications/%{name}.desktop < - 2026.02.09-%{rel} - Enemy players’ torpedoes have no effect on the ship’s shields; they only cause damage to the hull. - The lock must disengage if the object leaves the quadrant, is destroyed, or if the ship changes quadrant. - When the hull reaches 0%, all commands except xxx are disabled. - The “apr now” command is applicable to all objects present in the current quadrant. - Reorganization of galactic object IDs. - The ship is never destroyed but recovered. - Deletion of the captain and data from galaxy.dat. - Quadrant sensor: asteroids now display their composition. - Redefinition of the energy data type to 64-bit, set to 999,999,999,999. - When the client restarts, a full update of all status flags [UPD_FLAGS] is forced.