1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
Summary: Classic RPG game with castles and magic
Summary(pl.UTF-8): Klasyczna gra RPG z zamkami i magią
Name: kq
Version: 0.99
Release: 1
License: GPL
Group: X11/Applications/Games
Source0: http://downloads.sourceforge.net/kqlives/20091214/%{name}-%{version}.tar.gz
# Source0-md5: 0bf9614e3be3d02795fe476227ab7330
Source1: %{name}.desktop
Source2: %{name}.xpm
URL: http://kqlives.sourceforge.net/
BuildRequires: allegro-devel >= 4.2.1
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: dumb-devel
BuildRequires: lua50
BuildRequires: lua50-devel
BuildRequires: pkgconfig
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
KQ is a open source CRPG, with eight playable characters, over twenty
maps, countless item, spells and enemies, all accompanied by music and
sound effects.
%description -l pl.UTF-8
KQ jest grą CRPG o otwartym kodzie źródłowym. Gracz ma do wyboru osiem
postaci i ponad dwadzieścia map. W grze pojawia się niezliczona ilość
przedmiotów, czarów, przeciwników. Wszystkiemu towarzyszy wspaniała
muzyka i efekty dźwiękowe.
%prep
%setup -q
%{__sed} 's/luac/luac50/g' -i scripts/Makefile.{am,in}
%build
%{__aclocal} -I m4
%{__autoconf}
%{__automake}
%configure
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/*
%dir %{_libdir}/%{name}
%dir %{_libdir}/%{name}/scripts
%attr(755,root,root) %{_libdir}/%{name}/scripts/*.lob
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/data
%{_datadir}/%{name}/data/*
%dir %{_datadir}/%{name}/maps
%{_datadir}/%{name}/maps/*
%dir %{_datadir}/%{name}/music
%{_datadir}/%{name}/music/*
%lang(de) %{_datadir}/locale/de/LC_MESSAGES/%{name}.mo
%lang(es) %{_datadir}/locale/es/LC_MESSAGES/%{name}.mo
%{_mandir}/man6/%{name}.6*
%{_desktopdir}/%{name}.desktop
%{_pixmapsdir}/%{name}.xpm
|