Group: System/Libraries
Source: %{name}-%{version}.tar.bz2
Source2: baselibs.conf
-Patch1: lib64.dif
-Patch2: m4.diff
BuildRequires: pkg-config
%description
%prep
%setup -q
-%patch2
-if [ "%{_lib}" == "lib64" ]; then
-%patch1
-fi
%build
# Fix optimization level
%install
-make DESTDIR=%{buildroot} docdir=%{_docdir}/%{name}-devel install
-# remove unneeded files
-rm -f %{buildroot}%{_libdir}/*.la
+%make_install
%post -p /sbin/ldconfig
%files
%defattr(0644,root,root,0755)
-%doc AUTHORS CHANGES COPYING README
+%doc COPYING
%{_libdir}/libogg.so.*
%files devel
+++ /dev/null
-Index: ogg.m4
-===================================================================
---- ogg.m4.orig
-+++ ogg.m4
-@@ -20,7 +20,7 @@ AC_ARG_ENABLE(oggtest,AC_HELP_STRING([--
- OGG_LIBS=""
- elif test "x$ogg_prefix" != "x" ; then
- OGG_LIBS="-L$ogg_prefix/lib"
-- elif test "x$prefix" != "xNONE" ; then
-+ elif test "x$prefix" != "xNONE" -a "x$prefix" != "x/usr"; then
- OGG_LIBS="-L$prefix/lib"
- fi
-
-@@ -34,7 +34,7 @@ AC_ARG_ENABLE(oggtest,AC_HELP_STRING([--
- OGG_CFLAGS=""
- elif test "x$ogg_prefix" != "x" ; then
- OGG_CFLAGS="-I$ogg_prefix/include"
-- elif test "x$prefix" != "xNONE"; then
-+ elif test "x$prefix" != "xNONE" -a "x$prefix" != "x/usr"; then
- OGG_CFLAGS="-I$prefix/include"
- fi
-
-@@ -62,7 +62,7 @@ dnl
- #include <string.h>
- #include <ogg/ogg.h>
-
--int main ()
-+int main (void)
- {
- system("touch conf.oggtest");
- return 0;