forked from pool/libsamplerate
Accepting request 878661 from home:dirkmueller:Factory
- update to 0.10.0: * Add src_clone() function to clone a SRC_STATE* handle * Cleanup Autotools build system. * Require C99 compiler * Add missing src_get_channels() export to windows def file * Fix macOS compile errors and modernize audio api on that platform * Add Octave scripts to generate filter coefficients * Fix two potential undefined behaviours * Fix a buffer out-of-bounds read error in src/src_sinc.c * Improve multichan_throughput_test * Replace buggy implementation of Duffs device by regular loop * Fix CMake generated shared library ABI compliance with Autotools build * Move site to new URL: http://libsndfile.github.io/libsamplerate/ * Convert documentation pages from HTML to Markdown * Move sndfile-resample to sndfile-tools package -> drop progs subpackage - drop libsamplerate-0.1.9-reproducible.patch - add libsamplerate-0.2.1-reproducible.patch OBS-URL: https://build.opensuse.org/request/show/878661 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libsamplerate?expand=0&rev=39
This commit is contained in:
parent
6deff41703
commit
06b893d33b
@ -1,13 +0,0 @@
|
||||
Index: libsamplerate-0.1.9/tests/Makefile.in
|
||||
===================================================================
|
||||
--- libsamplerate-0.1.9.orig/tests/Makefile.in
|
||||
+++ libsamplerate-0.1.9/tests/Makefile.in
|
||||
@@ -1136,7 +1136,7 @@ check: $(noinst_PROGRAMS)
|
||||
./varispeed_test
|
||||
./float_short_test
|
||||
./snr_bw_test
|
||||
- ./throughput_test
|
||||
+ #./throughput_test # disabled to have reproducible builds with PGO - see https://github.com/bmwiedemann/theunreproduciblepackage/tree/master/pgo
|
||||
@echo "-----------------------------------------------------------------"
|
||||
@echo " ${PACKAGE}-${VERSION} passed all tests."
|
||||
@echo "-----------------------------------------------------------------"
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0a7eb168e2f21353fb6d84da152e4512126f7dc48ccb0be80578c565413444c1
|
||||
size 4336641
|
12
libsamplerate-0.2.1-reproducible.patch
Normal file
12
libsamplerate-0.2.1-reproducible.patch
Normal file
@ -0,0 +1,12 @@
|
||||
Index: libsamplerate-0.2.1/Makefile.am
|
||||
===================================================================
|
||||
--- libsamplerate-0.2.1.orig/Makefile.am
|
||||
+++ libsamplerate-0.2.1/Makefile.am
|
||||
@@ -91,7 +91,6 @@ TESTS = \
|
||||
tests/simple_test \
|
||||
tests/snr_bw_test \
|
||||
tests/termination_test \
|
||||
- tests/throughput_test \
|
||||
tests/varispeed_test
|
||||
|
||||
check_PROGRAMS = \
|
3
libsamplerate-0.2.1.tar.bz2
Normal file
3
libsamplerate-0.2.1.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f6323b5e234753579d70a0af27796dde4ebeddf58aae4be598e39b3cee00c90a
|
||||
size 3747188
|
@ -1,3 +1,25 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Jan 24 16:32:14 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 0.10.0:
|
||||
* Add src_clone() function to clone a SRC_STATE* handle
|
||||
* Cleanup Autotools build system.
|
||||
* Require C99 compiler
|
||||
* Add missing src_get_channels() export to windows def file
|
||||
* Fix macOS compile errors and modernize audio api on that platform
|
||||
* Add Octave scripts to generate filter coefficients
|
||||
* Fix two potential undefined behaviours
|
||||
* Fix a buffer out-of-bounds read error in src/src_sinc.c
|
||||
* Improve multichan_throughput_test
|
||||
* Replace buggy implementation of Duffs device by regular loop
|
||||
* Fix CMake generated shared library ABI compliance with Autotools build
|
||||
* Move site to new URL: http://libsndfile.github.io/libsamplerate/
|
||||
* Convert documentation pages from HTML to Markdown
|
||||
* Move sndfile-resample to sndfile-tools package
|
||||
-> drop progs subpackage
|
||||
- drop libsamplerate-0.1.9-reproducible.patch
|
||||
- add libsamplerate-0.2.1-reproducible.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 9 12:10:42 UTC 2018 - bwiedemann@suse.com
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package libsamplerate
|
||||
#
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -12,25 +12,26 @@
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: libsamplerate
|
||||
Version: 0.1.9
|
||||
Version: 0.2.1
|
||||
Release: 0
|
||||
Summary: A Sample Rate Converter Library
|
||||
License: BSD-2-Clause
|
||||
Group: Development/Libraries/C and C++
|
||||
Url: http://www.mega-nerd.com/SRC/
|
||||
Source0: http://www.mega-nerd.com/SRC/libsamplerate-%{version}.tar.gz
|
||||
URL: https://libsndfile.github.io/libsamplerate/
|
||||
Source0: https://github.com/libsndfile/libsamplerate/releases/download/%{version}/libsamplerate-%{version}.tar.bz2
|
||||
Source1: baselibs.conf
|
||||
# PATCH-FEATURE-OPENSUSE -- Make build reproducible
|
||||
Patch0: libsamplerate-0.1.9-reproducible.patch
|
||||
Patch0: libsamplerate-0.2.1-reproducible.patch
|
||||
BuildRequires: automake
|
||||
BuildRequires: fftw3-devel
|
||||
BuildRequires: libsndfile-devel
|
||||
BuildRequires: libtool
|
||||
BuildRequires: pkgconfig
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for
|
||||
@ -48,6 +49,7 @@ Summary: A Sample Rate Converter Library
|
||||
Group: System/Libraries
|
||||
Provides: %{name} = %{version}
|
||||
Obsoletes: %{name} < %{version}
|
||||
Obsoletes: libsamplerate-progs < %{version}
|
||||
|
||||
%description -n libsamplerate0
|
||||
Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for
|
||||
@ -70,63 +72,43 @@ Requires: libsamplerate0 = %{version}
|
||||
This package contains all necessary include files and libraries needed
|
||||
to develop applications that require these.
|
||||
|
||||
%package progs
|
||||
Summary: Example Programs for libsamplerate
|
||||
Group: Productivity/Multimedia/Sound/Utilities
|
||||
|
||||
%description progs
|
||||
This package includes the example programs for libsamplerate.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%ifnarch %arm aarch64
|
||||
# ARM has no working profile support in gcc atm
|
||||
autoreconf -fvi
|
||||
%configure --disable-silent-rules --disable-static
|
||||
profiledir=`mktemp -d`
|
||||
%configure --disable-silent-rules --disable-static
|
||||
make %{?_smp_mflags} CFLAGS="%optflags %cflags_profile_generate=$profiledir"
|
||||
pushd tests
|
||||
make check
|
||||
popd
|
||||
make clean
|
||||
make %{?_smp_mflags} CFLAGS="%optflags %cflags_profile_feedback=$profiledir"
|
||||
%else
|
||||
%configure --disable-silent-rules --disable-static
|
||||
make %{?_smp_mflags} CFLAGS="%optflags"
|
||||
%endif
|
||||
|
||||
%make_build CFLAGS="%{optflags} %{cflags_profile_generate}=$profiledir"
|
||||
%make_build check
|
||||
%make_build clean
|
||||
%make_build CFLAGS="%{optflags} %{cflags_profile_feedback}=$profiledir"
|
||||
|
||||
%check
|
||||
pushd tests
|
||||
make check
|
||||
popd
|
||||
%make_build check
|
||||
|
||||
%install
|
||||
# Since configure doesn't honor --docdir set htmldocdir here
|
||||
make install DESTDIR=%{?buildroot} \
|
||||
htmldocdir=%{_defaultdocdir}/libsamplerate-devel
|
||||
%make_install
|
||||
install -d %{buildroot}%{_defaultdocdir}/
|
||||
mv %{buildroot}/usr/share/doc/libsamplerate %{buildroot}%{_defaultdocdir}/libsamplerate
|
||||
# remove unneeded files
|
||||
rm -f %{buildroot}%{_libdir}/*.la
|
||||
find %{buildroot} -type f -name "*.la" -delete -print
|
||||
|
||||
%post -n libsamplerate0 -p /sbin/ldconfig
|
||||
%postun -n libsamplerate0 -p /sbin/ldconfig
|
||||
|
||||
%files -n libsamplerate0
|
||||
%defattr(-,root,root)
|
||||
%doc AUTHORS COPYING
|
||||
%license COPYING
|
||||
%doc AUTHORS
|
||||
%{_libdir}/libsamplerate.so.0*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%doc ChangeLog
|
||||
%{_defaultdocdir}/libsamplerate-devel
|
||||
%{_defaultdocdir}/libsamplerate
|
||||
%{_libdir}/libsamplerate.so
|
||||
%{_includedir}/samplerate.h
|
||||
%{_libdir}/pkgconfig/samplerate.pc
|
||||
|
||||
%files progs
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/sndfile-resample
|
||||
|
||||
%changelog
|
||||
|
Loading…
x
Reference in New Issue
Block a user