Sync from SUSE:SLFO:Main speex revision 138f033a98e450549b92291a56017849

This commit is contained in:
Adrian Schröter 2024-05-04 00:47:44 +02:00
commit f294e92565
6 changed files with 397 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

2
baselibs.conf Normal file
View File

@ -0,0 +1,2 @@
libspeex1
obsoletes "libspeex-<targettype> <= 1.1.99.91"

BIN
speex-1.2.1.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

26
speex-no-build-date.patch Normal file
View File

@ -0,0 +1,26 @@
Index: src/speexdec.c
===================================================================
--- src/speexdec.c.orig
+++ src/speexdec.c
@@ -291,7 +291,7 @@ void version()
{
const char* speex_version;
speex_lib_ctl(SPEEX_LIB_GET_VERSION_STRING, (void*)&speex_version);
- printf ("speexdec (Speex decoder) version %s (compiled " __DATE__ ")\n", speex_version);
+ printf ("speexdec (Speex decoder) version %s\n", speex_version);
printf ("Copyright (C) 2002-2006 Jean-Marc Valin\n");
}
Index: src/speexenc.c
===================================================================
--- src/speexenc.c.orig
+++ src/speexenc.c
@@ -203,7 +203,7 @@ void version()
{
const char* speex_version;
speex_lib_ctl(SPEEX_LIB_GET_VERSION_STRING, (void*)&speex_version);
- printf ("speexenc (Speex encoder) version %s (compiled " __DATE__ ")\n", speex_version);
+ printf ("speexenc (Speex encoder) version %s\n", speex_version);
printf ("Copyright (C) 2002-2006 Jean-Marc Valin\n");
}

241
speex.changes Normal file
View File

