Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:susnux:branches:games
odamex
odamex.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File odamex.spec of Package odamex
# # spec file for package odamex # # Copyright (c) 2023 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/ # Name: odamex Version: 10.4.0 Release: 0 Summary: Port for the classic first-person-shooter Doom License: GPL-2.0-only Group: Amusements/Games/Action/Shoot URL: https://odamex.net/ Source: %{name}-%{version}.tar.xz Source1: odamex.desktop Source2: odalaunch.desktop Source99: %{name}.changes Patch0: fix-build.patch BuildRequires: cmake BuildRequires: deutex BuildRequires: gcc-c++ BuildRequires: hicolor-icon-theme BuildRequires: pkgconfig BuildRequires: portmidi-devel BuildRequires: protobuf-devel BuildRequires: update-desktop-files BuildRequires: wxWidgets-devel > 3 BuildRequires: pkgconfig(SDL2_mixer) BuildRequires: pkgconfig(jsoncpp) BuildRequires: pkgconfig(libcurl) BuildRequires: pkgconfig(libpng16) BuildRequires: pkgconfig(miniupnpc) BuildRequires: pkgconfig(sdl2) BuildRequires: pkgconfig(zlib) Recommends: freedoom Recommends: timidity Provides: bundled(fltk) Provides: bundled(jsonpp) Provides: bundled(protobuf) Provides: bundled(textscreen) %description Odamex is a free and open source port for the classic first-person-shooter Doom. Odamex's goal is to emulate the feel of and retain many aspects of the original Doom executables while offering a broader expanse of security features, personal configuration, gameplay options, and editing features. %prep %setup -q %patch0 -p1 sed 's|libpng/png.h|libpng16/png.h|g' -i libraries/fltk/fluid/fluid.cxx libraries/fltk/src/*.cxx libraries/fltk/src/drivers/SVG/Fl_SVG_File_Surface.cxx sed -i 's/\r$//' README # Fix usage of DATE and TIME macros 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" common/version.h # Remove unneeded libraries to make sure that we use system ones: rm -R libraries/{curl,libpng,portmidi,zlib} %build %cmake \ -DUSE_INTERNAL_LIBS=0 \ -DBUILD_CLIENT=1 \ -DBUILD_LAUNCHER=1 \ -DBUILD_MASTER=1 \ -DBUILD_SERVER=1 \ -DBUILD_OR_FAIL=1 \ -DENABLE_PORTMIDI=1 \ -DUSE_INTERNAL_MINIUPNP=0 %cmake_build %install %cmake_install for res in 256 128 96; do mkdir -p "%{buildroot}%{_datadir}/icons/hicolor/$res"x"$res/apps/" install media/icon_odamex_"$res".png "%{buildroot}%{_datadir}/icons/hicolor/$res"x"$res/apps/odamex.png" install media/icon_odalaunch_"$res".png "%{buildroot}%{_datadir}/icons/hicolor/$res"x"$res/apps/odalaunch.png" done %suse_update_desktop_file -i odalaunch %suse_update_desktop_file -i odamex %files %license LICENSE %doc CHANGELOG README README.md %{_bindir}/odamex %{_bindir}/odasrv %{_bindir}/odamast %{_bindir}/odalaunch %dir %{_datadir}/odamex/ %exclude %{_datadir}/odamex/{README,LICENSE} %{_datadir}/odamex/config-samples/ %{_datadir}/odamex/odamex.wad %{_datadir}/icons/hicolor/*/apps/odamex.png %{_datadir}/applications/odamex.desktop %{_datadir}/icons/hicolor/*/apps/odalaunch.png %{_datadir}/applications/odalaunch.desktop %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