diff --git a/0001-fix-MemorySanitizer-use-of-uninitialized-value.patch b/0001-fix-MemorySanitizer-use-of-uninitialized-value.patch deleted file mode 100644 index c2690b5fc94b9f0d8a14420513181cda723756d7..0000000000000000000000000000000000000000 --- a/0001-fix-MemorySanitizer-use-of-uninitialized-value.patch +++ /dev/null @@ -1,24 +0,0 @@ -From 73915cab4bb5af47c07c9aa5b1436c8f339b6af3 Mon Sep 17 00:00:00 2001 -From: maminjie -Date: Thu, 3 Dec 2020 01:30:52 +0000 -Subject: [PATCH] fix MemorySanitizer: use-of-uninitialized-value - ---- - src/opusfile.c | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/src/opusfile.c b/src/opusfile.c -index 8b000a2..889cb31 100644 ---- a/src/opusfile.c -+++ b/src/opusfile.c -@@ -479,6 +479,7 @@ static int op_fetch_headers_impl(OggOpusFile *_of,OpusHead *_head, - int *_cserialnos,ogg_page *_og){ - ogg_packet op; - int ret; -+ memset(&op,0,sizeof(ogg_packet)); - if(_serialnos!=NULL)*_nserialnos=0; - /*Extract the serialnos of all BOS pages plus the first set of Opus headers - we see in the link.*/ --- -2.23.0 - diff --git a/opusfile-0.11.tar.gz b/opusfile-0.11.tar.gz deleted file mode 100644 index 4db3525a9b1fd8bc51aa1904881a60ea17ee44a8..0000000000000000000000000000000000000000 Binary files a/opusfile-0.11.tar.gz and /dev/null differ diff --git a/opusfile-0.12.tar.gz b/opusfile-0.12.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..4005836f311dd292ce97ffb59927ad7ae41ca3f3 Binary files /dev/null and b/opusfile-0.12.tar.gz differ diff --git a/opusfile.spec b/opusfile.spec index 9ae332fa0c87261c2c0a29d26ec5a181f53d9ad5..c0553aa5b0fedf05a1eb5ad14ae44f21fed27bfe 100644 --- a/opusfile.spec +++ b/opusfile.spec @@ -1,56 +1,72 @@ Name: opusfile -Version: 0.11 -Release: 4 -Summary: A high-level API provides seeking, decode, and playback of Opus streams +Version: 0.12 +Release: 1 +Summary: A high-level API for decoding and seeking within .opus files License: BSD -URL: http://www.opus-codec.org/ -Source0: http://downloads.xiph.org/releases/opus/%{name}-%{version}.tar.gz -Patch0000: 0001-fix-MemorySanitizer-use-of-uninitialized-value.patch +URL: https://www.opus-codec.org/ +Source0: https://downloads.xiph.org/releases/opus/%{name}-%{version}.tar.gz -BuildRequires: gcc libogg-devel openssl-devel opus-devel +BuildRequires: make +BuildRequires: gcc +BuildRequires: libogg-devel +BuildRequires: openssl-devel +BuildRequires: opus-devel %description -The opusfile library provides seeking, decode, and playback of Opus streams in the Ogg -container (.opus files) including over http(s) on posix and windows systems. -opusfile depends on libopus and libogg.The included opusurl library for http(s) access -depends on opusfile and openssl. +libopusfile provides a high-level API for decoding and seeking +within .opus files. It includes: +* Support for all files with at least one Opus stream (including +multichannel files or Ogg files where Opus is muxed with something else). +* Full support, including seeking, for chained files. +* A simple stereo downmixing API (allowing chained files to be +decoded with a single output format, even if the channel count changes). +* Support for reading from a file, memory buffer, or over HTTP(S) +(including seeking). +* Support for both random access and streaming data sources. %package devel -Summary: Development package for opusfile package -Requires: %{name} = %{version}-%{release} pkgconfig +Summary: Development package for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: pkgconfig %description devel -Development package for opusfile package. +Files for development with %{name}. %prep -%autosetup -n %{name}-%{version} -p1 +%setup -q %build %configure --disable-static + %make_build %install %make_install -%delete_la -%post -/sbin/ldconfig +#Remove libtool archives. +find %{buildroot} -type f -name "*.la" -delete -%postun -/sbin/ldconfig +%ldconfig_scriptlets %files -%doc AUTHORS COPYING -%{_libdir}/{libopusfile.so.*,libopusurl.so.*} +%license COPYING +%doc AUTHORS +%{_libdir}/libopusfile.so.* +%{_libdir}/libopusurl.so.* %files devel %doc %{_docdir}/%{name} %{_includedir}/opus/opus* -%{_libdir}/pkgconfig/{opusfile.pc,opusurl.pc} -%{_libdir}/{libopusfile.so,libopusurl.so} +%{_libdir}/pkgconfig/opusfile.pc +%{_libdir}/pkgconfig/opusurl.pc +%{_libdir}/libopusfile.so +%{_libdir}/libopusurl.so %changelog -* Web 02 Jun 2021 zhaoyao - 0.11-4 +* Mon Nov 14 2022 - 0.12-1 +- Upgrade to v0.12 + +* Wed Jun 2 2021 zhaoyao - 0.11-4 - fixs faileds: /bin/sh: gcc: command not found. * Thu Dec 03 2020 maminjie - 0.11-3