Name:		vorbis-tools
Summary:	Several Ogg Vorbis Tools
Version:	1.4.0
Release:	33
Epoch:		1
License:	GPLv2
URL:		http://www.xiph.org/
Source:		http://downloads.xiph.org/releases/vorbis/%{name}-%{version}.tar.gz
Patch0:		vorbis-tools-1.4.0-bz887540.patch

Patch1:		vorbis-tools-1.4.0-man-page.patch
Patch2:		vorbis-tools-1.4.0-bz1003607.patch
Patch3:		vorbis-tools-1.4.0-bz1116650.patch
Patch4:		vorbis-tools-1.4.0-bz1185558.patch
Patch5:		vorbis-tools-1.4.0-CVE-2014-9638-CVE-2014-9639.patch
Patch6:		vorbis-tools-1.4.0-CVE-2015-6749.patch
Patch7:		CVE-2014-9640.patch
Patch8:         CVE-2023-43361.patch

BuildRequires:	flac-devel gettext gcc libao-devel libcurl-devel libvorbis-devel speex-devel chrpath

Obsoletes:	vorbis < %{epoch}:%{version}-%{release}
Provides:	vorbis = %{epoch}:%{version}-%{release}

%description
Ogg Vorbis is a fully open, non-proprietary, patent-and-royalty-free, general-purpose
compressed audio format for mid to high quality (8kHz-48.0kHz, 16+ bit, polyphonic) audio
and music at fixed and variable bitrates from 16 to 128 kbps/channel. This places Vorbis
in the same competitive class as audio representations such as MPEG-4 (AAC), and similar
to, but higher performance than MPEG-1/2 audio layer 3, MPEG-4 audio (TwinVQ), WMA and PAC.

%package_help

%prep
%autosetup -p1

%build
export CFLAGS="$RPM_OPT_FLAGS -Wno-error=format-security"

%configure
%make_build
%make_build update-gmo -C po

%install
%make_install
chrpath -d %{buildroot}%{_bindir}/*

%find_lang %{name}

%files -f %{name}.lang
%{_bindir}/*

%files help
%doc AUTHORS COPYING README
%doc ogg123/ogg123rc-example
%{_mandir}/man1/*
%exclude %{_docdir}/%{name}*

%changelog
* Thu Oct 24 2024 wangkai <13474090681@163.com> - 1:1.4.0-33
- Fix CVE-2023-43361

* Tue Oct 10 2023 wangkai <13474090681@163.com> - 1:1.4.0-32
- Remove rpath

* Mon Jan 11 2021 wangyue<wangyue92@huawei.com> - 1:1.4.0-31
- fix CVE-2014-9640

* Tue Nov 19 2019 caomeng<caomeng5@huawei.com> - 1:1.4.0-30
- Package init
