707b6df
#global candidate rc2
2188397
c3ad3d6
%if 0%{?fedora}
c3ad3d6
%bcond_without mingw
c3ad3d6
c3ad3d6
# uses wine, requires enabled binfmt
c3ad3d6
%bcond_with tests
c3ad3d6
%else
c3ad3d6
%bcond_with mingw
c3ad3d6
%endif
c3ad3d6
5d83a4d
Name:     opus
a17bd26
Version:  1.5.1
a17bd26
Release:  1%{?candidate:.%{candidate}}%{?dist}
5d83a4d
Summary:  An audio codec for use in low-delay speech and audio communication
a64b7dd
License:  BSD-3-Clause AND BSD-2-Clause
d509b94
URL:      https://www.opus-codec.org/
9b05329
9376a01
Source0:  https://ftp.osuosl.org/pub/xiph/releases/%{name}/%{name}-%{version}%{?candidate:-%{candidate}}.tar.gz
e5b0f25
# This is the final IETF Working Group RFC
9376a01
Source1:  https://tools.ietf.org/rfc/rfc6716.txt
9376a01
Source2:  https://tools.ietf.org/rfc/rfc8251.txt
5d83a4d
08dda45
BuildRequires: make
188f402
BuildRequires: gcc
2915b32
BuildRequires: doxygen
eae8fa7
BuildRequires: libtool
e0e828a
c3ad3d6
%if %{with mingw}
c3ad3d6
BuildRequires: mingw32-filesystem
c3ad3d6
BuildRequires: mingw32-gcc
c3ad3d6
c3ad3d6
BuildRequires: mingw64-gcc
c3ad3d6
BuildRequires: mingw64-filesystem
c3ad3d6
c3ad3d6
%if %{with tests}
c3ad3d6
BuildRequires: wine
c3ad3d6
%endif
c3ad3d6
%endif
c3ad3d6
e0e828a
%description
b3b83d1
The Opus codec is designed for interactive speech and audio transmission over
b3b83d1
the Internet. It is designed by the IETF Codec Working Group and incorporates
e0e828a
technology from Skype's SILK codec and Xiph.Org's CELT codec.
e0e828a
9b05329
%package  devel
9b05329
Summary:  Development package for opus
e0e828a
Requires: libogg-devel
e0e828a
Requires: opus = %{version}-%{release}
e0e828a
e0e828a
%description devel
e0e828a
Files for development with opus.
e0e828a
c3ad3d6
%if %{with mingw}
c3ad3d6
%package -n mingw32-%{name}
c3ad3d6
Summary: MinGW compiled %{name} library for Win32 target
83c72b5
BuildArch: noarch
c3ad3d6
c3ad3d6
%description -n mingw32-%{name}
c3ad3d6
This package contains the MinGW compiled library of %{name}
c3ad3d6
for Win32 target.
c3ad3d6
c3ad3d6
%package -n mingw64-%{name}
c3ad3d6
Summary: MinGW compiled %{name} library for Win64 target
83c72b5
BuildArch: noarch
c3ad3d6
c3ad3d6
%description -n mingw64-%{name}
c3ad3d6
This package contains the MinGW compiled library of %{name}
c3ad3d6
for Win64 target.
c3ad3d6
c3ad3d6
%{?mingw_debug_package}
c3ad3d6
%endif
c3ad3d6
e0e828a
%prep
2188397
%setup -q %{?candidate:-n %{name}-%{version}-%{candidate}}
e0e828a
cp %{SOURCE1} .
ce65dcc
cp %{SOURCE2} .
e0e828a
e0e828a
%build
eae8fa7
autoreconf -ivf
c3ad3d6
mkdir build_native
c3ad3d6
pushd build_native
c3ad3d6
%global _configure ../configure
dd89e42
%configure --enable-custom-modes --disable-static \
bf9a945
           --enable-hardening \
bf9a945
%ifarch %{arm} %{arm64} %{power64}
bf9a945
        --enable-fixed-point