@ -0,0 +1,241 @@
-------------------------------------------------------------------
Mon Jul 11 16:31:04 UTC 2022 - Dirk Müller <dmueller@suse.com>
- update to 1.2.1:
* Check for _WIN32 instead of WIN32 in preprocessor checks
* wav_io: check for EOF when seeking in wav (fixes hang discovered by fuzzing)
* CI: add gitlab CI integration
* fixed-point: make left shift macros use unsigned to avoid undefined behaviour
* math_approx: use unsigned int for LCG pseudorandom generator (avoids integer overflow)
* oss-fuzz: add integration and fuzzing target
* speexenc: guard against invalid channel numbers)
* speexdec: make left shift macros use unsigned to avoid undefined behaviour
* autotools: do not use deprecated macros
- drop speex-CVE-2020-23903.patch (upstream)
-------------------------------------------------------------------
Thu Nov 11 13:18:22 CET 2021 - tiwai@suse.de
- Fix zero division error in read_samples (CVE-2020-23903 bsc#1192580)
speex-CVE-2020-23903.patch
-------------------------------------------------------------------
Sun Feb 19 17:19:52 UTC 2017 - tom.mbrt@googlemail.com
- Update to stable 1.2 release
-------------------------------------------------------------------
Sat Aug 22 03:13:28 UTC 2015 - bwiedemann@suse.com
- make speex-devel require speexdsp-devel to be backward compatible
-------------------------------------------------------------------
Wed Mar 11 16:52:39 UTC 2015 - jengelh@inai.de
- Use the tilde versioning scheme; we are no longer bound to use
the old hacks.
-------------------------------------------------------------------
Sat Feb 28 10:05:17 UTC 2015 - tchvatal@suse.com
- Move libname up and set it just once, easier for later on.
-------------------------------------------------------------------
Mon Feb 23 14:57:20 UTC 2015 - mpluskal@suse.com
- Split package to two separate packages
* speexdsp contains libraries
* speex contains tools
- Update to 1.2rc2
* This release splits the speex codec library and the speex DSP
library into separate source trees. Both projects received
build-system improvements, bugfixes, and cleanup. The speex
codec's VBR tuning was improved, while the speexdsp resampler
got some NEON optimizations.
- Remove obsolete patch
* speex-1.0.5-warning-fix.diff
-------------------------------------------------------------------
Fri Apr 5 11:21:38 UTC 2013 - idonmez@suse.com
- Add Source URL, see https://en.opensuse.org/SourceUrls
-------------------------------------------------------------------
Thu Nov 24 10:20:31 UTC 2011 - coolo@suse.com
- add libtool as buildrequire to avoid implicit dependency
-------------------------------------------------------------------
Fri Sep 3 23:58:01 UTC 2010 - cristian.rodriguez@opensuse.org
- Do not include build date in binaries...
-------------------------------------------------------------------
Fri Jun 25 17:41:30 CEST 2010 - dmueller@suse.de
- obsolete old -XXbit packages
-------------------------------------------------------------------
Thu Jan 14 12:58:49 UTC 2010 - chris@computersalat.de
- fix build for SLE_10
autoreconf for suse_version >= 1100
- spec
o sort TAGS
o macros
rm > {__rm}
version > {version} ....
-------------------------------------------------------------------
Thu Jan 7 18:59:26 UTC 2010 - lnussel@suse.de
- split off libspeex1 and libspeexdsp1 according to library
packaging policy
- include actual tarball version in package version
- don't package README's for embedded cpus
-------------------------------------------------------------------
Fri Dec 18 13:11:17 CET 2009 - jengelh@medozas.de
- add baselibs.conf as a source
- enable parallel building
-------------------------------------------------------------------
Wed Jan 7 12:34:56 CET 2009 - olh@suse.de
- obsolete old -XXbit packages (bnc#437293)
-------------------------------------------------------------------
Wed Aug 6 13:39:30 CEST 2008 - tiwai@suse.de
- updated to version 1.2rc1:
* support for acoustic echo cancellation with multiple mics
and speakers.
* add an API to decorrelate loudspeaker signals
* fixes for a few bugs in the echo canceller, jitter buffer and
preprocessor
-------------------------------------------------------------------
Thu Apr 10 12:54:45 CEST 2008 - ro@suse.de
- added baselibs.conf file to build xxbit packages
for multilib support
-------------------------------------------------------------------
Fri Jan 11 16:31:58 CET 2008 - tiwai@suse.de
- updated to version 1.2beta3:
* all the non-codec components (preprocessor, echo cancellation,
jitter buffer) have been moved to a new libspeexdsp library
* a new jitter buffer algorithm
* resampler improvements/fixes
* libspeex can be built without any floating point support
-------------------------------------------------------------------
Tue Aug 14 17:00:55 CEST 2007 - tiwai@suse.de
- fix the bug in resampler code (signed/unsigned mismatch)
- move man pages to the main package
- a bit clean up of spec file
-------------------------------------------------------------------
Thu May 24 14:38:03 CEST 2007 - tiwai@suse.de
- updated to version 1.2beta2:
* reduced RAM requirement
* A new resampler module
* improved / fixed echo canceller
* improved preprocessor
* early TriMedia support (incomplete)
- removed static library and *.la files
-------------------------------------------------------------------
Tue Apr 10 19:25:21 CEST 2007 - tiwai@suse.de
- split shared library to libspeex sub package.
-------------------------------------------------------------------
Thu Oct 12 17:55:52 CEST 2006 - tiwai@suse.de
- updated to version 1.2beta1:
* Improvement of encoder/decoder quality
* Enhander improvements (now on by default)
* Input/output high-pass filters
* Fixing minor regressions in previous 1.1.x releases
* Reduced memory usage
* Reduced CPU usage
-------------------------------------------------------------------
Wed Aug 9 14:44:19 CEST 2006 - sbrabec@suse.cz
- Updated to version 1.1.12:
* echo canceller converted to fixed-point
* Improvements to the experimental Vorbis-based masking model
* several bug fixes
-------------------------------------------------------------------
Wed Jan 25 21:41:45 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Tue Oct 4 15:00:01 CEST 2005 - tiwai@suse.de
- fix the type-punning.
- add check of return value from fread().
-------------------------------------------------------------------
Tue Jun 14 11:46:05 CEST 2005 - tiwai@suse.de
- updated to version 1.0.5.
-------------------------------------------------------------------
Thu Sep 16 13:12:13 CEST 2004 - tiwai@suse.de
- fixed speex.m4 for the recent autoconf.
-------------------------------------------------------------------
Thu Aug 5 12:12:04 CEST 2004 - tiwai@suse.de
- updated to version 1.0.4.
-------------------------------------------------------------------
Mon Jan 12 10:52:21 CET 2004 - adrian@suse.de
- add %defattr
-------------------------------------------------------------------
Fri Jan 9 17:53:38 CET 2004 - tiwai@suse.de
- updated to version 1.0.3.
-------------------------------------------------------------------
Fri Jun 6 18:32:08 CEST 2003 - tiwai@suse.de
- updated to version 1.0.1.
-------------------------------------------------------------------
Mon Jun 2 10:56:03 CEST 2003 - ro@suse.de
- remove unpackaged files from buildroot
-------------------------------------------------------------------
Thu Mar 27 16:37:10 CET 2003 - tiwai@suse.de
- updated to version 1.0 final.
-------------------------------------------------------------------
Thu Jan 30 14:44:51 CET 2003 - tiwai@suse.de
- updated to version 1.0rc2.
-------------------------------------------------------------------
Fri Jan 17 17:07:05 CET 2003 - tiwai@suse.de
- updated to version 1.0rc1.
-------------------------------------------------------------------
Wed Nov 27 16:14:56 CET 2002 - tiwai@suse.de
- initial version: 1.0beta3

102
speex.spec Normal file
View File

@ -0,0 +1,102 @@
#
# spec file for package speex
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define libname libspeex1
Name: speex
Version: 1.2.1
Release: 0
Summary: An Open Source, Patent Free Speech Codec
License: BSD-3-Clause
Group: System/Libraries
URL: https://www.speex.org/
Source0: https://downloads.xiph.org/releases/speex/%{name}-%{version}.tar.gz
Source1: baselibs.conf
Patch0: speex-no-build-date.patch
BuildRequires: pkgconfig
BuildRequires: pkgconfig(ogg)
BuildRequires: pkgconfig(speexdsp)
%description
Speex is a patent free audio codec designed especially for voice
(unlike Vorbis which targets general audio) signals and providing good
narrowband and wideband quality. This project aims to be complementary
to the Vorbis codec.
%package -n %{libname}
Summary: An Open Source, Patent Free Speech Codec Library
Group: System/Libraries
Obsoletes: libspeex < %{version}
Provides: libspeex = %{version}
%description -n %{libname}
Speex is a patent free audio codec designed especially for voice
(unlike Vorbis which targets general audio) signals and providing good
narrowband and wideband quality. This project aims to be complementary
to the Vorbis codec.
%package devel
Summary: Development package for SpeeX
Group: Development/Libraries/C and C++
Requires: %{libname} = %{version}
Requires: speexdsp-devel
Provides: libspeex-devel = %{version}-%{release}
Obsoletes: libspeex-devel < %{version}-%{release}
%description devel
This package contains the files needed to compile programs that use the
SpeeX library.
%prep
%setup -q
%patch0
%build
%configure \
--enable-binaries \
--disable-static
%make_build
%install
%make_install
# remove duped documents
rm -rf %{buildroot}%{_datadir}/doc/speex*
# remove unneeded *.la files
find %{buildroot} -type f -name "*.la" -delete -print
rm -f %{buildroot}%{_libdir}/*.a
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%files
%license COPYING
%doc AUTHORS ChangeLog NEWS README TODO
%{_bindir}/speex*
%{_mandir}/man?/*
%files -n %{libname}
%{_libdir}/libspeex.so.*
%files devel
%doc doc/manual.pdf
%{_includedir}/*
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*.pc
%{_datadir}/aclocal/*.m4
%changelog