]> git.pld-linux.org Git - packages/OpenAL.git/blobdiff - OpenAL.spec
- updated to 20040416
[packages/OpenAL.git] / OpenAL.spec
index 29a78ec67fac7a7d2fe175ea97172797aade88b3..21e55089bb32e89d28d04e7513b82a211228ccf1 100644 (file)
@@ -2,40 +2,43 @@
 # Conditional build:
 # _without_alsa                - without ALSA support
 # _without_doc         - don't build HTML documentation (from SGML source)
-# _with_mmx            - use MMX (won't run on non-MMX CPU)
+# _without_esd         - without esd support
+# _with_mmx            - use MMX (makes sense on i[56]86 with MMX; won't run on non-MMX CPU)
+#
+# TODO:
+# - remove zip BR?
 #
 %ifarch athlon
 %define                _with_mmx       1
 %endif
-%ifnarch i586 i686 athlon
-%define                _with_mmx       0
-%endif
+
 Summary:       Open Audio Library
 Summary(pl):   Otwarta Biblioteka D¼wiêku
 Name:          OpenAL
 Version:       0.0.6
-Release:       1
+%define        snap    20040416
+Release:       1.%{snap}.1
 License:       LGPL
 Group:         Libraries
-Vendor:                Loki Entertainment Software - http://www.lokigames.com/
-# This is tarball taken directly form Mandrake Cooker .src.rpm
-Source0:       %{name}-linuxonly-20010805.tar.bz2
-# Those patches came from Mandrake Cooker (only changed names)
+# from CVS :pserver:guest@opensource.creative.com:/usr/local/cvs-repository /openal
+# (without all Win and Mac stuff and demos)
+Source0:       %{name}-linuxonly-%{snap}.tar.bz2
+# Source0-md5: 4f42f20484858452bfc30caa8976415d
 Patch0:                %{name}-prefix.patch
-Patch1:                %{name}-build.patch
-Patch2:                %{name}-acfix.patch
-Patch3:                %{name}-info.patch
-URL:           http://www.openal.com/
+Patch1:                %{name}-info.patch
+URL:           http://www.openal.org/
 BuildRequires: SDL-devel
 %{!?_without_alsa:BuildRequires:       alsa-lib-devel}
 BuildRequires: autoconf
 BuildRequires: automake
 %{!?_without_doc:BuildRequires:        docbook-utils}
+%{!?_without_esd:BuildRequires:        esound-devel}
 %{!?_without_doc:BuildRequires:        gnome-doc-tools}
 BuildRequires: libvorbis-devel
 %{?_with_mmx:BuildRequires:    nasm}
 BuildRequires: smpeg-devel
 BuildRequires: texinfo
+BuildRequires: zip
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -48,7 +51,7 @@ supported by a number of hardware vendors and developers.
 
 %description -l pl
 OpenAL, otwarta biblioteka d¼wiêku, to po³±czony wysi³ek w celu
-stworzenia otwartego, niezale¿nego od producentów, miedzyplatformowego
+stworzenia otwartego, niezale¿nego od producentów, miêdzyplatformowego
 interfejsu projektowania aplikacji w czê¶ci obs³ugi d¼wiêku.
 Biblioteka adresowana jest do twórców aplikacji i u¿ytkowników,
 którzy wybieraj± przeno¶ne standardy, jak OpenGL, w grach i
@@ -78,20 +81,18 @@ Requires:   %{name}-devel = %{version}
 OpenAL static library.
 
 %description static -l pl
-Biblioteka OpenAL do statycznego linkowania.
+Biblioteka OpenAL do konsolidacji statycznej.
 
 %prep
-%setup -q -n tmp
+%setup -q -n openal
 %patch0 -p1
-%patch2 -p1
-%patch3 -p1
-cd openal
-%patch1 -p0
+%patch1 -p1
 
 echo 'AC_DEFUN([AC_HAS_MMX],[$%{?_with_mmx:1}%{!?_with_mmx:2}])' >> linux/acinclude.m4
 
 %build
-cd openal/linux
+cd linux
+cp /usr/share/automake/config.sub .
 %{__aclocal}
 %{__autoconf}
 %{__autoheader}
@@ -99,11 +100,12 @@ cd openal/linux
        %{!?debug:--enable-optimization} \
        %{?_with_mmx:--enable-arch-asm} \
        %{!?_without_alsa:--enable-alsa} \
+       %{!?_without_esd:--enable-esd} \
        --enable-sdl \
        --enable-vorbis \
        --enable-smpeg \
        --enable-capture \
-       --with-gcc=%{__cc}                          
+       --with-gcc=%{__cc}
 
 %{__make}
 
@@ -114,7 +116,7 @@ cd ../docs
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_infodir}
 
-cd openal/linux
+cd linux
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
@@ -134,16 +136,16 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc openal/linux/{CREDITS,ChangeLog,NOTES,TODO}
+%doc linux/{CREDITS,ChangeLog,NOTES,TODO}
 %attr(755,root,root) %{_libdir}/lib*.so.*.*
 
 %files devel
 %defattr(644,root,root,755)
-%doc openal/linux/doc/LOKI* %{!?_without_doc:openal/docs/oalspecs-full}
+%doc linux/doc/LOKI* %{!?_without_doc:docs/oalspecs-full}
 %attr(755,root,root) %{_libdir}/lib*.so
 %{_includedir}/AL
 %{_infodir}/openal.info*
 
 %files static
 %defattr(644,root,root,755)
-%attr(755,root,root)%{_libdir}/*.a
+%{_libdir}/*.a
This page took 0.129352 seconds and 4 git commands to generate.