8 Commits

Author SHA256 Message Date
5ad5ed6117 Accepting request 1291646 from games
OBS-URL: https://build.opensuse.org/request/show/1291646
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xonotic?expand=0&rev=14
2025-07-10 20:13:08 +00:00
3f88ed3240 - Force use of gcc13 for Leap 15.6, needed because the last change
OBS-URL: https://build.opensuse.org/package/show/games/xonotic?expand=0&rev=79
2025-07-10 09:44:24 +00:00
b5bf7e84fd Accepting request 1290536 from games
OBS-URL: https://build.opensuse.org/request/show/1290536
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xonotic?expand=0&rev=13
2025-07-06 15:13:17 +00:00
04ed59a7a5 - Explicitly set -std=gnu17. (GCC15 switch to C23 by default,
which the code does not support.)
- Trim filler wording from description

OBS-URL: https://build.opensuse.org/package/show/games/xonotic?expand=0&rev=77
2025-07-03 16:42:53 +00:00
126a8c7927 Accepting request 1256394 from games
OBS-URL: https://build.opensuse.org/request/show/1256394
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xonotic?expand=0&rev=12
2025-03-27 21:32:35 +00:00
6283c3b85b - Replace old package names BuildRequires (we have not had
xorg-x11-libX* in a long time)
- fixup description ambiguity
- smp_mflags is included in %make_build

