[xiph-cvs] cvs commit: ao libao.spec

Peter Jones pjones at xiph.org
Wed Jan 2 00:41:26 PST 2002



pjones      02/01/02 00:41:26

  Modified:    .        libao.spec
  Log:
  merge RH and Xiph packages

Revision  Changes    Path
1.17      +23 -21    ao/libao.spec

Index: libao.spec
===================================================================
RCS file: /usr/local/cvsroot/ao/libao.spec,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- libao.spec	2001/12/19 06:35:16	1.16
+++ libao.spec	2002/01/02 08:41:25	1.17
@@ -1,20 +1,15 @@
-%define name		libao
-%define version		0.8.2
-%define release 	1
-%define pluginver 	2
-
 Summary:	Cross Platform Audio Output Library
-Name:		%{name}
-Version:	%{version}
-Release:	%{release}
+Name:		libao
+Version:	0.8.2
+Release:	2
 Group:		Libraries/Multimedia
 Copyright:	GPL
 URL:		http://www.xiph.org/
 Vendor:		Xiphophorus <team at xiph.org>
-Source:		ftp://ftp.xiph.org/pub/ao/%{name}-%{version}.tar.gz
-BuildRoot:	%{_tmppath}/%{name}-root
+Source:		http://www.xiph.org/ogg/vorbis/download/%{name}-%{version}.tar.gz
+BuildRoot:	%{_tmppath}/%{name}-%{version}-root
+BuildPrereq:	esound-devel >= 0.2.8
 Requires:	esound >= 0.2.8
-Prefix:		%{_prefix}
 
 %description
 Libao is a cross platform audio output library.  It currently supports
@@ -23,6 +18,7 @@
 %package devel
 Summary: Cross Platform Audio Output Library Development
 Group: Development/Libraries
+Requires: libao = %{version}
 
 %description devel
 The libao-devel package contains the header files and documentation
@@ -30,13 +26,16 @@
 
 %prep
 %setup -q -n %{name}-%{version}
-
-%build
 if [ ! -f configure ]; then
-  CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%{_prefix}
-else
-  CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix}
+  aclocal
+  libtoolize --automake
+  automake --add-missing
+  autoconf 
 fi
+perl -p -i -e "s/-O20 -ffast-math/$RPM_OPT_FLAGS/" configure
+
+%build
+%configure
 make
 
 %install
@@ -50,15 +49,13 @@
 %doc COPYING
 %doc README
 %{_libdir}/libao.so.*
-%{_libdir}/ao/plugins-%{pluginver}/*.so
+%{_libdir}/ao
 
 %files devel
 %doc doc/*.html
 %doc doc/*.css
 %doc doc/ao_example.c
-%{_includedir}/ao/ao.h
-%{_includedir}/ao/os_types.h
-%{_includedir}/ao/plugin.h
+%{_includedir}/ao
 %{_libdir}/libao.so
 %{_datadir}/aclocal/ao.m4
 
@@ -69,9 +66,14 @@
 /sbin/ldconfig
 
 %postun
-/sbin/ldconfig
+if [ "$1" -ge "1" ]; then
+  /sbin/ldconfig
+fi
 
 %changelog
+* Wed Jan  2 2002 Peter Jones <pjones at redhat.com>
+- merge RH and Xiphophorous packages
+
 * Tue Dec 18 2001 Jack Moffitt <jack at xiph.org>
 - Update for 0.8.2 release.
 

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list