2007-01-10 23:36:27 +01:00
|
|
|
#
|
2011-07-11 12:27:43 +02:00
|
|
|
# spec file for package bzflag
|
2007-01-10 23:36:27 +01:00
|
|
|
#
|
2022-03-16 10:34:28 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2007-01-10 23:36:27 +01:00
|
|
|
#
|
2008-09-08 15:59:54 +02:00
|
|
|
# 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.
|
|
|
|
|
2019-03-29 08:38:05 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-10 23:36:27 +01:00
|
|
|
#
|
2012-04-30 12:54:35 +02:00
|
|
|
|
|
|
|
|
2017-11-25 18:10:03 +01:00
|
|
|
#Compat macro for new _fillupdir macro introduced in Nov 2017
|
|
|
|
%if ! %{defined _fillupdir}
|
2022-03-16 10:34:28 +01:00
|
|
|
%define _fillupdir %{_localstatedir}/adm/fillup-templates
|
2017-11-25 18:10:03 +01:00
|
|
|
%endif
|
2007-01-10 23:36:27 +01:00
|
|
|
Name: bzflag
|
2022-11-21 18:45:11 +01:00
|
|
|
Version: 2.4.26
|
2012-03-23 02:03:05 +01:00
|
|
|
Release: 0
|
2007-01-10 23:36:27 +01:00
|
|
|
Summary: 3D Networked Multiplayer Tank Battle Game
|
2019-03-29 08:38:05 +01:00
|
|
|
License: GPL-2.0-or-later
|
2012-03-23 02:03:05 +01:00
|
|
|
Group: Amusements/Games/3D/Shoot
|
2020-06-24 09:55:14 +02:00
|
|
|
URL: https://www.bzflag.org/
|
2017-12-25 22:41:36 +01:00
|
|
|
Source: https://download.bzflag.org/bzflag/source/%{version}/bzflag-%{version}.tar.gz
|
2007-01-10 23:36:27 +01:00
|
|
|
Source2: rc.bzflagserver
|
2010-03-19 10:36:38 +01:00
|
|
|
Source3: %{name}-maps.tar.bz2
|
2007-01-10 23:36:27 +01:00
|
|
|
Source4: sysconfig.bzflagserver-bzflag
|
2010-03-19 10:36:38 +01:00
|
|
|
Source5: %{name}.desktop
|
|
|
|
Source6: %{name}.png
|
2019-03-25 16:33:56 +01:00
|
|
|
Source7: bzflagserver.service
|
2013-04-17 15:09:47 +02:00
|
|
|
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
|
2012-04-30 12:54:35 +02:00
|
|
|
Patch0: %{name}-1.10.4-ncursespollution.patch
|
2013-04-17 15:09:47 +02:00
|
|
|
BuildRequires: bc
|
|
|
|
BuildRequires: curl-devel
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: freeglut-devel
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libcares-devel
|
|
|
|
BuildRequires: libdrm-devel
|
|
|
|
BuildRequires: ncurses-devel
|
2019-03-29 08:38:05 +01:00
|
|
|
BuildRequires: systemd-rpm-macros
|
2013-04-17 15:09:47 +02:00
|
|
|
BuildRequires: update-desktop-files
|
2022-11-21 18:45:11 +01:00
|
|
|
BuildRequires: pkgconfig(sdl2)
|
2022-03-16 10:34:28 +01:00
|
|
|
Requires(pre): %fillup_prereq
|
|
|
|
%{?systemd_ordering}
|
2013-04-17 15:09:47 +02:00
|
|
|
%if 0%{?sles_version}
|
|
|
|
BuildRequires: glew-devel
|
|
|
|
%else
|
|
|
|
BuildRequires: pkgconfig(glew)
|
|
|
|
%endif
|
|
|
|
BuildRequires: zlib-devel
|
2007-01-10 23:36:27 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
BZFlag is a 3D multiplayer tank battle game that allows users to play
|
|
|
|
against each other in a networked environment. Because it makes heavy
|
|
|
|
use of 3D graphics (OpenGL), a fast CPU or a supported 3D video card is
|
|
|
|
heavily recommended.
|
|
|
|
|
2010-03-19 10:36:38 +01:00
|
|
|
Find server maps in /usr/share/bzflag/maps.
|
2007-01-10 23:36:27 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -a 3
|
2012-04-30 12:54:35 +02:00
|
|
|
%patch0 -p1
|
2013-04-17 15:09:47 +02:00
|
|
|
cp %{SOURCE2} .
|
2019-03-25 16:33:56 +01:00
|
|
|
cp %{SOURCE7} .
|
2007-01-10 23:36:27 +01:00
|
|
|
|
|
|
|
%build
|
2010-03-19 10:36:38 +01:00
|
|
|
%configure \
|
2011-07-08 17:46:14 +02:00
|
|
|
--disable-dependency-tracking \
|
|
|
|
--libdir=%{_libdir}/%{name} \
|
2012-04-30 12:54:35 +02:00
|
|
|
--disable-static
|
2022-03-16 10:34:28 +01:00
|
|
|
%make_build all
|
2007-01-10 23:36:27 +01:00
|
|
|
|
2019-03-25 16:33:56 +01:00
|
|
|
%pre
|
|
|
|
%service_add_pre bzflagserver.service
|
|
|
|
|
2007-01-10 23:36:27 +01:00
|
|
|
%preun
|
2019-03-25 16:33:56 +01:00
|
|
|
%service_del_preun bzflagserver.service
|
2007-01-10 23:36:27 +01:00
|
|
|
|
|
|
|
%post
|
|
|
|
%fillup_only -an bzflagserver
|
2019-03-25 16:33:56 +01:00
|
|
|
%service_add_post bzflagserver.service
|
2007-01-10 23:36:27 +01:00
|
|
|
|
|
|
|
%postun
|
2019-03-25 16:33:56 +01:00
|
|
|
%service_del_postun bzflagserver.service
|
2007-01-10 23:36:27 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
#Init script for the BZFlag server
|
2019-03-25 16:33:56 +01:00
|
|
|
mkdir -p %{buildroot}%{_datadir}/%{name}/scripts
|
|
|
|
install -D -m 755 %{SOURCE2} %{buildroot}%{_datadir}/%{name}/scripts/rcbzflagserver
|
|
|
|
install -D -m 644 %{SOURCE7} %{buildroot}%{_unitdir}/bzflagserver.service
|
2019-03-29 08:38:05 +01:00
|
|
|
%make_install MKDIR_P="mkdir -p --"
|
2017-11-25 18:10:03 +01:00
|
|
|
install -D -m 644 %{SOURCE4} %{buildroot}%{_fillupdir}/sysconfig.bzflagserver-bzflag
|
2019-03-25 16:33:56 +01:00
|
|
|
mkdir -p %{buildroot}%{_datadir}/%{name}/maps
|
|
|
|
install -m 644 maps/*bzmap %{buildroot}%{_datadir}/%{name}/maps
|
2013-04-17 15:09:47 +02:00
|
|
|
install -D -m 644 %{SOURCE6} %{buildroot}%{_datadir}/pixmaps/bzflag.png
|
2010-03-19 10:36:38 +01:00
|
|
|
%suse_update_desktop_file -i %{name}
|
2013-04-17 15:09:47 +02:00
|
|
|
%fdupes %{buildroot}
|
2007-01-10 23:36:27 +01:00
|
|
|
|
|
|
|
%files
|
2021-03-01 17:30:02 +01:00
|
|
|
%license COPYING
|
|
|
|
%doc AUTHORS PORTING README DEVINFO
|
2017-12-25 22:41:36 +01:00
|
|
|
%doc README.Linux misc/bzfs.conf ChangeLog
|
2013-04-17 15:09:47 +02:00
|
|
|
%{_datadir}/%{name}/
|
2019-03-25 16:33:56 +01:00
|
|
|
%{_datadir}/%{name}/scripts/
|
|
|
|
%{_datadir}/bzflag/scripts/rcbzflagserver
|
|
|
|
%{_unitdir}/bzflagserver.service
|
|
|
|
%{_bindir}/*
|
2010-03-19 10:36:38 +01:00
|
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
%{_datadir}/pixmaps/%{name}.png
|
|
|
|
%{_mandir}/man5/*
|
|
|
|
%{_mandir}/man6/*
|
2017-11-25 18:10:03 +01:00
|
|
|
%{_fillupdir}/sysconfig.bzflagserver-bzflag
|
2013-04-17 15:09:47 +02:00
|
|
|
%{_libdir}/%{name}/
|
2008-01-17 22:12:14 +01:00
|
|
|
|
2007-03-15 01:16:17 +01:00
|
|
|
%changelog
|