]>
Commit | Line | Data |
---|---|---|
b30e163f | 1 | Summary: A Generic Game Engine library for 2D double-buffering animation |
6f9edf2a | 2 | Summary(pl.UTF-8): Biblioteka ogólnego silnika gier z podwójnie buforowaną animacją 2D |
b30e163f | 3 | Name: gengameng |
4 | Version: 4.1 | |
e044acfe | 5 | Release: 4 |
b30e163f | 6 | License: GPL |
7 | Group: X11/Libraries | |
8 | Source0: http://www3.sympatico.ca/sarrazip/dev/%{name}-%{version}.tar.gz | |
2acee9ea | 9 | # Source0-md5: 112322dbdc6684717cdfd7c61d225655 |
b30e163f | 10 | Patch0: %{name}-config.patch |
1b1784cb | 11 | Patch1: %{name}-link.patch |
e044acfe | 12 | Patch2: %{name}-acfix.patch |
b30e163f | 13 | URL: http://sarrazip.com/dev/burgerspace.html |
1b1784cb JB |
14 | BuildRequires: SDL-devel >= 1.2.0 |
15 | BuildRequires: SDL_image-devel >= 1.2.0 | |
16 | BuildRequires: autoconf | |
17 | BuildRequires: automake | |
deeb84a2 | 18 | BuildRequires: libstdc++-devel |
1b1784cb | 19 | BuildRequires: libtool >= 2:1.4d |
194d0a1b JB |
20 | Requires: SDL >= 1.2.0 |
21 | Requires: SDL_image >= 1.2.0 | |
b30e163f | 22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
b30e163f | 24 | %description |
25 | Generic Game Engine library suitable for BurgerSpace and Cosmosmash. | |
26 | ||
0ed963d7 JR |
27 | %description -l pl.UTF-8 |
28 | Biblioteka ogólnego silnika gier wykorzystana w grach BurgerSpace i | |
194d0a1b JB |
29 | Cosmosmash. |
30 | ||
b30e163f | 31 | %package devel |
12fe66a8 | 32 | Summary: C++ header files for the gengameng library |
6f9edf2a | 33 | Summary(pl.UTF-8): Pliki nagłówkowe C++ dla biblioteki gengameng |
12fe66a8 | 34 | Group: X11/Development/Libraries |
e044acfe | 35 | Requires: %{name} = %{version}-%{release} |
1b1784cb JB |
36 | Requires: SDL-devel >= 1.2.0 |
37 | Requires: SDL_image-devel >= 1.2.0 | |
38 | Requires: libstdc++-devel | |
b30e163f | 39 | |
40 | %description devel | |
41 | C++ header files for the Generic Game Engine ("gengameng") library | |
42 | for 2D double-buffering animation. | |
43 | ||
0ed963d7 JR |
44 | %description devel -l pl.UTF-8 |
45 | Pliki nagłówkowe C++ dla biblioteki ogólnego silnika gier | |
46 | ("gengameng") z podwójnie buforowaną animacją 2D. | |
194d0a1b | 47 | |
deeb84a2 | 48 | %package static |
12fe66a8 | 49 | Summary: Static gengameng library |
6f9edf2a | 50 | Summary(pl.UTF-8): Statyczna biblioteka gengameng |
12fe66a8 | 51 | Group: X11/Development/Libraries |
e044acfe | 52 | Requires: %{name}-devel = %{version}-%{release} |
deeb84a2 | 53 | |
54 | %description static | |
55 | Static gengameng library. | |
56 | ||
0ed963d7 | 57 | %description static -l pl.UTF-8 |
194d0a1b JB |
58 | Statyczna biblioteka gengameng. |
59 | ||
b30e163f | 60 | %prep |
61 | %setup -q | |
62 | %patch0 -p1 | |
1b1784cb | 63 | %patch1 -p1 |
e044acfe | 64 | %patch2 -p1 |
b30e163f | 65 | |
66 | %build | |
1b1784cb JB |
67 | # supplied libtool is broken (C++) |
68 | %{__libtoolize} | |
69 | %{__aclocal} -I macros | |
70 | %{__autoconf} | |
71 | %{__automake} | |
deeb84a2 | 72 | %configure \ |
73 | --enable-static | |
74 | ||
b30e163f | 75 | %{__make} |
76 | ||
77 | %install | |
78 | rm -rf $RPM_BUILD_ROOT | |
deeb84a2 | 79 | |
80 | %{__make} install \ | |
81 | DESTDIR=$RPM_BUILD_ROOT \ | |
82 | aclocaldir=%{_aclocaldir} | |
b30e163f | 83 | |
84 | %clean | |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | ||
87 | %post -p /sbin/ldconfig | |
88 | %postun -p /sbin/ldconfig | |
89 | ||
90 | %files | |
91 | %defattr(644,root,root,755) | |
1b1784cb | 92 | %doc AUTHORS NEWS README |
deeb84a2 | 93 | %attr(755,root,root) %{_libdir}/libgengameng.so.*.* |
b30e163f | 94 | |
95 | %files devel | |
96 | %defattr(644,root,root,755) | |
97 | %attr(755,root,root) %{_bindir}/gengameng-config | |
deeb84a2 | 98 | %attr(755,root,root) %{_libdir}/libgengameng.so |
201a2419 | 99 | %{_libdir}/libgengameng.la |
deeb84a2 | 100 | %{_includedir}/gengameng |
b30e163f | 101 | %{_aclocaldir}/gengameng.m4 |
deeb84a2 | 102 | |
103 | %files static | |
104 | %defattr(644,root,root,755) | |
105 | %{_libdir}/libgengameng.a |