diff --git a/python-audioread.changes b/python-audioread.changes index d504ff2..bb55d60 100644 --- a/python-audioread.changes +++ b/python-audioread.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Apr 21 17:51:35 UTC 2017 - alarrosa@suse.com + +- Use singlespec macros + ------------------------------------------------------------------- Wed Jan 18 12:16:46 UTC 2017 - alarrosa@suse.com diff --git a/python-audioread.spec b/python-audioread.spec index 346773b..bc24205 100644 --- a/python-audioread.spec +++ b/python-audioread.spec @@ -1,7 +1,7 @@ # # spec file for package python-audioread # -# Copyright (c) 2017 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -13,23 +13,24 @@ # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ +# +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-audioread Version: 2.1.4 Release: 0 -License: MIT Summary: multi-library, cross-platform audio decoding -Url: https://github.com/sampsyo/audioread +License: MIT Group: Development/Languages/Python +Url: https://github.com/sampsyo/audioread Source: https://files.pythonhosted.org/packages/source/a/audioread/audioread-%{version}.tar.gz -BuildRequires: python-devel +BuildRequires: %{python_module devel} +BuildRequires: python-rpm-macros BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else BuildArch: noarch -%endif + +%python_subpackages %description Decode audio files using whichever backend is available. The library @@ -48,12 +49,12 @@ license. An alternative to this module is decoder.py. %setup -q -n audioread-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install -%files +%files %{python_files} %defattr(-,root,root,-) %doc README.rst %{python_sitelib}/*