AC_HELP_STRING([--disable-alsa], [disable use of ALSA]))
AC_ARG_ENABLE(external-libs,
- AC_HELP_STRING([--disable-external-libs], [disable use of FLAC, Ogg and Vorbis [[default=no]]]))
+ AC_HELP_STRING([--disable-external-libs], [disable use of Ogg and Vorbis [[default=no]]]))
AC_ARG_ENABLE(octave,
AC_HELP_STRING([--enable-octave], [disable building of GNU Octave module]))
fi
#====================================================================================
-# Check for Ogg, Vorbis and FLAC.
+# Check for Ogg, Vorbis.
HAVE_EXTERNAL_LIBS=0
EXTERNAL_CFLAGS=""
if test -n "$PKG_CONFIG" ; then
if test x$enable_external_libs = xno ; then
- AC_MSG_WARN([[*** External libs (FLAC, Ogg, Vorbis) disabled. ***]])
+ AC_MSG_WARN([[*** External libs (Ogg, Vorbis) disabled. ***]])
else
- PKG_CHECK_MOD_VERSION(FLAC, flac >= 1.2.1, ac_cv_flac=yes, ac_cv_flac=no)
-
- # Make sure the FLAC_CFLAGS value is sane.
- FLAC_CFLAGS=`echo $FLAC_CLFAGS | $SED "s/FLAC$//"`
-
PKG_CHECK_MOD_VERSION(OGG, ogg >= 1.1.3, ac_cv_ogg=yes, ac_cv_ogg=no)
if test x$enable_experimental = xyes ; then
enable_external_libs=yes
fi
- if test x$ac_cv_flac$ac_cv_ogg$ac_cv_vorbis$ac_cv_vorbisenc = "xyesyesyesyes" ; then
+ if test x$ac_cv_ogg$ac_cv_vorbis$ac_cv_vorbisenc = "xyesyesyes" ; then
HAVE_EXTERNAL_LIBS=1
enable_external_libs=yes
- EXTERNAL_CFLAGS="$FLAC_CFLAGS $OGG_CFLAGS $VORBISENC_CFLAGS $SPEEX_CFLAGS"
- EXTERNAL_LIBS="$FLAC_LIBS $VORBISENC_LIBS $SPEEX_LIBS"
+ EXTERNAL_CFLAGS="$OGG_CFLAGS $VORBISENC_CFLAGS $SPEEX_CFLAGS"
+ EXTERNAL_LIBS="$VORBISENC_LIBS $SPEEX_LIBS"
else
echo
- AC_MSG_WARN([[*** One or more of the external libraries (ie libflac, libogg and]])
+ AC_MSG_WARN([[*** One or more of the external libraries (ie libogg and]])
AC_MSG_WARN([[*** libvorbis) is either missing (possibly only the development]])
AC_MSG_WARN([[*** headers) or is of an unsupported version.]])
AC_MSG_WARN([[***]])
fi
fi
-AC_DEFINE_UNQUOTED([HAVE_EXTERNAL_LIBS], $HAVE_EXTERNAL_LIBS, [Will be set to 1 if flac, ogg and vorbis are available.])
+AC_DEFINE_UNQUOTED([HAVE_EXTERNAL_LIBS], $HAVE_EXTERNAL_LIBS, [Will be set to 1 if ogg and vorbis are available.])
#====================================================================================
# Check for libsqlite3 (only used in regtest).
Experimental code : ................... ${enable_experimental:-no}
Using ALSA in example programs : ...... ${enable_alsa:-no}
- External FLAC/Ogg/Vorbis : ............ ${enable_external_libs:-no}
+ External Ogg/Vorbis : ............ ${enable_external_libs:-no}
])
if test -z "$PKG_CONFIG" ; then
echo " *****************************************************************"
echo " *** The pkg-config program is missing. ***"
- echo " *** External FLAC/Ogg/Vorbis libs cannot be found without it. ***"
+ echo " *** External Ogg/Vorbis libs cannot be found without it. ***"
echo " *** http://pkg-config.freedesktop.org/wiki/ ***"
echo " *****************************************************************"
echo
License: LGPL-2.1+
Summary: C library for reading and writing sound files
Group: Multimedia/Audio
-BuildRequires: pkgconfig(alsa)
BuildRequires: gcc-c++
BuildRequires: libtool
-BuildRequires: libvorbis-devel
BuildRequires: pkg-config
-BuildRequires: speex-devel
-BuildRequires: sqlite-devel
+BuildRequires: pkgconfig(ogg)
+BuildRequires: pkgconfig(vorbis)
Url: http://www.mega-nerd.com/libsndfile/
Source: libsndfile-%{version}.tar.gz
Source2: baselibs.conf
autoreconf --force --install
CFLAGS="%{optflags} %{warn_flags}"
export CFLAGS
-%configure --disable-silent-rules \
- --disable-static \
- --enable-sqlite \
- --with-pic \
- --enable-experimental
+%configure --disable-static \
+ --disable-dependency-tracking \
+ --disable-sqlite --disable-alsa
make %{?_smp_mflags}
%check
popd
%install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}/usr/share/license
+cp COPYING %{buildroot}/usr/share/license/%{name}
%make_install
# remove programs; built in another spec file
rm -rf %{buildroot}%{_bindir}
%postun -p /sbin/ldconfig
-%files
+%files
%manifest %{name}.manifest
%defattr(-, root, root)
%license COPYING
%{_libdir}/libsndfile.so.1*
+/usr/share/license/%{name}
%files devel
%manifest %{name}.manifest