bf9a945
%endif
bf9a945
4da038a
%make_build
c3ad3d6
popd
c3ad3d6
c3ad3d6
%if %{with mingw}
c3ad3d6
%mingw_configure --enable-custom-modes --disable-static --disable-doc
c3ad3d6
%mingw_make %{?_smp_mflags} V=1
c3ad3d6
%endif
e0e828a
e0e828a
%install
c3ad3d6
%make_install -C build_native
e0e828a
c3ad3d6
rm %{buildroot}%{_libdir}/libopus.la
c3ad3d6
rm -rf %{buildroot}%{_datadir}/doc/opus
c3ad3d6
c3ad3d6
%if %{with mingw}
c3ad3d6
%mingw_make_install DESTDIR=%{buildroot}
c3ad3d6
rm %{buildroot}%{mingw32_libdir}/libopus.la
c3ad3d6
rm %{buildroot}%{mingw64_libdir}/libopus.la
c3ad3d6
%mingw_debug_install_post
c3ad3d6
%endif
e0e828a
54b27b3
%check
c3ad3d6
make -C build_native check %{?_smp_mflags} V=1
54b27b3
ef924c0
%ldconfig_scriptlets
e0e828a
c3ad3d6
%if %{with mingw}
c3ad3d6
%if %{with tests}
c3ad3d6
%mingw_make check
c3ad3d6
%endif
c3ad3d6
%endif
c3ad3d6
e0e828a
%files
7e65e28
%license COPYING
a17bd26
%{_libdir}/libopus.so.0*
e0e828a
e0e828a
%files devel
c3ad3d6
%doc README build_native/doc/html rfc6716.txt rfc8251.txt
e0e828a
%{_includedir}/opus
e0e828a
%{_libdir}/libopus.so
3dc3877
%{_libdir}/pkgconfig/opus.pc
b07fcec
%{_datadir}/aclocal/opus.m4
2915b32
%{_datadir}/man/man3/opus_*.3.gz
e0e828a
c3ad3d6
%if %{with mingw}
c3ad3d6
%files -n mingw32-%{name}
c3ad3d6
%license COPYING
c3ad3d6
%dir %{mingw32_includedir}/opus/
c3ad3d6
%{mingw32_bindir}/libopus-0.dll
c3ad3d6
%{mingw32_includedir}/opus/*.h
c3ad3d6
%{mingw32_libdir}/libopus.dll.a
c3ad3d6
%{mingw32_libdir}/pkgconfig/opus.pc
c3ad3d6
%{mingw32_datadir}/aclocal/opus.m4
c3ad3d6
c3ad3d6
%files -n mingw64-%{name}
c3ad3d6
%license COPYING
c3ad3d6
%dir %{mingw64_includedir}/opus/
c3ad3d6
%{mingw64_bindir}/libopus-0.dll
c3ad3d6
%{mingw64_includedir}/opus/*.h
c3ad3d6
%{mingw64_libdir}/libopus.dll.a
c3ad3d6
%{mingw64_libdir}/pkgconfig/opus.pc
c3ad3d6
%{mingw64_datadir}/aclocal/opus.m4
c3ad3d6
%endif
c3ad3d6
e0e828a
%changelog
a17bd26
* Mon Mar 04 2024 Peter Robinson <pbrobinson@fedoraproject.org> - 1.5.1-1
a17bd26
- Update to 1.5.1
a17bd26
ef2d867
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-4
ef2d867
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
ef2d867
c7ac06b
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-3
c7ac06b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
c7ac06b
83c72b5
* Wed Nov 08 2023 Marian Koncek <mkoncek@redhat.com> - 1.4-2
83c72b5
- Make mingw subpackages noarch
83c72b5
060bf2f
* Wed Sep 27 2023 Marian Koncek <mkoncek@redhat.com> - 1.4-1
060bf2f
- Update to upstream version 1.4
c3ad3d6
- Add mingw subpackages
060bf2f
b49a829
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-13
b49a829
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
b49a829
891f1da
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-12
891f1da
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
bf9a945
- Fix build in all arches, copied from Debian
eae8fa7
- Run autoreconf to make sure that autotools are updated
b3b83d1
- Clean up some trailing white spaces
891f1da
d2fdadb
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-11
d2fdadb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
d2fdadb
f4a10f0
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-10
f4a10f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
f4a10f0
211da48
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-9
211da48
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
211da48
2d499ab
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-8
2d499ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
2d499ab
ac93f3a
* Mon Sep 28 2020 Jeff Law <law@redhat.com> - 1.3.1-7
ac93f3a
- Re-enable LTO as upstream GCC target/96939 has been fixed
ac93f3a
6636b37
* Mon Aug 10 2020 Jeff Law <law@redhat.com> - 1.3.1-6
6636b37
- Disable LTO for now
6636b37
0467bdf
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-5
0467bdf
- Second attempt - Rebuilt for
0467bdf
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
0467bdf
4f264e1
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-4
4f264e1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
4f264e1
8cdc99d
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-3
8cdc99d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
8cdc99d
e12f902
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-2
e12f902
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
e12f902
9d00c38
* Sun Apr 14 2019 Peter Robinson <pbrobinson@fedoraproject.org> 1.3.1-1
9d00c38
- Update to 1.3.1
9d00c38
ec7f95e
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-2
ec7f95e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
ec7f95e
707b6df
* Thu Oct 18 2018 Peter Robinson <pbrobinson@fedoraproject.org> 1.3-1
707b6df
- Update to 1.3
707b6df
955d6a1
* Wed Sep 19 2018 Peter Robinson <pbrobinson@fedoraproject.org> 1.3-0.7.rc2
955d6a1
- Update to 1.3 rc2
955d6a1
3cd30c2
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-0.6.rc
3cd30c2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
3cd30c2
a2621a7
* Sat Jun  2 2018 Peter Robinson <pbrobinson@fedoraproject.org> 1.3-0.5.rc
dd89e42
- Update to 1.3 rc
dd89e42
188f402
* Fri Mar  9 2018 Peter Robinson <pbrobinson@fedoraproject.org> 1.3-0.4.beta
188f402
- Add gcc BR
188f402
3cd2b15
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-0.3.beta
3cd2b15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
3cd2b15
ef924c0
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.3-0.2.beta
ef924c0
- Switch to %%ldconfig_scriptlets
ef924c0
2188397
* Fri Dec 22 2017 Peter Robinson <pbrobinson@fedoraproject.org> 1.3-0.1.beta
2188397
- Update to 1.3 beta
2188397
b718617
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-3
b718617
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
b718617
9576c59
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-2
9576c59
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
9576c59
59b6a57
* Wed Jun 28 2017 Peter Robinson <pbrobinson@fedoraproject.org> 1.2.1-1
59b6a57
- Update to 1.2.1
59b6a57
d509b94
* Tue Jun 20 2017 Peter Robinson <pbrobinson@fedoraproject.org> 1.2-1
d509b94
- Update to 1.2
d509b94
9b05329
* Fri Jun  9 2017 Peter Robinson <pbrobinson@fedoraproject.org> 1.2-0.4
9b05329
- Update to 1.2.0 RC1
9b05329
c991fac
* Wed May 24 2017 Peter Robinson <pbrobinson@fedoraproject.org> 1.2-0.3
c991fac
- Update to 1.2.0 Beta
c991fac
a25e372
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-0.2
a25e372
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
a25e372
ce65dcc
* Fri Nov  4 2016 Peter Robinson <pbrobinson@fedoraproject.org> 1.2-0.1
ce65dcc
- Update to 1.2.0 Alpha
ce65dcc
f6d7267
* Mon Jul 18 2016 Peter Robinson <pbrobinson@fedoraproject.org> 1.1.3-1
f6d7267
- Update 1.1.3 GA
f6d7267
2898e91
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-2
2898e91
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2898e91
e12a0e5
* Tue Jan 12 2016 Peter Robinson <pbrobinson@fedoraproject.org> 1.1.2-1
e12a0e5
- Update 1.1.2 GA
e12a0e5
cd60aef
* Thu Nov 26 2015 Peter Robinson <pbrobinson@fedoraproject.org> 1.1.1-1
cd60aef
- Update 1.1.1 GA
cd60aef
c8ac2e7
* Wed Oct 28 2015 Peter Robinson <pbrobinson@fedoraproject.org> 1.1.1-0.4.rc
c8ac2e7
- Update to 1.1.1 RC (further ARM optimisations)
c8ac2e7
5d4b2e6
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-0.3.beta
5d4b2e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
5d4b2e6
7e65e28
* Tue Feb  3 2015 Peter Robinson <pbrobinson@fedoraproject.org> 1.1.1-0.2.beta
7e65e28
- Use %%license
7e65e28
32366f2
* Wed Oct 15 2014 Peter Robinson <pbrobinson@fedoraproject.org> 1.1.1-0.1.beta
32366f2
- Update to 1.1.1 beta (SSE, ARM, MIPS optimisations)
32366f2
f8f9600
* Sun Oct  5 2014 Peter Robinson <pbrobinson@fedoraproject.org> 1.1-5
f8f9600
- Install html docs in devel package
f8f9600
2915b32
* Fri Oct  3 2014 Peter Robinson <pbrobinson@fedoraproject.org> 1.1-4
2915b32
- Build developer docs
2915b32
aa543ea
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-3
aa543ea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
aa543ea
851390d
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-2
851390d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
851390d
feef616
* Fri Dec  6 2013 Peter Robinson <pbrobinson@fedoraproject.org> 1.1-1
feef616
- 1.1 release
feef616
5620239
* Tue Dec  3 2013 Peter Robinson <pbrobinson@fedoraproject.org> 1.1-0.3rc3
5620239
- Update to 1.1-rc3
5620239
d92c66f
* Thu Nov 28 2013 Peter Robinson <pbrobinson@fedoraproject.org> 1.1-0.2rc2
d92c66f
- Update to 1.1-rc2
d92c66f
6c563e1
* Tue Nov 26 2013 Peter Robinson <pbrobinson@fedoraproject.org> 1.1-0.1rc
6c563e1
- Update to 1.1-rc
6c563e1
b7b624c
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-2
b7b624c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
b7b624c
90e2644
* Sun Jul 14 2013 Peter Robinson <pbrobinson@fedoraproject.org> 1.0.3-1
90e2644
- 1.0.3 release
90e2644
4043321
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-3
4043321
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
4043321
35db940
* Thu Jan 10 2013 Peter Robinson <pbrobinson@fedoraproject.org> 1.0.2-2
35db940
- Enable extra custom modes API
35db940
47b5766
* Thu Dec  6 2012 Peter Robinson <pbrobinson@fedoraproject.org> 1.0.2-1
47b5766
- Official 1.0.2 release
47b5766
029a89a
* Wed Sep 12 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 1.0.1-1
029a89a
- Official 1.0.1 release now rfc6716 is stable
029a89a
f9e4cc6
* Tue Sep  4 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 1.0.1rc3-0.1
f9e4cc6
- Update to 1.0.1rc3
f9e4cc6
3fabbc6
* Thu Aug  9 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 1.0.0rc1-0.1
3fabbc6
- Update to 1.0.0rc1
3fabbc6
69e44c7
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.14-2
69e44c7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
69e44c7
483e27a
* Sun May 27 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 0.9.14-1
483e27a
- Update to 0.9.14
483e27a
54b27b3
* Sat May 12 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 0.9.10-2
54b27b3
- Add make check - fixes RHBZ # 821128
54b27b3
c8e5c9b
* Fri Apr 27 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 0.9.10-1
c8e5c9b
- Update to 0.9.10
c8e5c9b
53897d6
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.8-2
53897d6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
53897d6
3f79b7d
* Tue Nov  8 2011 Peter Robinson <pbrobinson@fedoraproject.org> 0.9.8-1
3f79b7d
- Update to 0.9.8
3f79b7d
e0e828a
* Mon Oct 10 2011 Peter Robinson <pbrobinson@fedoraproject.org> 0.9.6-1
e0e828a
- Initial packaging