]>
Commit | Line | Data |
---|---|---|
b30e163f | 1 | Summary: A Generic Game Engine library for 2D double-buffering animation |
2 | Name: gengameng | |
3 | Version: 4.1 | |
4 | Release: 1 | |
5 | License: GPL | |
6 | Group: X11/Libraries | |
7 | Source0: http://www3.sympatico.ca/sarrazip/dev/%{name}-%{version}.tar.gz | |
8 | Patch0: %{name}-config.patch | |
9 | URL: http://sarrazip.com/dev/burgerspace.html | |
b30e163f | 10 | BuildRequires: SDL_image-devel |
deeb84a2 | 11 | BuildRequires: libstdc++-devel |
b30e163f | 12 | PreReq: /sbin/ldconfig |
13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
14 | ||
15 | %define _prefix /usr/X11R6 | |
16 | ||
17 | %description | |
18 | Generic Game Engine library suitable for BurgerSpace and Cosmosmash. | |
19 | ||
20 | %package devel | |
21 | Summary: C++ header files for the gengameng library | |
22 | Group: X11/Development/Libraries | |
deeb84a2 | 23 | Requires: %{name} = %version} |
b30e163f | 24 | |
25 | %description devel | |
26 | C++ header files for the Generic Game Engine ("gengameng") library | |
27 | for 2D double-buffering animation. | |
28 | ||
deeb84a2 | 29 | %package static |
30 | Summary: Static gengameng library | |
31 | Group: X11/Development/Libraries | |
32 | Requires: %{name}-devel = %version} | |
33 | ||
34 | %description static | |
35 | Static gengameng library. | |
36 | ||
b30e163f | 37 | %prep |
38 | %setup -q | |
39 | %patch0 -p1 | |
40 | ||
41 | %build | |
deeb84a2 | 42 | %configure \ |
43 | --enable-static | |
44 | ||
b30e163f | 45 | %{__make} |
46 | ||
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
deeb84a2 | 49 | |
50 | %{__make} install \ | |
51 | DESTDIR=$RPM_BUILD_ROOT \ | |
52 | aclocaldir=%{_aclocaldir} | |
b30e163f | 53 | |
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %post -p /sbin/ldconfig | |
58 | %postun -p /sbin/ldconfig | |
59 | ||
60 | %files | |
61 | %defattr(644,root,root,755) | |
deeb84a2 | 62 | %attr(755,root,root) %{_libdir}/libgengameng.so.*.* |
b30e163f | 63 | |
64 | %files devel | |
65 | %defattr(644,root,root,755) | |
66 | %attr(755,root,root) %{_bindir}/gengameng-config | |
deeb84a2 | 67 | %attr(755,root,root) %{_libdir}/libgengameng.so |
68 | %attr(755,root,root) %{_libdir}/libgengameng.la | |
69 | %{_includedir}/gengameng | |
b30e163f | 70 | %{_aclocaldir}/gengameng.m4 |
deeb84a2 | 71 | |
72 | %files static | |
73 | %defattr(644,root,root,755) | |
74 | %{_libdir}/libgengameng.a |