File avp.spec of Package avp
#
# spec file for package avp
#
# 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
# 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/
#
%define version_suffix -a1
Name: avp
Version: 20170505
Release: 0
Summary: Aliens versus Predator (2000)
License: SUSE-Freeware
Group: Amusements/Games/3D/Shoot
URL: https://icculus.org/avp/
Source0: https://icculus.org/avp/files/avp-%{version}%{version_suffix}.tar.gz
Source1: https://icculus.org/avp/files/avp-%{version}%{version_suffix}.sha512sum
# PATCH-FIX-UPSTREAM -- https://github.com/neuromancer/avp/pull/9
Patch0: fix-multiple-definitions.patch
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(openal)
BuildRequires: pkgconfig(sdl2)
%description
A science fiction first-person shooter computer game developed by Rebellion.
It offers three separate campaigns, each playable as a separate species:
Alien, Predator, or human Colonial Marine.
You need the game assets from the "Gold Edition" released in 2000 to play.
%prep
%autosetup -p1
%build
%cmake
%make_build
%install
cd build
cmake -P cmake_install.cmake
mkdir -p %{buildroot}%{_bindir}
mv avp %{buildroot}%{_bindir}
%files
%license LICENSE
%doc README
%{_bindir}/avp
%changelog