]>
Commit | Line | Data |
---|---|---|
cee13441 | 1 | Summary: SDL (Simple DirectMedia Layer) - Game/Multimedia Library |
2 | Name: SDL | |
b71f3de6 | 3 | Version: 1.0.2 |
cee13441 | 4 | Release: 1 |
5 | Group: X11/Libraries | |
6 | Copyright: LGPL | |
3975d0d9 | 7 | Source: http://www.devolution.com/~slouken/SDL/release/%{name}-%{version}.tar.gz |
8 | URL: http://www.devolution.com/~slouken/SDL/ | |
00dd326a | 9 | BuildRequires: XFree86-devel |
6211bdd4 | 10 | BuildRequires: esound-devel |
11 | BuildRequires: gtk+-devel >= 1.2.1 | |
cee13441 | 12 | BuildRoot: /tmp/%{name}-%{version}-root |
5249f883 | 13 | |
14 | %description | |
cee13441 | 15 | SDL (Simple DirectMedia Layer) is a library that allows you portable, low |
16 | level access to a video framebuffer, audio output, mouse, and keyboard. It | |
17 | can support both windowed and DGA modes of XFree86, and it is designed to be | |
18 | portable - applications linked with SDL can also be built on Win32 and BeOS. | |
19 | ||
20 | %package devel | |
b1002eee | 21 | Summary: SDL - Header files |
c1a764ca | 22 | Group: X11/Libraries |
23 | Requires: %{name} = %{version} | |
5249f883 | 24 | |
25 | %description devel | |
b1002eee | 26 | SDL - Header files. |
27 | ||
28 | %package static | |
b1002eee | 29 | Summary: SDL - static libraries |
c1a764ca | 30 | Group: X11/Libraries |
31 | Requires: %{name} = %{version} | |
b1002eee | 32 | |
33 | %description static | |
34 | SDL - static libraries. | |
5249f883 | 35 | |
5249f883 | 36 | %prep |
5249f883 | 37 | %setup -q |
b1002eee | 38 | %build |
8ae8ff19 | 39 | LDFLAGS="-s"; export LDFLAGS |
40 | %configure \ | |
41 | --enable-nasm \ | |
42 | --enable-pthreads \ | |
43 | --with-x \ | |
44 | --enable-video-x11-dga \ | |
45 | --enable-video-x11-mtrr \ | |
46 | --enable-esd \ | |
47 | --disable-video-svga | |
cee13441 | 48 | |
5249f883 | 49 | %install |
cee13441 | 50 | rm -rf $RPM_BUILD_ROOT |
c1a764ca | 51 | |
8ae8ff19 | 52 | make install DESTDIR=$RPM_BUILD_ROOT |
c1a764ca | 53 | |
54 | strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.* | |
5249f883 | 55 | |
28126eee | 56 | gzip -9nf BUGS README WhatsNew |
8ae8ff19 | 57 | |
cee13441 | 58 | %post -p /sbin/ldconfig |
59 | %postun -p /sbin/ldconfig | |
60 | ||
5249f883 | 61 | %clean |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
5249f883 | 64 | %files |
cee13441 | 65 | %defattr(644,root,root,755) |
c1a764ca | 66 | %attr(755,root,root) %{_libdir}/lib*.so.*.* |
5249f883 | 67 | |
68 | %files devel | |
cee13441 | 69 | %defattr(644,root,root,755) |
6b8cc907 | 70 | %doc *gz docs.html docs |
8ae8ff19 | 71 | %attr(755,root,root) %{_bindir}/sdl-config |
c1a764ca | 72 | %attr(755,root,root) %{_libdir}/lib*.so |
8ae8ff19 | 73 | %attr(755,root,root) %{_libdir}/lib*.la |
3975d0d9 | 74 | %{_libdir}/libSDLmain.a |
9dac0b07 | 75 | %{_includedir}/SDL |
8ae8ff19 | 76 | %{_datadir}/aclocal/* |
5249f883 | 77 | |
cee13441 | 78 | %files static |
8ae8ff19 | 79 | %attr(644,root,root) %{_libdir}/lib*.a |