]>
Commit | Line | Data |
---|---|---|
85b62de7 ZU |
1 | # TODO: |
2 | # - patch src/main.cc too (/usr -> PACKAGE_DATA_DIR), doesn't work: don't found map | |
bc45e916 ZU |
3 | Summary: 2d shooting game |
4 | Name: kulic | |
5 | Version: 1.1 | |
85b62de7 | 6 | Release: 0.6 |
bc45e916 ZU |
7 | License: GPL v2 |
8 | Group: X11/Applications/Games | |
9 | Source0: http://hippo.nipax.cz/src/%{name}-%{version}.tar.gz | |
10 | # Source0-md5: 16aff4bded3ae1c6712ca71d4d429730 | |
11 | Patch0: %{name}-cstring.patch | |
85b62de7 | 12 | Patch1: %{name}-datadir.patch |
bc45e916 ZU |
13 | URL: http://hippo.nipax.cz/download.en.php |
14 | BuildRequires: allegro-devel | |
bc45e916 | 15 | BuildRequires: autoconf |
84eb64d0 | 16 | BuildRequires: automake |
bc45e916 | 17 | BuildRequires: libtool |
84eb64d0 | 18 | BuildRequires: sed >= 4.0 |
bc45e916 ZU |
19 | # Need for sound, imho allegro-alsa is the best solution |
20 | Suggests: allegro-alsa | |
21 | # Suggests: allegro-arts | |
22 | # Suggests: allegro-esd | |
23 | # Suggests: allegro-jack | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | 2d shooting game. | |
28 | ||
29 | %prep | |
30 | %setup -q | |
84eb64d0 | 31 | %{__sed} -i -e 's,\r$,,' src/*.c* |
bc45e916 | 32 | %patch0 -p1 |
85b62de7 | 33 | %patch1 -p1 |
bc45e916 ZU |
34 | |
35 | %build | |
36 | ||
37 | %{__libtoolize} | |
38 | %{__aclocal} | |
39 | %{__autoconf} | |
40 | %{__autoheader} | |
41 | %{__automake} | |
42 | ||
43 | %configure | |
44 | %{__make} | |
45 | ||
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %{__make} install \ | |
50 | DESTDIR=$RPM_BUILD_ROOT | |
51 | ||
8b08665d ZU |
52 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} |
53 | install misc/%{name}.desktop $RPM_BUILD_ROOT%{_desktopdir} | |
54 | install misc/%{name}.xpm $RPM_BUILD_ROOT%{_pixmapsdir} | |
55 | ||
bc45e916 ZU |
56 | %clean |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %files | |
60 | %defattr(644,root,root,755) | |
61 | %doc AUTHORS ChangeLog NEWS README | |
62 | %attr(755,root,root) %{_bindir}/* | |
63 | %{_datadir}/%{name} | |
64 | %{_mandir}/man6/kulic* | |
8b08665d ZU |
65 | %{_desktopdir}/%{name}.desktop |
66 | %{_pixmapsdir}/%{name}.xpm |