a68b9e
Summary:	Library for reading and writing sound files
a68b9e
Name:		libsndfile
a68b9e
Version:	1.0.25
a68b9e
Release:	10%{?dist}
a68b9e
License:	LGPLv2+ and GPLv2+ and BSD
a68b9e
Group:		System Environment/Libraries
a68b9e
URL:		http://www.mega-nerd.com/libsndfile/
a68b9e
Source0:	http://www.mega-nerd.com/libsndfile/files/libsndfile-%{version}.tar.gz
a68b9e
Patch0:		%{name}-1.0.25-system-gsm.patch
a68b9e
BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
a68b9e
a68b9e
BuildRequires:	alsa-lib-devel
a68b9e
BuildRequires:	flac-devel
a68b9e
BuildRequires:	libogg-devel
a68b9e
BuildRequires:	libvorbis-devel
a68b9e
BuildRequires:	pkgconfig
a68b9e
BuildRequires:	sqlite-devel
a68b9e
BuildRequires:	gsm-devel
a68b9e
BuildRequires:	libtool
a68b9e
a68b9e
a68b9e
%description
a68b9e
libsndfile is a C library for reading and writing sound files such as
a68b9e
AIFF, AU, WAV, and others through one standard interface. It can
a68b9e
currently read/write 8, 16, 24 and 32-bit PCM files as well as 32 and
a68b9e
64-bit floating point WAV files and a number of compressed formats. It
a68b9e
compiles and runs on *nix, MacOS, and Win32.
a68b9e
a68b9e
a68b9e
%package devel
a68b9e
Summary:	Development files for libsndfile
a68b9e
Group:		Development/Libraries
a68b9e
Requires:	%{name}%{?_isa} = %{version}-%{release} pkgconfig
a68b9e
a68b9e
a68b9e
%description devel
a68b9e
libsndfile is a C library for reading and writing sound files such as
a68b9e
AIFF, AU, WAV, and others through one standard interface.
a68b9e
This package contains files needed to develop with libsndfile.
a68b9e
a68b9e
a68b9e
%package utils
a68b9e
Summary:	Command Line Utilities for libsndfile
a68b9e
Group:		Applications/Multimedia
a68b9e
Requires:	%{name} = %{version}-%{release}
a68b9e
Obsoletes:	libsndfile < 1.0.20-4
a68b9e
a68b9e
a68b9e
%description utils
a68b9e
libsndfile is a C library for reading and writing sound files such as
a68b9e
AIFF, AU, WAV, and others through one standard interface.
a68b9e
This package contains command line utilities for libsndfile.
a68b9e
a68b9e
a68b9e
%prep
a68b9e
%setup -q
a68b9e
%patch0 -p1
a68b9e
rm -r src/GSM610 ; autoreconf -I M4 -fiv # for system-gsm patch
a68b9e
#also for aarch64 support which requires autotools 2.69+
a68b9e
a68b9e
a68b9e
%build
a68b9e
%configure \
a68b9e
	--disable-dependency-tracking \
a68b9e
	--enable-sqlite \
a68b9e
	--enable-alsa \
a68b9e
	--enable-largefile \
a68b9e
	--disable-static
a68b9e
a68b9e
# Get rid of rpath
a68b9e
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
a68b9e
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
a68b9e
a68b9e
make %{?_smp_mflags}
a68b9e
a68b9e
a68b9e
%install
a68b9e
rm -rf $RPM_BUILD_ROOT __docs
a68b9e
make install DESTDIR=$RPM_BUILD_ROOT
a68b9e
cp -pR $RPM_BUILD_ROOT%{_docdir}/libsndfile1-dev/html __docs
a68b9e
rm -rf $RPM_BUILD_ROOT%{_docdir}/libsndfile1-dev
a68b9e
a68b9e
# fix multilib issues
a68b9e
%if %{__isa_bits} == 64
a68b9e
%define wordsize 64
a68b9e
%else
a68b9e
%define wordsize 32
a68b9e
%endif
a68b9e
a68b9e
mv %{buildroot}%{_includedir}/sndfile.h \
a68b9e
   %{buildroot}%{_includedir}/sndfile-%{wordsize}.h
a68b9e
a68b9e
cat > %{buildroot}%{_includedir}/sndfile.h <
a68b9e
#include <bits/wordsize.h>
a68b9e
a68b9e
#if __WORDSIZE == 32
a68b9e
# include "sndfile-32.h"
a68b9e
#elif __WORDSIZE == 64
a68b9e
# include "sndfile-64.h"
a68b9e
#else
a68b9e
# error "unexpected value for __WORDSIZE macro"
a68b9e
#endif
a68b9e
EOF
a68b9e
a68b9e
%if 0%{?rhel} != 0
a68b9e
rm -f %{buildroot}%{_bindir}/sndfile-jackplay
a68b9e
%endif
a68b9e
a68b9e
a68b9e
%check
a68b9e
LD_LIBRARY_PATH=$PWD/src/.libs make check
a68b9e
a68b9e
a68b9e
%clean
a68b9e
rm -rf $RPM_BUILD_ROOT
a68b9e
a68b9e
a68b9e
%post -p /sbin/ldconfig
a68b9e
a68b9e
%postun -p /sbin/ldconfig
a68b9e
a68b9e
a68b9e
%files
a68b9e
%defattr(-,root,root,-)
a68b9e
%doc COPYING AUTHORS README NEWS
a68b9e
%{_libdir}/%{name}.so.*
a68b9e
a68b9e
%files utils
a68b9e
%defattr(-,root,root,-)
a68b9e
%{_bindir}/sndfile-cmp
a68b9e
%{_bindir}/sndfile-concat
a68b9e
%{_bindir}/sndfile-convert
a68b9e
%{_bindir}/sndfile-deinterleave
a68b9e
%{_bindir}/sndfile-info
a68b9e
%{_bindir}/sndfile-interleave
a68b9e
%{_bindir}/sndfile-metadata-get
a68b9e
%{_bindir}/sndfile-metadata-set
a68b9e
%{_bindir}/sndfile-play
a68b9e
%{_bindir}/sndfile-regtest
a68b9e
%{_bindir}/sndfile-salvage
a68b9e
%{_mandir}/man1/sndfile-cmp.1*
a68b9e
%{_mandir}/man1/sndfile-concat.1*
a68b9e
%{_mandir}/man1/sndfile-convert.1*
a68b9e
%{_mandir}/man1/sndfile-deinterleave.1*
a68b9e
%{_mandir}/man1/sndfile-info.1*
a68b9e
%{_mandir}/man1/sndfile-interleave.1*
a68b9e
%{_mandir}/man1/sndfile-metadata-get.1*
a68b9e
%{_mandir}/man1/sndfile-metadata-set.1*
a68b9e
%{_mandir}/man1/sndfile-play.1*
a68b9e
a68b9e
%files devel
a68b9e
%defattr(-,root,root,-)
a68b9e
%doc __docs/*
a68b9e
%doc ChangeLog
a68b9e
%exclude %{_libdir}/%{name}.la
a68b9e
%{_includedir}/sndfile.h
a68b9e
%{_includedir}/sndfile.hh
a68b9e
%{_includedir}/sndfile-%{wordsize}.h
a68b9e
%{_libdir}/%{name}.so
a68b9e
%{_libdir}/pkgconfig/sndfile.pc
a68b9e
a68b9e
a68b9e
%changelog
a68b9e
* Sat Aug  2 2014 Peter Robinson <pbrobinson@redhat.com> 1.0.25-10
a68b9e
- Generic 32/64 bit platform detection - fix ppc64le build (#1126140)
a68b9e
a68b9e
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.0.25-9
a68b9e
- Mass rebuild 2014-01-24
a68b9e
a68b9e
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.0.25-8
a68b9e
- Mass rebuild 2013-12-27
a68b9e
a68b9e
* Mon Jun 03 2013 Michal Hlavinka <mhlavink@redhat.com> - 1.0.25-7
a68b9e
- fix support for aarch64, another part (#969831)
a68b9e
a68b9e
* Wed Mar 27 2013 Michal Hlavinka <mhlavink@redhat.com> - 1.0.25-6
a68b9e
- fix support for aarch64 (#925887)
a68b9e
a68b9e
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.25-5
a68b9e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
a68b9e
a68b9e
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.25-4
a68b9e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a68b9e
a68b9e
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.25-3
a68b9e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
a68b9e
a68b9e
* Sat Nov 12 2011 Ville Skyttä <ville.skytta@iki.fi> - 1.0.25-2
a68b9e
- Patch to use system libgsm instead of a bundled copy.
a68b9e
- Make main package dep in -devel ISA qualified.
a68b9e
- Drop -octave Provides (not actually built with octave > 3.0).
a68b9e
- Don't build throwaway static lib.
a68b9e
- Run test suite during build.
a68b9e
a68b9e
* Thu Jul 14 2011 Michal Hlavinka <mhlavink@redhat.com> - 1.0.25-1
a68b9e
- Update to 1.0.25
a68b9e
- fixes integer overflow by processing certain PAF audio files (#721240)
a68b9e
a68b9e
* Sun Mar 27 2011 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 1.0.24-1
a68b9e
- Update to 1.0.24
a68b9e
a68b9e
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.23-2
a68b9e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
a68b9e
a68b9e
* Sat Oct 16 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 1.0.23-1
a68b9e
- Update to 10.0.23
a68b9e
a68b9e
* Tue Oct 05 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 1.0.22-1
a68b9e
- Update to 10.0.22
a68b9e
a68b9e
* Tue May 11 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 1.0.21-1
a68b9e
- Update to 10.0.21
a68b9e
- Do not include the static library in the package (RHBZ#556074)
a68b9e
- Remove BR on jack since sndfile-jackplay is not provided anymore
a68b9e
a68b9e
* Mon Feb  1 2010 Stepan Kasal <skasal@redhat.com> - 1.0.20-5
a68b9e
- Do not build against Jack on RHEL
a68b9e
- Fix the Source0: URL
a68b9e
- Fix the licence tag
a68b9e
a68b9e
* Sat Nov 14 2009 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 1.0.20-4
a68b9e
- Split utils into a subpackage
a68b9e
a68b9e
* Sat Nov 14 2009 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 1.0.20-3
a68b9e
- Add FLAC/Ogg/Vorbis support (BR: libvorbis-devel)
a68b9e
- Make build verbose
a68b9e
- Remove rpath
a68b9e
- Fix ChangeLog encoding
a68b9e
- Move the big Changelog to the devel package
a68b9e
a68b9e
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.20-2
a68b9e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
a68b9e
a68b9e
* Sat Jun 06 2009 Lennart Poettering <lpoetter@redhat.com> - 1.0.20-1
a68b9e
- Updated to 1.0.20
a68b9e
a68b9e
* Tue Mar 03 2009 Robert Scheck <robert@fedoraproject.org> - 1.0.17-8
a68b9e
- Rebuilt against libtool 2.2
a68b9e
a68b9e
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.17-7
a68b9e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
a68b9e
a68b9e
* Thu Oct 25 2008 Andreas Thienemann <andreas@bawue.net> - 1.0.17-6
a68b9e
- Removed spurious #endif in the libsndfile.h wrapper. Thx to Edward
a68b9e
  Sheldrake for finding it. Fixes #468508.
a68b9e
- Fix build for autoconf-2.63
a68b9e
a68b9e
* Thu Oct 23 2008 Andreas Thienemann <andreas@bawue.net> - 1.0.17-5
a68b9e
- Fixed multilib conflict. #342401
a68b9e
- Made flac support actually work correctly.
a68b9e
a68b9e
* Thu Aug  7 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.0.17-4
a68b9e
- fix license tag
a68b9e
a68b9e
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.0.17-3
a68b9e
- Autorebuild for GCC 4.3
a68b9e
a68b9e
* Thu Sep 20 2007 Andreas Thienemann <andreas@bawue.net> - 1.0.17-2
a68b9e
- Adding FLAC support to libsndfile courtesy of gentoo, #237575
a68b9e
- Fixing CVE-2007-4974. Thanks to the gentoo people for the patch, #296221
a68b9e
a68b9e
* Fri Sep 08 2006 Andreas Thienemann <andreas@bawue.net> - 1.0.17-1
a68b9e
- Updated to 1.0.17
a68b9e
a68b9e
* Sun Apr 30 2006 Andreas Thienemann <andreas@bawue.net> - 1.0.16-1
a68b9e
- Updated to 1.0.16
a68b9e
a68b9e
* Thu Mar 30 2006 Andreas Thienemann <andreas@bawue.net> - 1.0.15-1
a68b9e
- Updated to 1.0.15
a68b9e
a68b9e
* Thu Mar 16 2006 Dams <anvil[AT]livna.org> - 1.0.14-1.fc5
a68b9e
- Updated to 1.0.14
a68b9e
- Dropped patch0
a68b9e
a68b9e
* Thu May 12 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 1.0.11-3
a68b9e
- rebuilt
a68b9e
a68b9e
* Sat Mar  5 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 1.0.11-2
a68b9e
- Fix format string bug (#149863).
a68b9e
- Drop explicit Epoch 0.
a68b9e
a68b9e
* Sat Dec  4 2004 Ville Skyttä <ville.skytta@iki.fi> - 0:1.0.11-0.fdr.1
a68b9e
- Update to 1.0.11.
a68b9e
a68b9e
* Wed Oct 13 2004 Ville Skyttä <ville.skytta@iki.fi> - 0:1.0.10-0.fdr.1
a68b9e
- Update to 1.0.10, update URLs, include ALSA support.
a68b9e
- Disable dependency tracking to speed up the build.
a68b9e
- Add missing ldconfig invocations.
a68b9e
- Make -devel require pkgconfig.
a68b9e
- Include developer docs in -devel.
a68b9e
- Provide -octave in main package, own more related dirs.
a68b9e
- Bring specfile up to date with current spec templates.
a68b9e
a68b9e
* Sat Apr 12 2003 Dams <anvil[AT]livna.org>
a68b9e
- Initial build.