File abe.spec of Package abe

#
# spec file for package abe
#
# Copyright (c) 2016 SUSE LINUX 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:           abe
Version:        1.1
Release:        0
Summary:        Scrolling, platform-jumping, ancient pyramid exploring game
License:        GPL-2.0+
Group:          Amusements/Games/Other
Url:            http://abe.sourceforge.net/
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Source1:        abe.png
Source99:       abe-rpmlintrc
# PATCH-FIX-UPSTREAM -- https://sourceforge.net/p/abe/patches/3/
Patch0:         %{name}-1.1-settings.patch
# PATCH-FIX-UPSTREAM -- https://sourceforge.net/p/abe/patches/1/
Patch1:         %{name}-1.1-doublefree.patch
# PATCH-FIX-UPSTREAM -- https://sourceforge.net/p/abe/patches/2/
Patch2:         %{name}-1.1-format.patch
# PATCH-FEATURE-UPSTREAM -- https://sourceforge.net/p/abe/patches/4/
Patch3:         desktop-and-appdata.patch
# PATCH-FEATURE-UPSTREAM -- https://sourceforge.net/p/abe/patches/5/
Patch4:         install-gamedata.patch
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  gcc-c++
BuildRequires:  libXi-devel
BuildRequires:  libXiterm-devel
BuildRequires:  pkgconfig
BuildRequires:  unzip
BuildRequires:  xorg-x11-libXmu-devel
BuildRequires:  pkgconfig(SDL_mixer)
BuildRequires:  pkgconfig(sdl)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
A scrolling, platform-jumping, key-collecting, ancient pyramid exploring game,
vaguely in the style of similar games for the Commodore64.

%prep
%setup -q
%patch0 -p1
%patch1
%patch2
%patch3 -p1
%patch4 -p1

cp %{SOURCE1} images

%build
autoreconf -fi
%configure --with-data-dir=%{_datadir}/%{name}
make %{?_smp_mflags}

%install
make %{?_smp_mflags} DESTDIR=%{buildroot} install

%files
%defattr(-,root,root,-)
%doc README
%if 0%{?suse_version} > 1320
%license COPYING
%else
%doc COPYING
%dir %{_datadir}/appdata
%endif
%{_bindir}/*
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/appdata/abe.appdata.xml
%{_datadir}/pixmaps/%{name}.png

%changelog
openSUSE Build Service is sponsored by