File darkplaces.spec of Package darkplaces

#
# spec file for package darkplaces
#
# Copyright (c) 2021 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:           darkplaces
Version:        20140513
Release:        0
Summary:        Multiplayer, deathmatch oriented first person shooter engine
License:        GPL-2.0-or-later
Group:          Amusements/Games/3D/Shoot
URL:            https://icculus.org/twilight/darkplaces/
# svn co svn://svn.icculus.org/twilight/trunk/darkplaces darkplaces -r {20140513}
Source0:        %{name}-rev%{version}.tar.bz2
# PATCH-FIX-UPSTREAM darkplaces-makefile.patch
Patch0:         %{name}-makefile.patch
# PATCH-FIX-UPSTREAM darkplaces-makefile-multiarch.patch
Patch1:         %{name}-makefile-multiarch.patch
BuildRequires:  ImageMagick
BuildRequires:  file
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(alsa)
BuildRequires:  pkgconfig(gl)
BuildRequires:  pkgconfig(libcurl)
BuildRequires:  pkgconfig(libjpeg)
BuildRequires:  pkgconfig(sdl)
BuildRequires:  pkgconfig(vorbis)
BuildRequires:  pkgconfig(xpm)
BuildRequires:  pkgconfig(xxf86dga)
BuildRequires:  pkgconfig(xxf86vm)
BuildRequires:  pkgconfig(zlib)
Provides:       nexuiz-engine = 252

%description
Darkplaces is a modern, powerful first-person shooter engine.

%package server
Summary:        Dedicated server for the darkplaces engine
Group:          Amusements/Games/Other
Provides:       nexuiz-engine = 252

%description server
Darkplaces is a modern, powerful first-person shooter engine.

This is the darkplaces dedicated server required to host network games.

%prep
%setup -q -n %{name}-rev%{version}
%patch0 -p1
%patch1 -p1

%build
# not parallel build safe
%make_build -j1 release OPTIM_RELEASE="%{optflags}"

%install
# Install the main programs
mkdir -p %{buildroot}%{_bindir}
install -m 0755 darkplaces-glx \
        %{buildroot}%{_bindir}/darkplaces-glx
install -m 0755 darkplaces-sdl \
        %{buildroot}%{_bindir}/darkplaces-sdl
install -m 0755 darkplaces-dedicated \
        %{buildroot}%{_bindir}/darkplaces-dedicated

%files
%license COPYING
%doc darkplaces.txt
%{_bindir}/darkplaces-glx
%{_bindir}/darkplaces-sdl

%files server
%license COPYING
%doc darkplaces.txt
%{_bindir}/darkplaces-dedicated

%changelog
openSUSE Build Service is sponsored by