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