OBS-URL: https://build.opensuse.org/package/show/games/xonotic?expand=0&rev=75
2025-03-27 06:28:28 +00:00
805ad2d225 Accepting request 1243483 from games
OBS-URL: https://build.opensuse.org/request/show/1243483
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xonotic?expand=0&rev=11
2025-02-06 21:06:43 +00:00
f5b415ca93 - removed unneeded xorg-x11-proto-devel BuildRequires (bsc#1236804)
OBS-URL: https://build.opensuse.org/package/show/games/xonotic?expand=0&rev=73
2025-02-05 18:02:04 +00:00
2 changed files with 61 additions and 25 deletions

View File

@@ -1,3 +1,25 @@
-------------------------------------------------------------------
Thu Jul 10 03:37:00 UTC 2025 - Carsten Ziepke <kieltux@gmail.com>
- Force use of gcc13 for Leap 15.6, needed because the last change
-------------------------------------------------------------------
Thu Jul 3 09:24:52 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
- Explicitly set -std=gnu17. (GCC15 switch to C23 by default,
which the code does not support.)
-------------------------------------------------------------------
Thu Mar 13 18:06:47 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
- Replace old package names BuildRequires (we have not had
xorg-x11-libX* in a long time)
-------------------------------------------------------------------
Wed Feb 5 13:45:03 UTC 2025 - Stefan Dirsch <sndirsch@suse.com>
- removed unneeded xorg-x11-proto-devel BuildRequires (bsc#1236804)
-------------------------------------------------------------------
Tue Feb 6 16:24:34 UTC 2024 - Carsten Ziepke <kieltux@gmail.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package xonotic
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,6 +16,11 @@
#
# Because "-std=gnu17" we need a c++17 compiler at least
%if 0%{?sle_version} && 0%{?sle_version} < 160000
%global force_gcc_version 13
%endif
%bcond_without systemd
Name: xonotic
Version: 0.8.6
@@ -30,19 +35,19 @@ Source2: xonotic.service
Source3: xonotic.init
Source4: %{name}.changes
Source100: xonotic.appdata.xml
BuildRequires: SDL2-devel
BuildRequires: alsa-devel
BuildRequires: d0_blind_id-devel
BuildRequires: libXpm-devel
BuildRequires: libXxf86vm-devel
BuildRequires: gcc%{?force_gcc_version}-c++
BuildRequires: libcurl-devel
BuildRequires: libjpeg-devel
BuildRequires: unzip
BuildRequires: update-desktop-files
BuildRequires: xorg-x11-libXext-devel
BuildRequires: xorg-x11-libXpm
BuildRequires: xorg-x11-proto-devel
BuildRequires: zlib-devel
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(d0_blind_id)
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(libjpeg)
BuildRequires: pkgconfig(sdl2)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xpm)
BuildRequires: pkgconfig(xxf86vm)
BuildRequires: pkgconfig(zlib)
Requires: logrotate
Requires: xonotic-data = %{version}
%if %{with systemd}
@@ -52,10 +57,11 @@ Provides: group(%{name})
Provides: user(%{name})
%description
Fast-paced first-person shooter that works on Windows, OS X and Linux. The project is geared towards providing addictive arena shooter gameplay which is all spawned and driven by the community itself. Being a direct successor of the Nexuiz project with years of development between them, and it aims to become the best possible open-source FPS (first-person-shooter) of its kind.
Fast-paced first-person shooter. It provides arena shooter gameplay
and is a direct successor of the Nexuiz project.
%package server
Summary: Dedicated xonotic server first person shooter
Summary: Dedicated server for the Xonotic first person shooter
Group: Amusements/Games/3D/Shoot
Requires: xonotic-data = %{version}
Requires(pre): shadow
@@ -64,10 +70,12 @@ Requires(pre): shadow
%endif
%description server
Xonotic is a free (GPL), fast-paced first-person shooter that works on Windows, OS X and Linux. The project is geared towards providing addictive arena shooter gameplay which is all spawned and driven by the community itself. Xonotic is a direct successor of the Nexuiz project with years of development between them, and it aims to become the best possible open-source FPS (first-person-shooter) of its kind.
Fast-paced first-person shooter. It provides arena shooter gameplay
and is a direct successor of the Nexuiz project.
Server with dedicated xonotic running as services unter the specific user.
service is handle via systemd or init - depends on your version.
This subpackage contains the server with dedicated xonotic running as
services unter the specific user. The service is handle via systemd or
init, depending on your version.
%package data
Summary: Data for the xonotic first person shooter
@@ -75,16 +83,18 @@ Group: Amusements/Games/3D/Shoot
BuildArch: noarch
%description data
Xonotic is a free (GPL), fast-paced first-person shooter that works on Windows, OS X and Linux. The project is geared towards providing addictive arena shooter gameplay which is all spawned and driven by the community itself. Xonotic is a direct successor of the Nexuiz project with years of development between them, and it aims to become the best possible open-source FPS (first-person-shooter) of its kind.
Fast-paced first-person shooter. It provides arena shooter gameplay
and is a direct successor of the Nexuiz project.
Data (textures, maps, sounds and models) required to play xonotic.
This subpackage contains data (textures, maps, sounds and models)
required to play xonotic.
%prep
%setup -q -n Xonotic
%autosetup -n Xonotic -p1
rm -rf misc/buildfiles/ # use system libs
sed -i \
-e "/^EXE_/s:darkplaces:%{name}-%{version}:" \
-e "s:-O3:%{optflags}:" \
-e "s:-O3:%{optflags} -std=gnu17:" \
-e '/^STRIP/s/strip/true/' \
source/darkplaces/makefile.inc
# do not include build time
@@ -94,8 +104,12 @@ TIME="\"$(date -d "${modified}" "+%%R")\""
find . -name '*.[ch]' | xargs sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g"
%build
%if 0%{?force_gcc_version}
export CC="gcc-%{force_gcc_version}"
export CXX="g++-%{force_gcc_version}"
%endif
%make_build \
%{?_smp_mflags} \
DP_LINK_TO_LIBJPEG=1 \
DP_LINK_CRYPTO=shared \
DP_FS_BASEDIR="%{_datadir}/xonotic" \
@@ -140,7 +154,7 @@ mkdir -p %{buildroot}%{_localstatedir}/lib/%{name}
%suse_update_desktop_file -i %{name} Game ActionGame
%endif
%pre -n %{name}-server
%pre server
%if %{with systemd}
%service_add_pre %{name}-server.service
%endif
@@ -152,21 +166,21 @@ getent passwd %{name} >/dev/null || useradd -r -g %{name} -d %{_localstatedir}/l
# only 13.1 is able to work with service* commands:
%post -n %{name}-server
%post server
%if %{with systemd}
%service_add_post %{name}-server.service
%else
%{fillup_and_insserv -n %{name}-server }
%endif
%preun -n %{name}-server
%preun server
%if %{with systemd}
%service_del_preun %{name}-server.service
%else
%stop_on_removal %{name}-server
%endif
%postun -n %{name}-server
%postun server
%if %{with systemd}
%service_del_postun %{name}-server.service
%else