Compare commits

...

No commits in common. "c10s" and "c8s" have entirely different histories.
c10s ... c8s

4 changed files with 21 additions and 187 deletions

3
.gitignore vendored
View File

@ -1 +1,2 @@
/opus-1.*.tar.gz SOURCES/opus-1.3-beta.tar.gz
/opus-1.3-beta.tar.gz

View File

@ -1,6 +1,6 @@
--- !Policy --- !Policy
product_versions: product_versions:
- rhel-10 - rhel-8
decision_context: osci_compose_gate decision_context: osci_compose_gate
rules: rules:
- !PassingTestCaseRule {test_case_name: desktop-qe.desktop-ci.tier1-gating.functional} - !PassingTestCaseRule {test_case_name: desktop-qe.desktop-ci.tier1-gating.functional}

201
opus.spec
View File

@ -1,46 +1,23 @@
#global candidate rc2 %global candidate beta
%if 0%{?fedora}
%bcond_without mingw
# uses wine, requires enabled binfmt
%bcond_with tests
%else
%bcond_with mingw
%endif
Name: opus Name: opus
Version: 1.4 Version: 1.3
Release: 6%{?candidate:.%{candidate}}%{?dist} Release: 0.4%{?candidate:.%{candidate}}%{?dist}
Summary: An audio codec for use in low-delay speech and audio communication Summary: An audio codec for use in low-delay speech and audio communication
License: BSD-3-Clause AND BSD-2-Clause License: BSD
URL: https://www.opus-codec.org/ URL: https://www.opus-codec.org/
Source0: https://ftp.osuosl.org/pub/xiph/releases/%{name}/%{name}-%{version}%{?candidate:-%{candidate}}.tar.gz Source0: http://downloads.xiph.org/releases/%{name}/%{name}-%{version}%{?candidate:-%{candidate}}.tar.gz
# This is the final IETF Working Group RFC # This is the final IETF Working Group RFC
Source1: https://tools.ietf.org/rfc/rfc6716.txt Source1: http://tools.ietf.org/rfc/rfc6716.txt
Source2: https://tools.ietf.org/rfc/rfc8251.txt Source2: http://tools.ietf.org/rfc/rfc8251.txt
BuildRequires: make
BuildRequires: gcc BuildRequires: gcc
BuildRequires: doxygen BuildRequires: doxygen
BuildRequires: libtool
%if %{with mingw}
BuildRequires: mingw32-filesystem
BuildRequires: mingw32-gcc
BuildRequires: mingw64-gcc
BuildRequires: mingw64-filesystem
%if %{with tests}
BuildRequires: wine
%endif
%endif
%description %description
The Opus codec is designed for interactive speech and audio transmission over The Opus codec is designed for interactive speech and audio transmission over
the Internet. It is designed by the IETF Codec Working Group and incorporates the Internet. It is designed by the IETF Codec Working Group and incorporates
technology from Skype's SILK codec and Xiph.Org's CELT codec. technology from Skype's SILK codec and Xiph.Org's CELT codec.
%package devel %package devel
@ -51,185 +28,41 @@ Requires: opus = %{version}-%{release}
%description devel %description devel
Files for development with opus. Files for development with opus.
%if %{with mingw}
%package -n mingw32-%{name}
Summary: MinGW compiled %{name} library for Win32 target
BuildArch: noarch
%description -n mingw32-%{name}
This package contains the MinGW compiled library of %{name}
for Win32 target.
%package -n mingw64-%{name}
Summary: MinGW compiled %{name} library for Win64 target
BuildArch: noarch
%description -n mingw64-%{name}
This package contains the MinGW compiled library of %{name}
for Win64 target.
%{?mingw_debug_package}
%endif
%prep %prep
%setup -q %{?candidate:-n %{name}-%{version}-%{candidate}} %setup -q %{?candidate:-n %{name}-%{version}-%{candidate}}
cp %{SOURCE1} . cp %{SOURCE1} .
cp %{SOURCE2} . cp %{SOURCE2} .
%build %build
autoreconf -ivf %configure --enable-custom-modes --disable-static
mkdir build_native
pushd build_native
%global _configure ../configure
%configure --enable-custom-modes --disable-static \
--enable-hardening \
%ifarch %{arm} %{arm64} %{power64}
--enable-fixed-point
%endif
%make_build make %{?_smp_mflags} V=1
popd
%if %{with mingw}
%mingw_configure --enable-custom-modes --disable-static --disable-doc
%mingw_make %{?_smp_mflags} V=1
%endif
%install %install
%make_install -C build_native make install DESTDIR=%{buildroot}
rm %{buildroot}%{_libdir}/libopus.la # Remove libtool archives and static libs
rm -rf %{buildroot}%{_datadir}/doc/opus find %{buildroot} -type f -name "*.la" -delete
rm -rf %{buildroot}%{_datadir}/doc/opus/html
%if %{with mingw}
%mingw_make_install DESTDIR=%{buildroot}
rm %{buildroot}%{mingw32_libdir}/libopus.la
rm %{buildroot}%{mingw64_libdir}/libopus.la
%mingw_debug_install_post
%endif
%check %check
make -C build_native check %{?_smp_mflags} V=1 make check
%ldconfig_scriptlets %ldconfig_scriptlets
%if %{with mingw}
%if %{with tests}
%mingw_make check
%endif
%endif
%files %files
%license COPYING %license COPYING
%{_libdir}/libopus.so.* %{_libdir}/libopus.so.*
%files devel %files devel
%doc README build_native/doc/html rfc6716.txt rfc8251.txt %doc README doc/html rfc6716.txt rfc8251.txt
%{_includedir}/opus %{_includedir}/opus
%{_libdir}/libopus.so %{_libdir}/libopus.so
%{_libdir}/pkgconfig/opus.pc %{_libdir}/pkgconfig/opus.pc
%{_datadir}/aclocal/opus.m4 %{_datadir}/aclocal/opus.m4
%{_datadir}/man/man3/opus_*.3.gz %{_datadir}/man/man3/opus_*.3.gz
%if %{with mingw}
%files -n mingw32-%{name}
%license COPYING
%dir %{mingw32_includedir}/opus/
%{mingw32_bindir}/libopus-0.dll
%{mingw32_includedir}/opus/*.h
%{mingw32_libdir}/libopus.dll.a
%{mingw32_libdir}/pkgconfig/opus.pc
%{mingw32_datadir}/aclocal/opus.m4
%files -n mingw64-%{name}
%license COPYING
%dir %{mingw64_includedir}/opus/
%{mingw64_bindir}/libopus-0.dll
%{mingw64_includedir}/opus/*.h
%{mingw64_libdir}/libopus.dll.a
%{mingw64_libdir}/pkgconfig/opus.pc
%{mingw64_datadir}/aclocal/opus.m4
%endif
%changelog %changelog
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1.4-6
- Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.4-5
- Bump release for June 2024 mass rebuild
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Wed Nov 08 2023 Marian Koncek <mkoncek@redhat.com> - 1.4-2
- Make mingw subpackages noarch
* Wed Sep 27 2023 Marian Koncek <mkoncek@redhat.com> - 1.4-1
- Update to upstream version 1.4
- Add mingw subpackages
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
- Fix build in all arches, copied from Debian
- Run autoreconf to make sure that autotools are updated
- Clean up some trailing white spaces
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Mon Sep 28 2020 Jeff Law <law@redhat.com> - 1.3.1-7
- Re-enable LTO as upstream GCC target/96939 has been fixed
* Mon Aug 10 2020 Jeff Law <law@redhat.com> - 1.3.1-6
- Disable LTO for now
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-5
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sun Apr 14 2019 Peter Robinson <pbrobinson@fedoraproject.org> 1.3.1-1
- Update to 1.3.1
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Thu Oct 18 2018 Peter Robinson <pbrobinson@fedoraproject.org> 1.3-1
- Update to 1.3
* Wed Sep 19 2018 Peter Robinson <pbrobinson@fedoraproject.org> 1.3-0.7.rc2
- Update to 1.3 rc2
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-0.6.rc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Sat Jun 2 2018 Peter Robinson <pbrobinson@fedoraproject.org> 1.3-0.5.rc
- Update to 1.3 rc
* Fri Mar 9 2018 Peter Robinson <pbrobinson@fedoraproject.org> 1.3-0.4.beta * Fri Mar 9 2018 Peter Robinson <pbrobinson@fedoraproject.org> 1.3-0.4.beta
- Add gcc BR - Add gcc BR

View File

@ -1 +1 @@
SHA512 (opus-1.4.tar.gz) = 1ecd39e0add24de12823bf7c936bb67441228721e2cdae0edbfcf3cee0894bcc6edf2a1d0ca5cdfdad1565803bf39cc4c985ad32710c2a9582f850adeb5ca631 SHA512 (opus-1.3-beta.tar.gz) = c107edc0762d9d215e5fccc796b6b6fa6aa5d574968430e3e95bca953ed2cacf11f4a625be8e5a3f9212c9cfafa439a323fe3bb1f9fb72d0b91e8f37dcdfa6fa