Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:16.0:FactoryCandidates
quakespasm
quakespasm.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File quakespasm.spec of Package quakespasm
# # spec file for package quakespasm # # Copyright (c) 2024 SUSE LLC # Copyright (c) 2017 Luke Jones <luke.nukem.jones@gmail.com> # # 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/ # Name: quakespasm Version: 0.96.3 Release: 0 Summary: A Quake Engine License: GPL-2.0-or-later Group: Amusements/Games/3D/Shoot URL: https://quakespasm.sourceforge.net/ Source: https://sourceforge.net/projects/quakespasm/files/Source/%{name}-%{version}.tar.gz Source99: %{name}.changes Source100: quakespasm.appdata.xml BuildRequires: pkgconfig BuildRequires: update-desktop-files BuildRequires: pkgconfig(SDL2_net) BuildRequires: pkgconfig(vorbis) %description QuakeSpasm is a Quake 1 engine based on the SDL2 port of FitzQuake. It includes 64-bit CPU support, a new sound driver, several networking fixes and a few graphical niceities, while also staying true to the original game. Game data must be placed in ~/.quakespasm/id1 . %prep %setup -q # Fix usage of __DATE__ and __TIME__ macros to prevent build in excess modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{SOURCE99}")" DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\"" TIME="\"$(date -d "${modified}" "+%%R")\"" sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g" Quake/host.c # Prepare for later installation mkdir html/ mv Quakespasm.txt README mv Quakespasm-Music.txt MUSIC mv LICENSE.txt LICENSE %build export CFLAGS='%{optflags} -DQUAKE_BASEDIR=\"%{_datadir}/quake\"' %make_build -C Quake\ DO_USERDIRS=1 \ USE_CODEC_MP3=0 \ USE_SDL2=1 %install install -D -p -m 755 Quake/quakespasm %{buildroot}%{_bindir}/quakespasm install -D -p -m 644 Misc/QuakeSpasm_512.png %{buildroot}%{_datadir}/pixmaps/quakespasm.png install -D -p -m 644 %{SOURCE100} %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml install -d -m 755 %{buildroot}%{_datadir}/quake/ %suse_update_desktop_file -c %{name} 'Quake' 'QuakeSpasm' %{name} %{name} Game ActionGame %files %license LICENSE %doc README MUSIC html/ %{_bindir}/%{name} %dir %{_datadir}/quake/ %{_datadir}/pixmaps/%{name}.png %{_datadir}/applications/%{name}.desktop %{_datadir}/appdata/%{name}.appdata.xml %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