[xiph-cvs] cvs commit: vorbis libvorbis.spec

Jack Moffitt jack at xiph.org
Sun Oct 7 12:36:49 PDT 2001



jack        01/10/07 12:36:48

  Modified:    .        libvorbis.spec
  Log:
  Added configurable prefixes to libvorbis.spec.
  
  Thanks to Miles Egan <miles at pixar.com> for this suggestion.

Revision  Changes    Path
1.13      +19 -15    vorbis/libvorbis.spec

Index: libvorbis.spec
===================================================================
RCS file: /usr/local/cvsroot/vorbis/libvorbis.spec,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- libvorbis.spec	2001/08/13 02:40:25	1.12
+++ libvorbis.spec	2001/10/07 19:36:48	1.13
@@ -13,6 +13,7 @@
 Source:		ftp://ftp.xiph.org/pub/ogg/vorbis/%{name}-%{version}.tar.gz
 BuildRoot:	%{_tmppath}/%{name}-root
 Requires:	libogg >= 1.0rc2
+Prefix:		%{_prefix}
 
 %description
 Ogg Vorbis is a fully open, non-proprietary, patent-and-royalty-free,
@@ -34,9 +35,9 @@
 
 %build
 if [ ! -f configure ]; then
-  CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=/usr
+  CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%{_prefix}
 else
-  CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr
+  CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix}
 fi
 make
 
@@ -49,9 +50,9 @@
 %doc COPYING
 %doc AUTHORS
 %doc README
-/usr/lib/libvorbis.so.*
-/usr/lib/libvorbisfile.so.*
-/usr/lib/libvorbisenc.so.*
+%{_libdir}/libvorbis.so.*
+%{_libdir}/libvorbisfile.so.*
+%{_libdir}/libvorbisenc.so.*
 
 %files devel
 %doc doc/*.html
@@ -59,16 +60,16 @@
 %doc doc/*.txt
 %doc doc/vorbisfile
 %doc doc/vorbisenc
-/usr/share/aclocal/vorbis.m4
-/usr/include/vorbis/codec.h
-/usr/include/vorbis/vorbisfile.h
-/usr/include/vorbis/vorbisenc.h
-/usr/lib/libvorbis.a
-/usr/lib/libvorbis.so
-/usr/lib/libvorbisfile.a
-/usr/lib/libvorbisfile.so
-/usr/lib/libvorbisenc.a
-/usr/lib/libvorbisenc.so
+%{_datadir}/aclocal/vorbis.m4
+%{_includedir}/vorbis/codec.h
+%{_includedir}/vorbis/vorbisfile.h
+%{_includedir}/vorbis/vorbisenc.h
+%{_libdir}/libvorbis.a
+%{_libdir}/libvorbis.so
+%{_libdir}/libvorbisfile.a
+%{_libdir}/libvorbisfile.so
+%{_libdir}/libvorbisenc.a
+%{_libdir}/libvorbisenc.so
 
 %clean 
 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
@@ -80,5 +81,8 @@
 /sbin/ldconfig
 
 %changelog
+* Sun Oct 07 2001 Jack Moffitt <jack at xiph.org>
+- Updated for configurable prefixes
+
 * Sat Oct 21 2000 Jack Moffitt <jack at icecast.org>
 - initial spec file created

--- >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