diff --git a/.gitignore b/.gitignore index cdf608e..5853f0c 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /audioread-0.6.tar.gz +/audioread-1.0.1.tar.gz diff --git a/python-audioread.spec b/python-audioread.spec index ef11c4f..4dc7173 100644 --- a/python-audioread.spec +++ b/python-audioread.spec @@ -1,15 +1,22 @@ +%global with_python3 1 + %global oname audioread Summary: Multi-library, cross-platform audio decoding in Python Name: python-audioread -Version: 0.6 -Release: 3%{?dist} +Version: 1.0.1 +Release: 1%{?dist} License: MIT URL: http://pypi.python.org/pypi/audioread/ Source0: http://pypi.python.org/packages/source/a/audioread/audioread-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-setuptools +%if 0%{?with_python3} +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python-tools +%endif Requires: gstreamer-python %description @@ -18,21 +25,56 @@ currently supports backends are o Gstreamer via gstreamer-python o The standard library wave and aifc modules (for WAV and AIFF files) +%if 0%{?with_python3} +%package -n python3-audioread +Summary: Multi-library, cross-platform audio decoding in Python +#Requires: gstreamer-python +%description -n python3-audioread +Decode audio files using whichever backend is available. Among +currently supports backends are + o Gstreamer via gstreamer-python + o The standard library wave and aifc modules (for WAV and AIFF files) +%endif # if with_python3 + %prep %setup -q -n %{oname}-%{version} +%if 0%{?with_python3} +rm -rf %{py3dir} +cp -a . %{py3dir} +%endif %build -%{__python} setup.py build +%{__python2} setup.py build +%if 0%{?with_python3} +pushd %{py3dir} +2to3 --write --nobackups . +%{__python3} setup.py build +%endif %install -%{__python} setup.py install -O1 --skip-build --root %{buildroot} +%{__python2} setup.py install -O1 --skip-build --root %{buildroot} +%if 0%{?with_python3} +pushd %{py3dir} +%{__python3} setup.py install -O1 --skip-build --root %{buildroot} +%endif %files %doc README.rst decode.py -%{python_sitelib}/audioread/ -%{python_sitelib}/audioread-%{version}-*.egg-info +%{python2_sitelib}/audioread/ +%{python2_sitelib}/audioread-%{version}-*.egg-info + +%if 0%{?with_python3} +%files -n python3-audioread +%doc README.rst decode.py +%{python3_sitelib}/audioread/ +%{python3_sitelib}/audioread-%{version}-*.egg-info +%endif %changelog +* Mon Nov 18 2013 Terje Røsten - 1.0.1-1 +- 1.0.1 +- Python 3 support + * Sun Aug 04 2013 Fedora Release Engineering - 0.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild diff --git a/sources b/sources index ec3a276..f95081b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -24287f2123828da689373a66e0a5c95c audioread-0.6.tar.gz +2073c69e218b6985c7853aa9cc580877 audioread-1.0.1.tar.gz