[xiph-cvs] cvs commit: ogg libogg.spec

Jack Moffitt jack at xiph.org
Sun Oct 7 12:29:48 PDT 2001



jack        01/10/07 12:29:48

  Modified:    .        libogg.spec
  Log:
  Updated spec file to support configurable prefixes.
  
  Thanks to Miles Egan <miles at pixar.com> for this patch.

Revision  Changes    Path
1.13      +13 -9     ogg/libogg.spec

Index: libogg.spec
===================================================================
RCS file: /usr/local/cvsroot/ogg/libogg.spec,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- libogg.spec	2001/08/12 18:17:32	1.12
+++ libogg.spec	2001/10/07 19:29:48	1.13
@@ -12,6 +12,7 @@
 Vendor:		Xiphophorus <team at xiph.org>
 Source:		ftp://ftp.xiph.org/pub/ogg/%{name}-%{version}.tar.gz
 BuildRoot:	%{_tmppath}/%{name}-root
+Prefix:		%{_prefix}
 
 %description
 Libogg is a library for manipulating ogg bitstreams.  It handles
@@ -31,9 +32,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
 
@@ -47,7 +48,7 @@
 %doc CHANGES
 %doc COPYING
 %doc README
-/usr/lib/libogg.so.*
+%{_libdir}/libogg.so.*
 
 %files devel
 %doc doc/index.html
@@ -57,12 +58,12 @@
 %doc doc/white-xifish.png
 %doc doc/stream.png
 %doc doc/ogg
-/usr/include/ogg/ogg.h
-/usr/include/ogg/os_types.h
-/usr/include/ogg/config_types.h
-/usr/lib/libogg.a
-/usr/lib/libogg.so
-/usr/share/aclocal/ogg.m4
+%{_includedir}/ogg/ogg.h
+%{_includedir}/ogg/os_types.h
+%{_includedir}/ogg/config_types.h
+%{_libdir}/libogg.a
+%{_libdir}/libogg.so
+%{_datadir}/aclocal/ogg.m4
 
 %clean 
 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
@@ -74,5 +75,8 @@
 /sbin/ldconfig
 
 %changelog
+* Sun Oct 07 2001 Jack Moffitt <jack at xiph.org>
+- add support for configurable prefixes
+
 * Sat Sep 02 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