File Wolf4SDL.spec of Package Wolf4SDL

#
# spec file for package Wofl4SDL
#
# Copyright (c) 2023, Martin Hauke <mardnh@gmx.de>
#
# 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:           Wolf4SDL
Version:        2.2+git20221204
Release:        0
Summary:        A Wolfenstein 3D source port
License:        GPL-2.0-only
Group:          Amusements/Games/3D/Shoot
URL:            https://github.com/Doom-modding-and-etc/Wolf4SDL/
#Git-Clone:     https://github.com/Doom-modding-and-etc/Wolf4SDL.git
Source:         %{name}-%{version}.tar.xz
BuildRequires:  pkgconfig(SDL2_mixer)
BuildRequires:  pkgconfig(sdl2)

%description
Wolf4SDL is a port of id Software's Wolfenstein 3D to the
cross-platform multimedia library SDL. The port has especially
benefited those who use machines that no longer natively support
DOS. Wolf4SDL was developed by Ripper, who based it upon Wolf4GW.

%prep
%setup -q
sed -i 's/\r$//' README.TXT

%build
%make_build CFLAGS="-fPIE" LDFLAGS="-pie"

%install
%make_install PREFIX=%{buildroot}/usr

%files
%license license-id.txt license-gpl.txt
%doc README.TXT
%{_bindir}/Wolf4SDL

%changelog
openSUSE Build Service is sponsored by