]> git.pld-linux.org Git - packages/SDL.git/blame - SDL.spec
- updated to 1.0.3.
[packages/SDL.git] / SDL.spec
CommitLineData
cee13441 1Summary: SDL (Simple DirectMedia Layer) - Game/Multimedia Library
2Name: SDL
1b424fce 3Version: 1.0.3
cee13441 4Release: 1
1b424fce 5License: LGPL
cee13441 6Group: X11/Libraries
1b424fce 7Group(pl): X11/Biblioteki
3975d0d9 8Source: http://www.devolution.com/~slouken/SDL/release/%{name}-%{version}.tar.gz
9URL: http://www.devolution.com/~slouken/SDL/
00dd326a 10BuildRequires: XFree86-devel
6211bdd4 11BuildRequires: esound-devel
12BuildRequires: gtk+-devel >= 1.2.1
cee13441 13BuildRoot: /tmp/%{name}-%{version}-root
5249f883 14
1b424fce 15%define _prefix /usr/X11R6
16%define _mandir %{_prefix}/man
17
5249f883 18%description
cee13441 19SDL (Simple DirectMedia Layer) is a library that allows you portable, low
20level access to a video framebuffer, audio output, mouse, and keyboard. It
1b424fce 21can support both windowed and DGA modes of XFree86, and it is designed to
22be portable - applications linked with SDL can also be built on Win32 and
23BeOS.
cee13441 24
25%package devel
b1002eee 26Summary: SDL - Header files
c1a764ca 27Group: X11/Libraries
1b424fce 28Group(pl): X11/Biblioteki
c1a764ca 29Requires: %{name} = %{version}
5249f883 30
31%description devel
b1002eee 32SDL - Header files.
33
34%package static
b1002eee 35Summary: SDL - static libraries
c1a764ca 36Group: X11/Libraries
1b424fce 37Group(pl): X11/Biblioteki
c1a764ca 38Requires: %{name} = %{version}
b1002eee 39
40%description static
41SDL - static libraries.
5249f883 42
5249f883 43%prep
5249f883 44%setup -q
b1002eee 45%build
8ae8ff19 46LDFLAGS="-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 57rm -rf $RPM_BUILD_ROOT
c1a764ca 58
8ae8ff19 59make install DESTDIR=$RPM_BUILD_ROOT
c1a764ca 60
61strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*
5249f883 62
28126eee 63gzip -9nf BUGS README WhatsNew
8ae8ff19 64
cee13441 65%post -p /sbin/ldconfig
66%postun -p /sbin/ldconfig
67
5249f883 68%clean
69rm -rf $RPM_BUILD_ROOT
70
5249f883 71%files
cee13441 72%defattr(644,root,root,755)
c1a764ca 73%attr(755,root,root) %{_libdir}/lib*.so.*.*
5249f883 74
75%files devel
cee13441 76%defattr(644,root,root,755)
6b8cc907 77%doc *gz docs.html docs
8ae8ff19 78%attr(755,root,root) %{_bindir}/sdl-config
c1a764ca 79%attr(755,root,root) %{_libdir}/lib*.so
8ae8ff19 80%attr(755,root,root) %{_libdir}/lib*.la
3975d0d9 81%{_libdir}/libSDLmain.a
9dac0b07 82%{_includedir}/SDL
8ae8ff19 83%{_datadir}/aclocal/*
5249f883 84
cee13441 85%files static
1b424fce 86%defattr(644,root,root,755)
8ae8ff19 87%attr(644,root,root) %{_libdir}/lib*.a
This page took 0.05378 seconds and 4 git commands to generate.