+++ /dev/null
---- libsndfile-1.0.25/configure.ac.orig 2011-07-13 10:59:57.000000000 +0200
-+++ libsndfile-1.0.25/configure.ac 2015-03-06 17:18:22.620080669 +0100
-@@ -335,7 +335,7 @@
- enable_external_libs=yes
-
- EXTERNAL_CFLAGS="$FLAC_CFLAGS $OGG_CFLAGS $VORBISENC_CFLAGS $SPEEX_CFLAGS"
-- EXTERNAL_LIBS="$FLAC_LIBS $VORBISENC_LIBS $SPEEX_LIBS"
-+ EXTERNAL_LIBS="$FLAC_LIBS $VORBISENC_LIBS $VORBIS_LIBS $SPEEX_LIBS $OGG_LIBS"
- else
- echo
- AC_MSG_WARN([[*** One or more of the external libraries (ie libflac, libogg and]])
Summary: C library for reading and writing files containing sampled sound
Summary(pl.UTF-8): Biblioteka obsługi plików dźwiękowych
Name: libsndfile
-Version: 1.0.25
-Release: 11
+Version: 1.0.26
+Release: 1
License: LGPL v2.1+
Group: Libraries
Source0: http://www.mega-nerd.com/libsndfile/files/%{name}-%{version}.tar.gz
-# Source0-md5: e2b7bb637e01022c7d20f95f9c3990a2
+# Source0-md5: ec810a0c60c08772a8a5552704b63393
Patch0: octave32.patch
-Patch1: %{name}-link.patch
URL: http://www.mega-nerd.com/libsndfile/
BuildRequires: alsa-lib-devel
BuildRequires: autoconf >= 2.57
BuildRequires: automake
-BuildRequires: flac-devel >= 1.2.1
+BuildRequires: flac-devel >= 1.3.1
BuildRequires: gcc-fortran
BuildRequires: libogg-devel >= 2:1.1.3
%{?with_tests:BuildRequires: libstdc++-devel}
BuildRequires: libtool
BuildRequires: libvorbis-devel >= 1:1.2.3
-%{?with_octave:BuildRequires: octave-devel}
+%{?with_octave:BuildRequires: octave-devel >= 2:3}
BuildRequires: pkgconfig
BuildRequires: sed >= 4.0
%{?with_regtest:BuildRequires: sqlite3-devel >= 3.2}
-Requires: flac >= 1.2.1
+Requires: flac >= 1.3.1
Requires: libogg >= 2:1.1.3
Requires: libvorbis >= 1:1.2.3
Obsoletes: libsndfile1
Summary(pl.UTF-8): Pliki nagłówkowe oraz dokumentacja do libsndfile
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
-Requires: flac-devel >= 1.2.1
+Requires: flac-devel >= 1.3.1
Requires: libogg-devel >= 2:1.1.3
Requires: libvorbis-devel >= 1:1.2.3
Obsoletes: libsndfile1-devel
Summary(pl.UTF-8): Moduł sndfile dla Octave
Group: Applications/Math
Requires: %{name} = %{version}-%{release}
-Requires: octave
+Requires: octave >= 2:3
Obsoletes: libsndfile-octave
%description -n octave-sndfile
%prep
%setup -q
%patch0 -p1
-%patch1 -p1
%if %{without tests}
%{__sed} -i 's, tests$,,' Makefile.am
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/libsndfile1-dev
+# packaged as %doc
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/libsndfile
%clean
rm -rf $RPM_BUILD_ROOT
---- libsndfile-1.0.20/M4/octave.m4.orig 2009-10-25 15:51:00.461732576 +0100
-+++ libsndfile-1.0.20/M4/octave.m4 2009-10-25 15:51:32.459533439 +0100
+--- libsndfile-1.0.26/M4/octave.m4.orig 2015-11-25 21:57:25.675180371 +0100
++++ libsndfile-1.0.26/M4/octave.m4 2015-11-26 15:46:34.252488392 +0100
@@ -119,7 +119,7 @@
2.*)
AC_MSG_WARN([Octave version 2.X is not supported.])
;;
-- 3.0.*)
+- 3.*)
+ 3.*|4.*)
OCTAVE_DEST_ODIR=`$OCTAVE_CONFIG --oct-site-dir | sed 's%^/usr%${prefix}%'`
OCTAVE_DEST_MDIR=`$OCTAVE_CONFIG --m-site-dir | sed 's%^/usr%${prefix}%'`