]> git.pld-linux.org Git - packages/SDL.git/blobdiff - SDL.spec
- updated to 1.2.6 20030528 cvs snapshot
[packages/SDL.git] / SDL.spec
index 6a222ec740f7eeab70fbcc0637277139d901b723..d879fa8d13cf8bcdc5080906be61df04f5b9f548 100644 (file)
--- a/SDL.spec
+++ b/SDL.spec
@@ -1,16 +1,20 @@
 #
 # Conditional build:
-# _without_alsa - without ALSA support
-# _without_esound - without esound support
-# _without_arts - without arts support
-# _with_svga - with svgalib support
 # _with_aalib - with aalib support
 # _with_ggi - with GGI support
+# _with_nas - with NAS audio support
+# _with_svga - with svgalib support
+#
+# _without_alsa - without ALSA support
+# _without_arts - without arts support
+# _without_esound - without esound support
 #
 %ifarch        alpha
-%define _without_arts 1
+%define        _without_arts 1
 %endif
 
+%define                snap 20030528
+
 Summary:       SDL (Simple DirectMedia Layer) - Game/Multimedia Library
 Summary(es):   Simple DirectMedia Layer
 Summary(pl):   SDL (Simple DirectMedia Layer) - Biblioteka do gier/multimediów
@@ -19,11 +23,13 @@ Summary(ru):        Simple DirectMedia Layer
 Summary(uk):   Simple DirectMedia Layer
 Summary(zh_CN):        SDL (Simple DirectMedia Layer) Generic APIs - ÓÎÏ·/¶àýÌå¿â
 Name:          SDL
-Version:       1.2.5
-Release:       1
+Version:       1.2.6
+Release:       1.%{snap}.0
 License:       LGPL
 Group:         X11/Libraries
-Source0:       http://www.libsdl.org/release/%{name}-%{version}.tar.gz
+#Source0:      http://www.libsdl.org/release/%{name}-%{version}.tar.gz
+Source0:       http://www.libsdl.org/cvs/%{name}-1.2.tar.gz
+# Source0-md5: 8e5801a100367f515b186ff8469cdb0d
 Patch0:                %{name}-byteorder.patch
 Patch1:                %{name}-fixlibs.patch
 Patch2:                %{name}-amfix.patch
@@ -31,6 +37,7 @@ Patch3:               %{name}-lpthread.patch
 Patch4:                %{name}-ac25x.patch
 Patch5:                %{name}-no_rpath_in_sdl-config.patch
 Patch6:                %{name}-noobjc.patch
+Patch7:                %{name}-am17.patch
 URL:           http://www.libsdl.org/
 BuildRequires: OpenGL-devel
 BuildRequires: XFree86-devel >= 4.0.2
@@ -38,12 +45,13 @@ BuildRequires:      XFree86-devel >= 4.0.2
 %ifnarch sparc sparc64
 %{!?_without_alsa:BuildRequires:       alsa-lib-devel}
 %endif
-%{!?_without_arts:BuildRequires:       arts-devel}
+%{!?_without_arts:BuildRequires:       arts-devel >= 1.1}
 BuildRequires: autoconf
 BuildRequires: automake
 %{!?_without_esound:BuildRequires:     esound-devel}
 %{?_with_ggi:BuildRequires:    libggi-devel}
 BuildRequires: libtool
+%{?_with_nas:BuildRequires:    nas-devel}
 %ifarch %{ix86}
 BuildRequires: nasm
 %endif
@@ -51,9 +59,6 @@ BuildRequires:        perl-modules
 %{?_with_svgalib:BuildRequires:        svgalib-devel}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _prefix         /usr/X11R6
-%define                _mandir         %{_prefix}/man
-
 %description
 SDL (Simple DirectMedia Layer) is a library that allows you portable,
 low level access to a video framebuffer, audio output, mouse, and
@@ -63,10 +68,10 @@ be built on Win32 and BeOS.
 
 %description -l pl
 SDL (Simple DirectMedia Layer) jest bibliotek± udostêpniaj±c±
-przeno¶ny, niskopoziomowy dostep do bufora ramki video, wyj¶cia audio,
-myszy oraz klawiatury, Moze obs³ugiwaæ zarówno okienkowy tryb XFree86
+przeno¶ny, niskopoziomowy dostêp do bufora ramki video, wyj¶cia audio,
+myszy oraz klawiatury. Mo¿e obs³ugiwaæ zarówno okienkowy tryb XFree86
 jak i DGA. Konstruuj±c j± miano na uwadze przeno¶no¶æ: aplikacje
-konsolidowane z SDL mo¿na równie¿ budowac w systemach Win32 i BeOS.
+konsolidowane z SDL mo¿na równie¿ budowaæ w systemach Win32 i BeOS.
 
 %description -l pt_BR
 Esse é o Simple DirectMedia Layer, uma API genérica que dá acesso de
@@ -89,6 +94,7 @@ Requires:     XFree86-devel >= 4.0.2
 %endif
 %{!?_without_arts:Requires:    arts-devel}
 %{!?_without_esound:Requires:  esound-devel}
+%{?_with_nas:Requires: nas-devel}
 
 %description devel
 SDL - Header files.
@@ -147,7 +153,7 @@ SDL - example programs.
 SDL - przyk³adowe programy.
 
 %prep
-%setup -q
+%setup -q -n %{name}-1.2
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
@@ -155,13 +161,16 @@ SDL - przyk
 %patch4 -p1
 %patch5 -p1
 %patch6 -p1
+%patch7 -p1
 
 %build
-rm -f missing
+find . -type d -name CVS -print | xargs rm -rf {} \;
+rm -f missing libtool
 %{__libtoolize}
 %{__aclocal}
-%{__autoconf}
 %{__automake}
+%{__autoconf}
+SED=sed ; export SED
 %configure \
 %ifarch %{ix86}
        --enable-nasm \
@@ -173,24 +182,30 @@ rm -f missing
        --with-x \
        --enable-dga \
        --enable-video-dga \
+       --disable-video-directfb \
        --enable-video-x11-dgamouse \
        --enable-video-x11-vm \
        --enable-video-x11-xv \
        --enable-video-opengl \
        --enable-video-fbcon \
-       %{?_with_svga:--enable-video-svga} \
        %{?_with_aalib:--enable-video-aalib} \
        %{?_with_ggi:--enable-video-ggi} \
+       %{!?_with_nas:--disable-nas} \
+       %{?_with_svga:--enable-video-svga} \
 %ifnarch sparc sparc64
        %{!?_without_alsa:--enable-alsa} \
 %endif
        %{!?_without_esound:--enable-esd} \
-       %{!?_without_arts:--enable-arts}
+       %{!?_without_arts:--enable-arts} \
+       %{?_without_arts:--disable-arts}
+
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
+SED=sed ; export SED
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT \
        m4datadir=%{_aclocaldir}
@@ -214,7 +229,7 @@ rm -rf $RPM_BUILD_ROOT
 %doc BUGS CREDITS README TODO WhatsNew docs.html docs
 %attr(755,root,root) %{_bindir}/sdl-config
 %attr(755,root,root) %{_libdir}/lib*.so
-%attr(755,root,root) %{_libdir}/lib*.la
+%{_libdir}/lib*.la
 %{_libdir}/libSDLmain.a
 %{_includedir}/SDL
 %{_aclocaldir}/*
This page took 0.041214 seconds and 4 git commands to generate.