]>
Commit | Line | Data |
---|---|---|
ec725800 | 1 | Summary: The Allegro game programming library GL backend |
f1da807b | 2 | Summary(pl.UTF-8): Wsparcie GL dla biblioteki do programowania gier Allegro |
ec725800 | 3 | Name: allegro-gl |
f27ca4a2 | 4 | Version: 0.4.3 |
ec725800 | 5 | Release: 1 |
751f3f29 | 6 | License: GPL v2 or zlib |
ec725800 | 7 | Group: Libraries |
d5148d62 | 8 | Source0: http://dl.sourceforge.net/allegrogl/alleggl-%{version}.tar.bz2 |
f27ca4a2 | 9 | # Source0-md5: de84c6ab982499501940854893ea0dbd |
036883c1 JB |
10 | Patch0: %{name}-mouse.patch |
11 | Patch1: %{name}-link.patch | |
f84279f5 | 12 | Patch2: %{name}-libpthread.patch |
a7d5079a | 13 | URL: http://sourceforge.net/projects/allegrogl/ |
b56f029d | 14 | BuildRequires: OpenGL-GLU-devel |
036883c1 | 15 | BuildRequires: allegro-devel >= 4.3.1 |
ec725800 PZ |
16 | BuildRequires: autoconf >= 2.53 |
17 | BuildRequires: automake | |
036883c1 | 18 | Requires: allegro >= 4.3.1 |
ec725800 PZ |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
a5bee254 JB |
21 | %define specflags -fomit-frame-pointer |
22 | ||
ec725800 PZ |
23 | %description |
24 | AllegroGL is a cross-platform GL backend for the Allegro library. | |
25 | ||
7a2620e6 JR |
26 | %description -l pl.UTF-8 |
27 | AllegroGL jest przenośną biblioteką dodającą wsparcie GL | |
28 | w aplikacjach używających biblioteki Allegro. | |
ec725800 PZ |
29 | |
30 | %package devel | |
31 | Summary: A game programming library - header files | |
f1da807b | 32 | Summary(pl.UTF-8): Biblioteka do programowania gier - pliki nagłówkowe |
ec725800 PZ |
33 | Group: Development/Libraries |
34 | Requires: %{name} = %{version}-%{release} | |
036883c1 | 35 | Requires: allegro-devel >= 4.3.1 |
ec725800 PZ |
36 | |
37 | %description devel | |
38 | AllegroGL is a cross-platform GL backend for the Allegro library. | |
39 | ||
40 | This package contains header files neccessary for compiling | |
41 | applications using AllegroGL library. | |
42 | ||
7a2620e6 JR |
43 | %description devel -l pl.UTF-8 |
44 | AllegroGL jest przenośną biblioteką dodającą wsparcie GL | |
45 | w aplikacjach używających biblioteki Allegro. | |
ec725800 | 46 | |
7a2620e6 JR |
47 | Ten pakiet zawiera pliki nagłówkowe niezbędne do kompilowania |
48 | aplikacji wykorzystujących bibliotekę AllegroGL. | |
ec725800 PZ |
49 | |
50 | %prep | |
d5148d62 | 51 | %setup -q -n alleggl |
036883c1 JB |
52 | %patch0 -p1 |
53 | %patch1 -p1 | |
f84279f5 | 54 | %patch2 -p1 |
ec725800 PZ |
55 | |
56 | %build | |
57 | %{__aclocal} | |
58 | %{__autoconf} | |
ec725800 PZ |
59 | %configure \ |
60 | --enable-static \ | |
61 | %ifnarch %{ix86} | |
62 | --disable-asm \ | |
63 | --disable-mmx \ | |
64 | --disable-sse | |
65 | %endif | |
66 | ||
a5bee254 JB |
67 | %{__make} lib \ |
68 | CFLAGS="%{rpmcflags} -Wall -ffast-math" | |
ec725800 PZ |
69 | |
70 | %install | |
71 | rm -rf $RPM_BUILD_ROOT | |
751f3f29 | 72 | install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}/allegrogl/GLext} |
ec725800 | 73 | |
2411d1af | 74 | install include/alleggl*.h $RPM_BUILD_ROOT%{_includedir} |
ec725800 PZ |
75 | install include/allegrogl/*.h $RPM_BUILD_ROOT%{_includedir}/allegrogl |
76 | install include/allegrogl/GLext/*.h $RPM_BUILD_ROOT%{_includedir}/allegrogl/GLext | |
77 | install lib/unix/libagl.so $RPM_BUILD_ROOT%{_libdir} | |
78 | ||
79 | %clean | |
80 | rm -rf $RPM_BUILD_ROOT | |
81 | ||
82 | %post -p /sbin/ldconfig | |
83 | %postun -p /sbin/ldconfig | |
84 | ||
85 | %files | |
86 | %defattr(644,root,root,755) | |
751f3f29 | 87 | %doc bugs.txt readme.txt todo.txt zlib.txt |
ec725800 PZ |
88 | %attr(755,root,root) %{_libdir}/libagl.so |
89 | ||
90 | %files devel | |
91 | %defattr(644,root,root,755) | |
92 | %doc howto.txt | |
751f3f29 JB |
93 | %{_includedir}/alleggl*.h |
94 | %{_includedir}/allegrogl |