a1f7978
%if 0%{?fedora} < 32
a1f7978
%global         py2 1
a1f7978
%endif
a1f7978
979f807
Summary:        Multi-library, cross-platform audio decoding in Python
979f807
Name:           python-audioread
8a41f15
Version:        2.1.9
45e8001
Release:        2%{?dist}
979f807
License:        MIT
979f807
URL:            http://pypi.python.org/pypi/audioread/
b6c0e15
Source0:        https://files.pythonhosted.org/packages/source/a/audioread/audioread-%{version}.tar.gz
979f807
BuildArch:      noarch
a1f7978
%if 0%{?py2}
979f807
BuildRequires:  python2-devel
a1f7978
Buildrequires:  python2-pytest-runner
a1f7978
%endif
03c709b
BuildRequires:  python3-devel
a1f7978
Buildrequires:  python3-pytest-runner
8dad877
%global _description \
8dad877
Decode audio files using whichever backend is available. Among\
8dad877
currently supports backends are\
8dad877
 o Gstreamer via PyGObject\
8dad877
 o MAD via the pymad bindings\
8dad877
 o FFmpeg or Libav via its command-line interface\
f9c93c8
 o The standard library wave, aifc, and sunau modules
8dad877
%description %_description
979f807
a1f7978
%if 0%{?py2}
f9c93c8
%package     -n python2-audioread
03c709b
Summary:        Multi-library, cross-platform audio decoding in Python
a2900b2
Requires:       python2-gobject
f9c93c8
Requires:       gstreamer1
f9c93c8
Requires:       gstreamer1-plugins-base
f9c93c8
Requires:       gstreamer1-plugins-good
c97dba2
%{?python_provide:%python_provide python2-audioread}
8dad877
%description -n python2-audioread %_description
a1f7978
%endif
f9c93c8
f9c93c8
%package    -n  python3-audioread
f9c93c8
Summary:        Multi-library, cross-platform audio decoding in Python
f9c93c8
Requires:       python3-gobject
f9c93c8
Requires:       gstreamer1
f9c93c8
Requires:       gstreamer1-plugins-base
f9c93c8
Requires:       gstreamer1-plugins-good
c97dba2
%{?python_provide:%python_provide python3-audioread}
8dad877
%description -n python3-audioread %_description
03c709b
979f807
%prep
f9c93c8
%setup -q -n audioread-%{version}
979f807
979f807
%build
a1f7978
%{?py2:%{py2_build}}
f9c93c8
%{py3_build}
979f807
979f807
%install
a1f7978
%{?py2:%{py2_install}}
f9c93c8
%{py3_install}
979f807
a1f7978
%if 0%{?py2}
f9c93c8
%files -n python2-audioread
979f807
%doc README.rst decode.py
03c709b
%{python2_sitelib}/audioread/
03c709b
%{python2_sitelib}/audioread-%{version}-*.egg-info
a1f7978
%endif
03c709b
03c709b
%files -n python3-audioread
03c709b
%doc README.rst decode.py
03c709b
%{python3_sitelib}/audioread/
03c709b
%{python3_sitelib}/audioread-%{version}-*.egg-info
f9c93c8
979f807
%changelog
45e8001
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.9-2
45e8001
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
45e8001
8a41f15
* Tue Oct 27 2020 Terje Rosten <terje.rosten@ntnu.no> - 2.1.9-1
8a41f15
- 2.1.9
8a41f15
9a5ecd3
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.8-6
9a5ecd3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
9a5ecd3
de0b21c
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.1.8-5
de0b21c
- Rebuilt for Python 3.9
de0b21c
b911585
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.8-4
b911585
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
b911585
a1f7978
* Sun Sep 01 2019 Terje Rosten <terje.rosten@ntnu.no> - 2.1.8-3
a1f7978
- No Python 2 in newer Fedoras
a1f7978
16ee5b5
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.1.8-2
16ee5b5
- Rebuilt for Python 3.8
16ee5b5
54fe0f9
* Fri Aug 09 2019 Terje Rosten <terje.rosten@ntnu.no> - 2.1.8-1
54fe0f9
- 2.1.8
54fe0f9
607fee0
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.7-2
607fee0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
607fee0
34ef791
* Sat May 25 2019 Terje Rosten <terje.rosten@ntnu.no> - 2.1.7-1
34ef791
- 2.1.7
34ef791
c9917a5
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.6-4
c9917a5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
c9917a5
82cd4ce
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.6-3
82cd4ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
82cd4ce
a7c7493
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.1.6-2
a7c7493
- Rebuilt for Python 3.7
a7c7493
8dad877
* Tue Jun 12 2018 Terje Rosten <terje.rosten@ntnu.no> - 2.1.6-1
8dad877
- 2.1.6
8dad877
fd359e1
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.5-4
fd359e1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
fd359e1
a2900b2
* Mon Jan 15 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.1.5-3
a2900b2
- Update Python 2 dependency declarations to new packaging standards
a2900b2
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
a2900b2
74c7582
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.5-2
74c7582
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
74c7582
b6c0e15
* Mon Jun 12 2017 Terje Rosten <terje.rosten@ntnu.no> - 2.1.5-1
b6c0e15
- 2.1.5
b6c0e15
9ebf8d4
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.2-6
9ebf8d4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
9ebf8d4
01152fb
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2.1.2-5
01152fb
- Rebuild for Python 3.6
01152fb
995ec44
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.2-4
995ec44
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
995ec44
47aba71
* Mon Feb 15 2016 Terje Rosten <terje.rosten@ntnu.no> - 2.1.2-3
47aba71
- Ranaming of pygobject3 was done in F23 (rhbz#1308613)
47aba71
c97dba2
* Tue Feb 02 2016 Terje Rosten <terje.rosten@ntnu.no> - 2.1.2-2
c97dba2
- Add proper python*-audioread provides
c97dba2
f9c93c8
* Mon Feb 01 2016 Terje Rosten <terje.rosten@ntnu.no> - 2.1.2-1
f9c93c8
- 2.1.2
f9c93c8
ce82d67
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-5
ce82d67
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
ce82d67
9c0da88
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-4
9c0da88
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
9c0da88
0961850
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-3
0961850
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
0961850
7f8d4ac
* Tue May 27 2014 Kalev Lember <kalevlember@gmail.com> - 1.0.1-2
7f8d4ac
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
7f8d4ac
03c709b
* Mon Nov 18 2013 Terje Røsten <terje.rosten@ntnu.no> - 1.0.1-1
03c709b
- 1.0.1
03c709b
- Python 3 support
03c709b
00eadd3
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-3
00eadd3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
00eadd3
1e7753c
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-2
1e7753c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
1e7753c
979f807
* Fri Aug 24 2012 Terje Røsten <terje.rosten@ntnu.no> - 0.6-1
979f807
- initial package
979f807