File abuse.spec of Package abuse
#
# spec file for package abuse
#
# 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: abuse
Version: 0.9
Release: 0
Summary: A port of Abuse by Crack Dot Com to Linux
License: GPL-2.0-only
Group: Amusements/Games/Action/Shoot
URL: https://antonior-software.blogspot.com/2016/05/abuse-1996-sdl-port-09a.html
Source: https://github.com/antrad/Abuse_1996/archive/refs/tags/%{version}.tar.gz
Source1: abuse.desktop
Patch0: linux.patch
BuildRequires: Mesa-devel
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(SDL2_mixer)
BuildRequires: pkgconfig(opencv)
BuildRequires: pkgconfig(sdl2)
%description
Abuse is a run and gun video game developed by Crack dot Com.
The game's source code, along with some of the shareware content,
has been in the public domain since the late 1990s and
subsequently been ported to many platforms.
%prep
%autosetup -p1 -n Abuse_1996-%{version}
%build
%cmake
%cmake_build -j1
%install
%cmake_install
%files
%defattr(-,root,root)
%doc AUTHORS COPYING COPYING.GPL COPYING.WTFPL ChangeLog NEWS README TODO
%{_bindir}/abuse
%{_bindir}/abuse-tool
%{_mandir}/man6/*
%{_datadir}/pixmaps/abuse.png
%{_datadir}/applications/abuse.desktop
%{_datadir}/abuse/
%changelog