File abuse.spec of Package abuse
#
# spec file for package abuse
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: abuse-free
Version: 0.8
Release: 0
Summary: A port of Abuse by Crack Dot Com to Linux
License: GPL-2.0
Group: Amusements/Games/Action/Shoot
Url: http://abuse.zoy.org/
Source: http://abuse.zoy.org/raw-attachment/wiki/download/%{name}-%{version}.tar.gz
Source1: abuse.desktop
Patch1: if_this.patch
BuildRequires: Mesa-devel
BuildRequires: SDL-devel >= 1.1.6
BuildRequires: automake
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: SDL_mixer-devel
BuildRequires: libtool
BuildRequires: update-desktop-files
BuildRequires: xorg-x11
Provides: abuse = %{version}
Obsoletes: abuse < %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Abuse-SDL is a port of Abuse by Crack Dot Com to Linux using the Simple
DirectMedia Layer library. This allows Abuse to run at screen depths
greater than 8bpp as well as fullscreen.
%prep
%setup -q
cp %{SOURCE1} .
patch -p0 <%{PATCH1}
%build
export CXXFLAGS="%{optflags} -fno-strict-aliasing"
%configure --with-assetdir=%{_datadir}/abuse
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install
# install icon and desktop file
install -D -m 0644 doc/abuse.png %{buildroot}%{_datadir}/pixmaps/abuse.png
%suse_update_desktop_file -i abuse Game ArcadeGame
%fdupes %{buildroot}%{_datadir}
%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%{_bindir}/abuse
%{_bindir}/abuse-tool
%doc %{_mandir}/man6/*
%{_datadir}/pixmaps/abuse.png
%{_datadir}/applications/abuse.desktop
%{_datadir}/abuse/
%changelog