108101f
%{?mingw_package_header}
108101f
108101f
%global _basename opusfile
108101f
108101f
Name:          mingw-%{_basename}
7c7c08e
Version:       0.12
6a3bb07
Release:       13%{?dist}
108101f
Summary:       A high-level API for decoding and seeking within .opus files
108101f
ca7e69e
License:       BSD-3-Clause
7c7c08e
URL:           https://www.opus-codec.org/
7c7c08e
Source0:       https://downloads.xiph.org/releases/opus/%{_basename}-%{version}.tar.gz
f2acac8
# https://bugzilla.redhat.com/show_bug.cgi?id=1675383
f2acac8
Patch0:        opusfile-0.11-disable-cert-store-integration.patch
ca7e69e
# https://bugzilla.redhat.com/show_bug.cgi?id=2163898
ca7e69e
Patch1:        mingw-opusfile-0.12-CVE-2022-47021.patch
108101f
108101f
BuildArch:     noarch
108101f
f509f29
BuildRequires: make
108101f
BuildRequires: mingw32-filesystem >= 95
108101f
BuildRequires: mingw32-gcc
108101f
BuildRequires: mingw32-libogg
108101f
BuildRequires: mingw32-openssl
108101f
BuildRequires: mingw32-opus
108101f
108101f
BuildRequires: mingw64-filesystem >= 95
108101f
BuildRequires: mingw64-gcc
108101f
BuildRequires: mingw64-libogg
108101f
BuildRequires: mingw64-openssl
108101f
BuildRequires: mingw64-opus
108101f
108101f
%description
108101f
libopusfile provides a high-level API for decoding and seeking
108101f
within .opus files. It includes:
108101f
* Support for all files with at least one Opus stream (including
108101f
multichannel files or Ogg files where Opus is muxed with something else).
108101f
* Full support, including seeking, for chained files.
108101f
* A simple stereo downmixing API (allowing chained files to be
108101f
decoded with a single output format, even if the channel count changes).
108101f
* Support for reading from a file, memory buffer, or over HTTP(S)
108101f
(including seeking).
108101f
* Support for both random access and streaming data sources.
108101f
108101f
%package -n mingw32-%{_basename}
108101f
Summary: A high-level API for decoding and seeking within .opus files
108101f
108101f
%description -n mingw32-%{_basename}
108101f
libopusfile provides a high-level API for decoding and seeking
108101f
within .opus files. It includes:
108101f
* Support for all files with at least one Opus stream (including
108101f
multichannel files or Ogg files where Opus is muxed with something else).
108101f
* Full support, including seeking, for chained files.
108101f
* A simple stereo downmixing API (allowing chained files to be
108101f
decoded with a single output format, even if the channel count changes).
108101f
* Support for reading from a file, memory buffer, or over HTTP(S)
108101f
(including seeking).
108101f
* Support for both random access and streaming data sources.
108101f
This is the MinGW version, built for the win32 target.
108101f
108101f
%package -n mingw64-%{_basename}
108101f
Summary: A high-level API for decoding and seeking within .opus files
108101f
108101f
%description -n mingw64-%{_basename}
108101f
libopusfile provides a high-level API for decoding and seeking
108101f
within .opus files. It includes:
108101f
* Support for all files with at least one Opus stream (including
108101f
multichannel files or Ogg files where Opus is muxed with something else).
108101f
* Full support, including seeking, for chained files.
108101f
* A simple stereo downmixing API (allowing chained files to be
108101f
decoded with a single output format, even if the channel count changes).
108101f
* Support for reading from a file, memory buffer, or over HTTP(S)
108101f
(including seeking).
108101f
* Support for both random access and streaming data sources.
108101f
This is the MinGW version, built for the win64 target.
108101f
108101f
%{?mingw_debug_package}
108101f
108101f
108101f
%prep
ca7e69e
%autosetup -p1 -n %{_basename}-%{version}
108101f
108101f
108101f
%build
108101f
%{mingw_configure} --disable-static
108101f
108101f
%{mingw_make} %{?_smp_mflags} V=1
108101f
108101f
108101f
%install
108101f
# Unset dist_doc_DATA to prevent installing docs. Use files sections instead.
ce95682
%{mingw_make} DESTDIR=%{buildroot} INSTALL='install -p' dist_doc_DATA= install 
108101f
108101f
# Remove libtool archives.
ce95682
find %{buildroot} -name '*.la' -delete
108101f
108101f
108101f
%files -n mingw32-%{_basename}
f2acac8
%doc AUTHORS README.md
8169ba7
%license COPYING
108101f
%{mingw32_bindir}/libopusfile-0.dll
108101f
%{mingw32_bindir}/libopusurl-0.dll
108101f
%{mingw32_libdir}/libopusfile.dll.a
108101f
%{mingw32_libdir}/libopusurl.dll.a
108101f
%{mingw32_libdir}/pkgconfig/opusfile.pc
108101f
%{mingw32_libdir}/pkgconfig/opusurl.pc
108101f
%{mingw32_includedir}/opus/opus*
108101f
108101f
%files -n mingw64-%{_basename}
f2acac8
%doc AUTHORS README.md
8169ba7
%license COPYING
108101f
%{mingw64_bindir}/libopusfile-0.dll
108101f
%{mingw64_bindir}/libopusurl-0.dll
108101f
%{mingw64_libdir}/libopusfile.dll.a
108101f
%{mingw64_libdir}/libopusurl.dll.a
108101f
%{mingw64_libdir}/pkgconfig/opusfile.pc
108101f
%{mingw64_libdir}/pkgconfig/opusurl.pc
108101f
%{mingw64_includedir}/opus/opus*
108101f
108101f
108101f
%changelog
6a3bb07
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-13
6a3bb07
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
6a3bb07
b5c1abf
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-12
b5c1abf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
b5c1abf
f442c0b
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-11
f442c0b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
f442c0b
ca7e69e
* Tue Jan 24 2023 David King <amigadave@amigadave.com> - 0.12-10
ca7e69e
- Fix CVE-2022-47021 (#2163898)
ca7e69e
f5112ea
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-9
f5112ea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
f5112ea
8880dd6
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-8
8880dd6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
8880dd6
cd6d6d1
* Fri Mar 25 2022 Sandro Mani <manisandro@gmail.com> - 0.12-7
cd6d6d1
- Rebuild with mingw-gcc-12
cd6d6d1
1b97496
* Thu Feb 17 2022 Sandro Mani <manisandro@gmail.com> - 0.12-6
1b97496
- Rebuild (openssl)
1b97496
b054b92
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-5
b054b92
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
b054b92
5df64a9
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-4
5df64a9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
5df64a9
7185458
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-3
7185458
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
7185458
62ae3d7
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-2
62ae3d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
62ae3d7
7c7c08e
* Sat Jun 27 2020 David King <amigadave@amigadave.com> - 0.12-1
7c7c08e
- Update to 0.12
7c7c08e
a654d99
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-4
a654d99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
a654d99
4df25ad
* Tue Oct 08 2019 Sandro Mani <manisandro@gmail.com> - 0.11-3
4df25ad
- Rebuild (Changes/Mingw32GccDwarf2)
4df25ad
c89577e
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-2
c89577e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
c89577e
f2acac8
* Wed Feb 13 2019 David King <amigadave@amigadave.com> - 0.11-1
f2acac8
- Update to 0.11 (#1675383)
f2acac8
b985f8d
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8-7
b985f8d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
b985f8d
67bc974
* Fri Aug 24 2018 Richard W.M. Jones <rjones@redhat.com> - 0.8-6
67bc974
- Rebuild for new mingw-openssl.
67bc974
a9febe3
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8-5
a9febe3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
a9febe3
01979d5
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8-4
01979d5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
01979d5
53be95a
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8-3
53be95a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
53be95a
1b6d1c0
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8-2
1b6d1c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
1b6d1c0
8169ba7
* Tue Oct 04 2016 David King <amigadave@amigadave.com> - 0.8-1
8169ba7
- Update to 0.8
8169ba7
0aa03c1
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.7-2
0aa03c1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
0aa03c1
ce95682
* Thu Jan 07 2016 David King <amigadave@amigadave.com> - 0.7-1
ce95682
- Update to 0.7
ce95682
af05720
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-2
af05720
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
af05720
6d81d38
* Sat Jun 14 2014 David King <amigadave@amigadave.com> 0.6-1
6d81d38
- Update to 0.6
6d81d38
8060004
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-2
8060004
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
8060004
108101f
* Thu Apr 24 2014 David King <amigadave@amigadave.com> 0.5-1
108101f
- Ported Fedora package to MinGW (#1085352)