wavpack/wavpack.spec
2020-05-14 21:52:32 +08:00

89 lines
2.4 KiB
RPMSpec

Name: wavpack
Version: 5.1.0
Release: 12
Summary: Hybrid Lossless Wavefile Compressor
License: BSD
Url: http://www.wavpack.com/
Source: http://www.wavpack.com/%{name}-%{version}.tar.bz2
Patch0000: wavpack-0001-issue-27-do-not-overwrite-stack-on-corrupt-RF64-file.patch
Patch0001: wavpack-0002-issue-28-do-not-overwrite-heap-on-corrupt-DSDIFF-fil.patch
Patch0002: wavpack-0003-issue-28-fix-buffer-overflows-and-bad-allocs-on-corr.patch
Patch0003: wavpack-0004-issue-33-sanitize-size-of-unknown-chunks-before-mall.patch
Patch0004: wavpack-0005-issue-30-issue-31-issue-32-no-multiple-format-chunks.patch
# fix potential out-of-bounds heapo read
Patch0005: wavpack-CVE-2019-11498.patch
# make sure sample rate is specified and non-zero in DFF files
Patch0006: CVE-2018-19841.patch
Patch0007: fix-memory-leak-on-opening-corrupted-files.patch
Patch6000: CVE-2018-19840.patch
BuildRequires: autoconf automake libtool
%description
WavPack is a completely open audio compression format providing lossless, high-quality
lossy, and a unique hybrid compression mode. For version 5.0.0, several new file formats
and lossless DSD audio compression were added, making WavPack a universal audio archiving
solution.
%package devel
Summary: Development files for wavpack
Requires: %{name} = %{version}-%{release} pkgconfig
%description devel
The package contains libraries and header files for developing applications that use
wavpack.
%package help
Summary: Help document for the wavpack package
Buildarch: noarch
%description help
Help document for the wavpack package.
%prep
%autosetup -n %{name}-%{version} -p1
%build
autoreconf -ivf
%configure --disable-static
%make_build
%install
%make_install
%delete_la
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
%doc AUTHORS COPYING
%{_bindir}/*
%{_libdir}/libwavpack.so.*
%files devel
%doc ChangeLog README
%{_includedir}/*
%{_libdir}/pkgconfig/*
%{_libdir}/*.so
%files help
%{_mandir}/man1/*.1*
%changelog
* Sat May 14 2020 lutianxiong <lutianxiong@huawei.com> - 5.1.0-12
- Type:bugfix
- ID:NA
- SUG:NA
- Fix memory leak on opening corrupted files
* Sat Mar 14 2020 wangzhishun <wangzhishun1@huawei.com> - 5.1.0-11
- Make sure sample rate is specified and non-zero in DFF files
- Fix potential out-of-bounds heap read
* Fri Oct 25 2019 Lijin Yang <yanglijin@huawei.com> - 5.1.0-10
- Package init