--- /dev/null
+--- libsndfile-1.0.1/src/G72x/Makefile.am.orig Mon Aug 5 21:38:39 2002
++++ libsndfile-1.0.1/src/G72x/Makefile.am Sat Sep 14 15:31:19 2002
+@@ -12,8 +12,8 @@
+
+ libg72x_la_SOURCES = $(CFILES) $(noinst_HEADERS)
+
+-g72x_test_SOURCES = g72x_test.c $(CFILES)
+-g72x_test_LDADD = -lm
++g72x_test_SOURCES = g72x_test.c
++g72x_test_LDADD = -lm libg72x.la
+
+ check: g72x_test
+ ./g72x_test all
Vendor: Erik de Castro Lopo <erikd@zip.com.au>
Group: Development/Libraries
Source0: http://www.zip.com.au/~erikd/libsndfile/%{name}-%{version}.tar.gz
-Patch0: %{name}-autoconf.patch
+Patch0: %{name}-amfix.patch
+URL: http://www.zip.com.au/~erikd/libsndfile/
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
-URL: http://www.zip.com.au/~erikd/libsndfile/
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%prep
%setup -q
+%patch -p1
%build
%{__libtoolize}
%{__make} install DESTDIR=$RPM_BUILD_ROOT
-gzip -9nf NEWS TODO
-
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc *.gz doc/*.html doc/*.jpg
+%doc NEWS TODO
%attr(755,root,root) %{_libdir}/lib*.so.*.*
%attr(744,root,root) %{_bindir}/*
%{_mandir}/man1/*
%files devel
%defattr(644,root,root,755)
+%doc doc/*.html doc/*.jpg
%attr(755,root,root) %{_libdir}/lib*.so
%attr(755,root,root) %{_libdir}/lib*.la
%{_includedir}/*
+%{_pkgconfigdir}/*.pc
%files static
%defattr(644,root,root,755)