X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=SDL.spec;fp=SDL.spec;h=e4a9653009e0c177a185f7d79de3196f6722ebc2;hb=ef907b8e76cd69a1e60694da9a6a325fca4058ee;hp=8ed4a8398a2cb3178183b628ea55756fe5178a15;hpb=fcaa1cba0ac7909974d81c97883e5ed5478236ba;p=packages%2FSDL.git diff --git a/SDL.spec b/SDL.spec index 8ed4a83..e4a9653 100644 --- a/SDL.spec +++ b/SDL.spec @@ -31,22 +31,23 @@ Patch3: %{name}-lpthread.patch Patch4: %{name}-ac25x.patch Patch5: %{name}-alsa9.patch.bz2 URL: http://www.libsdl.org/ +BuildRequires: OpenGL-devel +BuildRequires: XFree86-devel >= 4.0.2 +%{?_with_aalib:BuildRequires: aalib-devel} +%ifnarch sparc sparc64 +%{!?_without_alsa:BuildRequires: alsa-lib-devel} +%endif +%{!?_without_arts:BuildRequires: arts-devel} BuildRequires: autoconf BuildRequires: automake %{!?_without_esound:BuildRequires: esound-devel} -%{!?_without_arts:BuildRequires: arts-devel} -BuildRequires: XFree86-devel >= 4.0.2 -BuildRequires: OpenGL-devel -BuildRequires: perl-modules +%{?_with_ggi:BuildRequires: libggi-devel} +BuildRequires: libtool %ifarch %{ix86} BuildRequires: nasm %endif -%ifnarch sparc sparc64 -%{!?_without_alsa:BuildRequires: alsa-lib-devel} -%endif +BuildRequires: perl-modules %{?_with_svgalib:BuildRequires: svgalib-devel} -%{?_with_aalib:BuildRequires: aalib-devel} -%{?_with_ggi:BuildRequires: libggi-devel} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _prefix /usr/X11R6 @@ -81,12 +82,12 @@ Summary(uk): Summary(zh_CN): SDL (Simple DirectMedia Layer) ¿ª·¢¿â Group: X11/Development/Libraries Requires: %{name} = %{version} +Requires: XFree86-devel >= 4.0.2 %ifnarch sparc sparc64 %{!?_without_alsa:Requires: alsa-lib-devel} %endif -%{!?_without_esound:Requires: esound-devel} %{!?_without_arts:Requires: arts-devel} -Requires: XFree86-devel >= 4.0.2 +%{!?_without_esound:Requires: esound-devel} %description devel SDL - Header files. @@ -156,7 +157,7 @@ SDL - przyk %build rm -f missing %{__libtoolize} -aclocal +%{__aclocal} %{__autoconf} %{__automake} %configure \ @@ -196,12 +197,12 @@ install test/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} rm -rf docs/man3 docs/Makefile* docs/html/Makefile* -%post -p /sbin/ldconfig -%postun -p /sbin/ldconfig - %clean rm -rf $RPM_BUILD_ROOT +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + %files %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/lib*.so.*.*