Skip to content
Snippets Groups Projects
Commit 3b0705a0 authored by Jack Moffitt's avatar Jack Moffitt
Browse files

Added configurable prefixes to libao.spec.

Thanks to Miles Egan <miles@pixar.com> for this suggestion.


git-svn-id: http://svn.xiph.org/trunk/ao@2122 0101bb08-14d6-0310-b084-bc0e0c8e3800
parent 7fa41f1f
No related branches found
No related tags found
No related merge requests found
...@@ -14,6 +14,7 @@ Vendor: Xiphophorus <team@xiph.org> ...@@ -14,6 +14,7 @@ Vendor: Xiphophorus <team@xiph.org>
Source: ftp://ftp.xiph.org/pub/ao/%{name}-%{version}.tar.gz Source: ftp://ftp.xiph.org/pub/ao/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-root BuildRoot: %{_tmppath}/%{name}-root
Requires: esound >= 0.2.8 Requires: esound >= 0.2.8
Prefix: %{_prefix}
%description %description
Libao is a cross platform audio output library. It currently supports Libao is a cross platform audio output library. It currently supports
...@@ -32,9 +33,9 @@ needed to develop applications with libao. ...@@ -32,9 +33,9 @@ needed to develop applications with libao.
%build %build
if [ ! -f configure ]; then if [ ! -f configure ]; then
CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=/usr CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%{_prefix}
else else
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix}
fi fi
make make
...@@ -48,18 +49,18 @@ make DESTDIR=$RPM_BUILD_ROOT install ...@@ -48,18 +49,18 @@ make DESTDIR=$RPM_BUILD_ROOT install
%doc CHANGES %doc CHANGES
%doc COPYING %doc COPYING
%doc README %doc README
/usr/lib/libao.so.* %{_libdir}/libao.so.*
/usr/lib/ao/plugins-%{pluginver}/*.so %{_libdir}/ao/plugins-%{pluginver}/*.so
%files devel %files devel
%doc doc/*.html %doc doc/*.html
%doc doc/*.css %doc doc/*.css
%doc doc/ao_example.c %doc doc/ao_example.c
/usr/include/ao/ao.h %{_includedir}/ao/ao.h
/usr/include/ao/os_types.h %{_includedir}/ao/os_types.h
/usr/include/ao/plugin.h %{_includedir}/ao/plugin.h
/usr/lib/libao.so %{_libdir}/libao.so
/usr/share/aclocal/ao.m4 %{_datadir}/aclocal/ao.m4
%clean %clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
...@@ -71,6 +72,9 @@ make DESTDIR=$RPM_BUILD_ROOT install ...@@ -71,6 +72,9 @@ make DESTDIR=$RPM_BUILD_ROOT install
/sbin/ldconfig /sbin/ldconfig
%changelog %changelog
* Sun Oct 07 2001 Jack Moffitt <jack@xiph.org>
- supports configurable prefixes
* Sun Oct 07 2001 Stan Seibert <indigo@aztec.asu.edu> * Sun Oct 07 2001 Stan Seibert <indigo@aztec.asu.edu>
- devel packages look for correct documentation files - devel packages look for correct documentation files
- added ao/plugin.h include file to devel package - added ao/plugin.h include file to devel package
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment