From 5ef1e65ce5bb77d6a918e7991bbe9c85fc8da55c Mon Sep 17 00:00:00 2001 From: CentOS Buildsys Date: Jun 10 2013 16:48:17 +0000 Subject: import libsndfile-1.0.25-7.el7.src.rpm --- diff --git a/.libsndfile.metadata b/.libsndfile.metadata new file mode 100644 index 0000000..c612574 --- /dev/null +++ b/.libsndfile.metadata @@ -0,0 +1 @@ +e95d9fca57f7ddace9f197071cbcfb92fa16748e SOURCES/libsndfile-1.0.25.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 0e7897f..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 - -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/libsndfile-1.0.25-system-gsm.patch b/SOURCES/libsndfile-1.0.25-system-gsm.patch new file mode 100644 index 0000000..f9dd9e2 --- /dev/null +++ b/SOURCES/libsndfile-1.0.25-system-gsm.patch @@ -0,0 +1,56 @@ +diff -up libsndfile-1.0.25/src/gsm610.c~ libsndfile-1.0.25/src/gsm610.c +--- libsndfile-1.0.25/src/gsm610.c~ 2011-01-19 12:12:14.000000000 +0200 ++++ libsndfile-1.0.25/src/gsm610.c 2011-11-12 02:05:23.385054757 +0200 +@@ -27,7 +27,7 @@ + #include "sfendian.h" + #include "common.h" + #include "wav_w64.h" +-#include "GSM610/gsm.h" ++#include + + #define GSM610_BLOCKSIZE 33 + #define GSM610_SAMPLES 160 +@@ -388,7 +388,8 @@ gsm610_seek (SF_PRIVATE *psf, int UNUSED + psf_fseek (psf, psf->dataoffset, SEEK_SET) ; + pgsm610->blockcount = 0 ; + +- gsm_init (pgsm610->gsm_data) ; ++ gsm_destroy (pgsm610->gsm_data) ; ++ pgsm610->gsm_data = gsm_create () ; + if ((SF_CONTAINER (psf->sf.format)) == SF_FORMAT_WAV || + (SF_CONTAINER (psf->sf.format)) == SF_FORMAT_W64) + gsm_option (pgsm610->gsm_data, GSM_OPT_WAV49, &true_flag) ; +diff -up libsndfile-1.0.25/src/Makefile.am~ libsndfile-1.0.25/src/Makefile.am +--- libsndfile-1.0.25/src/Makefile.am~ 2011-07-07 12:40:25.000000000 +0300 ++++ libsndfile-1.0.25/src/Makefile.am 2011-11-12 01:46:19.760807068 +0200 +@@ -8,7 +8,7 @@ lib_LTLIBRARIES = libsndfile.la + include_HEADERS = sndfile.hh + nodist_include_HEADERS = sndfile.h + +-noinst_LTLIBRARIES = GSM610/libgsm.la G72x/libg72x.la libcommon.la ++noinst_LTLIBRARIES = G72x/libg72x.la libcommon.la + + OS_SPECIFIC_CFLAGS = @OS_SPECIFIC_CFLAGS@ + OS_SPECIFIC_LINKS = @OS_SPECIFIC_LINKS@ +@@ -49,7 +49,7 @@ endif + libsndfile_la_LDFLAGS = -no-undefined -version-info @SHARED_VERSION_INFO@ @SHLIB_VERSION_ARG@ + libsndfile_la_SOURCES = $(FILESPECIFIC) $(noinst_HEADERS) + nodist_libsndfile_la_SOURCES = $(nodist_include_HEADERS) +-libsndfile_la_LIBADD = libcommon.la GSM610/libgsm.la G72x/libg72x.la \ ++libsndfile_la_LIBADD = libcommon.la -lgsm G72x/libg72x.la \ + @EXTERNAL_LIBS@ -lm + + libcommon_la_SOURCES = $(COMMON) +@@ -57,12 +57,6 @@ libcommon_la_SOURCES = $(COMMON) + #====================================================================== + # Subdir libraries. + +-GSM610_libgsm_la_SOURCES = GSM610/config.h GSM610/gsm.h GSM610/gsm610_priv.h \ +- GSM610/add.c GSM610/code.c GSM610/decode.c GSM610/gsm_create.c \ +- GSM610/gsm_decode.c GSM610/gsm_destroy.c GSM610/gsm_encode.c \ +- GSM610/gsm_option.c GSM610/long_term.c GSM610/lpc.c GSM610/preprocess.c \ +- GSM610/rpe.c GSM610/short_term.c GSM610/table.c +- + G72x_libg72x_la_SOURCES = $(COMMON)G72x/g72x.h G72x/g72x_priv.h \ + G72x/g721.c G72x/g723_16.c G72x/g723_24.c G72x/g723_40.c G72x/g72x.c + diff --git a/SPECS/libsndfile.spec b/SPECS/libsndfile.spec new file mode 100644 index 0000000..cb531b9 --- /dev/null +++ b/SPECS/libsndfile.spec @@ -0,0 +1,286 @@ +Summary: Library for reading and writing sound files +Name: libsndfile +Version: 1.0.25 +Release: 7%{?dist} +License: LGPLv2+ and GPLv2+ and BSD +Group: System Environment/Libraries +URL: http://www.mega-nerd.com/libsndfile/ +Source0: http://www.mega-nerd.com/libsndfile/files/libsndfile-%{version}.tar.gz +Patch0: %{name}-1.0.25-system-gsm.patch +BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) + +BuildRequires: alsa-lib-devel +BuildRequires: flac-devel +BuildRequires: libogg-devel +BuildRequires: libvorbis-devel +BuildRequires: pkgconfig +BuildRequires: sqlite-devel +BuildRequires: gsm-devel +BuildRequires: libtool + + +%description +libsndfile is a C library for reading and writing sound files such as +AIFF, AU, WAV, and others through one standard interface. It can +currently read/write 8, 16, 24 and 32-bit PCM files as well as 32 and +64-bit floating point WAV files and a number of compressed formats. It +compiles and runs on *nix, MacOS, and Win32. + + +%package devel +Summary: Development files for libsndfile +Group: Development/Libraries +Requires: %{name}%{?_isa} = %{version}-%{release} pkgconfig + + +%description devel +libsndfile is a C library for reading and writing sound files such as +AIFF, AU, WAV, and others through one standard interface. +This package contains files needed to develop with libsndfile. + + +%package utils +Summary: Command Line Utilities for libsndfile +Group: Applications/Multimedia +Requires: %{name} = %{version}-%{release} +Obsoletes: libsndfile < 1.0.20-4 + + +%description utils +libsndfile is a C library for reading and writing sound files such as +AIFF, AU, WAV, and others through one standard interface. +This package contains command line utilities for libsndfile. + + +%prep +%setup -q +%patch0 -p1 +rm -r src/GSM610 ; autoreconf -I M4 -fiv # for system-gsm patch +#also for aarch64 support which requires autotools 2.69+ + + +%build +%configure \ + --disable-dependency-tracking \ + --enable-sqlite \ + --enable-alsa \ + --enable-largefile \ + --disable-static + +# Get rid of rpath +sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool +sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool + +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT __docs +make install DESTDIR=$RPM_BUILD_ROOT +cp -pR $RPM_BUILD_ROOT%{_docdir}/libsndfile1-dev/html __docs +rm -rf $RPM_BUILD_ROOT%{_docdir}/libsndfile1-dev + +# fix multilib issues +%ifarch x86_64 s390x ia64 ppc64 sparc64 aarch64 +%define wordsize 64 +%else +%define wordsize 32 +%endif + +mv %{buildroot}%{_includedir}/sndfile.h \ + %{buildroot}%{_includedir}/sndfile-%{wordsize}.h + +cat > %{buildroot}%{_includedir}/sndfile.h < + +#if __WORDSIZE == 32 +# include "sndfile-32.h" +#elif __WORDSIZE == 64 +# include "sndfile-64.h" +#else +# error "unexpected value for __WORDSIZE macro" +#endif +EOF + +%if 0%{?rhel} != 0 +rm -f %{buildroot}%{_bindir}/sndfile-jackplay +%endif + + +%check +LD_LIBRARY_PATH=$PWD/src/.libs make check + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + + +%files +%defattr(-,root,root,-) +%doc COPYING AUTHORS README NEWS +%{_libdir}/%{name}.so.* + +%files utils +%defattr(-,root,root,-) +%{_bindir}/sndfile-cmp +%{_bindir}/sndfile-concat +%{_bindir}/sndfile-convert +%{_bindir}/sndfile-deinterleave +%{_bindir}/sndfile-info +%{_bindir}/sndfile-interleave +%{_bindir}/sndfile-metadata-get +%{_bindir}/sndfile-metadata-set +%{_bindir}/sndfile-play +%{_bindir}/sndfile-regtest +%{_bindir}/sndfile-salvage +%{_mandir}/man1/sndfile-cmp.1* +%{_mandir}/man1/sndfile-concat.1* +%{_mandir}/man1/sndfile-convert.1* +%{_mandir}/man1/sndfile-deinterleave.1* +%{_mandir}/man1/sndfile-info.1* +%{_mandir}/man1/sndfile-interleave.1* +%{_mandir}/man1/sndfile-metadata-get.1* +%{_mandir}/man1/sndfile-metadata-set.1* +%{_mandir}/man1/sndfile-play.1* + +%files devel +%defattr(-,root,root,-) +%doc __docs/* +%doc ChangeLog +%exclude %{_libdir}/%{name}.la +%{_includedir}/sndfile.h +%{_includedir}/sndfile.hh +%{_includedir}/sndfile-%{wordsize}.h +%{_libdir}/%{name}.so +%{_libdir}/pkgconfig/sndfile.pc + + +%changelog +* Mon Jun 03 2013 Michal Hlavinka - 1.0.25-7 +- fix support for aarch64, another part (#969831) + +* Wed Mar 27 2013 Michal Hlavinka - 1.0.25-6 +- fix support for aarch64 (#925887) + +* Thu Feb 14 2013 Fedora Release Engineering - 1.0.25-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Thu Jul 19 2012 Fedora Release Engineering - 1.0.25-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri Jan 13 2012 Fedora Release Engineering - 1.0.25-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Sat Nov 12 2011 Ville Skyttä - 1.0.25-2 +- Patch to use system libgsm instead of a bundled copy. +- Make main package dep in -devel ISA qualified. +- Drop -octave Provides (not actually built with octave > 3.0). +- Don't build throwaway static lib. +- Run test suite during build. + +* Thu Jul 14 2011 Michal Hlavinka - 1.0.25-1 +- Update to 1.0.25 +- fixes integer overflow by processing certain PAF audio files (#721240) + +* Sun Mar 27 2011 Orcan Ogetbil - 1.0.24-1 +- Update to 1.0.24 + +* Tue Feb 08 2011 Fedora Release Engineering - 1.0.23-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Sat Oct 16 2010 Orcan Ogetbil - 1.0.23-1 +- Update to 10.0.23 + +* Tue Oct 05 2010 Orcan Ogetbil - 1.0.22-1 +- Update to 10.0.22 + +* Tue May 11 2010 Orcan Ogetbil - 1.0.21-1 +- Update to 10.0.21 +- Do not include the static library in the package (RHBZ#556074) +- Remove BR on jack since sndfile-jackplay is not provided anymore + +* Mon Feb 1 2010 Stepan Kasal - 1.0.20-5 +- Do not build against Jack on RHEL +- Fix the Source0: URL +- Fix the licence tag + +* Sat Nov 14 2009 Orcan Ogetbil - 1.0.20-4 +- Split utils into a subpackage + +* Sat Nov 14 2009 Orcan Ogetbil - 1.0.20-3 +- Add FLAC/Ogg/Vorbis support (BR: libvorbis-devel) +- Make build verbose +- Remove rpath +- Fix ChangeLog encoding +- Move the big Changelog to the devel package + +* Sat Jul 25 2009 Fedora Release Engineering - 1.0.20-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Sat Jun 06 2009 Lennart Poettering - 1.0.20-1 +- Updated to 1.0.20 + +* Tue Mar 03 2009 Robert Scheck - 1.0.17-8 +- Rebuilt against libtool 2.2 + +* Wed Feb 25 2009 Fedora Release Engineering - 1.0.17-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Thu Oct 25 2008 Andreas Thienemann - 1.0.17-6 +- Removed spurious #endif in the libsndfile.h wrapper. Thx to Edward + Sheldrake for finding it. Fixes #468508. +- Fix build for autoconf-2.63 + +* Thu Oct 23 2008 Andreas Thienemann - 1.0.17-5 +- Fixed multilib conflict. #342401 +- Made flac support actually work correctly. + +* Thu Aug 7 2008 Tom "spot" Callaway - 1.0.17-4 +- fix license tag + +* Tue Feb 19 2008 Fedora Release Engineering - 1.0.17-3 +- Autorebuild for GCC 4.3 + +* Thu Sep 20 2007 Andreas Thienemann - 1.0.17-2 +- Adding FLAC support to libsndfile courtesy of gentoo, #237575 +- Fixing CVE-2007-4974. Thanks to the gentoo people for the patch, #296221 + +* Fri Sep 08 2006 Andreas Thienemann - 1.0.17-1 +- Updated to 1.0.17 + +* Sun Apr 30 2006 Andreas Thienemann - 1.0.16-1 +- Updated to 1.0.16 + +* Thu Mar 30 2006 Andreas Thienemann - 1.0.15-1 +- Updated to 1.0.15 + +* Thu Mar 16 2006 Dams - 1.0.14-1.fc5 +- Updated to 1.0.14 +- Dropped patch0 + +* Thu May 12 2005 Michael Schwendt - 1.0.11-3 +- rebuilt + +* Sat Mar 5 2005 Michael Schwendt - 1.0.11-2 +- Fix format string bug (#149863). +- Drop explicit Epoch 0. + +* Sat Dec 4 2004 Ville Skyttä - 0:1.0.11-0.fdr.1 +- Update to 1.0.11. + +* Wed Oct 13 2004 Ville Skyttä - 0:1.0.10-0.fdr.1 +- Update to 1.0.10, update URLs, include ALSA support. +- Disable dependency tracking to speed up the build. +- Add missing ldconfig invocations. +- Make -devel require pkgconfig. +- Include developer docs in -devel. +- Provide -octave in main package, own more related dirs. +- Bring specfile up to date with current spec templates. + +* Sat Apr 12 2003 Dams +- Initial build.