File kqlives.spec of Package kqlives
#
# spec file for package kqlives
#
# Copyright (c) 2012 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: kqlives
BuildRequires: allegro-devel
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: gettext
BuildRequires: libaldmb-devel
BuildRequires: libdumb-devel
%if 0%{?suse_version} > 1210
BuildRequires: lua51-devel
%else
BuildRequires: lua-devel
%endif
BuildRequires: make
BuildRequires: update-desktop-files
Requires: allegro
Requires: dumb
Requires: lua
Version: 20080202
Release: 0
Summary: The console-style roleplaying game
License: GPL-2.0+
Group: Amusements/Games/RPG
Url: http://kqlives.sourceforge.net/
Source: kq-src-%{version}.tar.bz2
Source1: %{name}.png
Source2: %{name}.desktop
Source100: %{name}-rpmlintrc
Patch: %{name}-dumb.patch
Patch1: %{name}-code_cleanup.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
KQ is a open-sourced CRPG, with eight characters, over twenty maps,
countless item, spells and enemies, all accompanied by music and sound
effects.
The majority of KQ was developed by JB, until he abandoned it in
Autumn 2002. Due to the wonders of open source, it was rescued by a
team from the Allegro community.
%prep
%setup -q -n kq-src-%{version}
%patch -p1
%patch1
%build
autoreconf -fiv
%configure --enable-cheats CFLAGS="%{optflags}" OBJCFLAGS="%{optflags}" LDFLAGS="-Wl,-z,noexecstack"
make clean
make %{?_smp_mflags}
%install
%makeinstall
%suse_update_desktop_file -i %{name} Game RolePlaying
%find_lang kq
%files -f kq.lang
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING README changes.txt
%{_bindir}/*
%{_libdir}/kq
%{_datadir}/kq
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_mandir}/man6/kq.6*
%changelog