commit c07ef14c7b933181cd168f683af3869fed85dfd2 Author: Jakub Bogusz <qbo...@pld-linux.org> Date: Tue Apr 10 18:34:18 2018 +0200
- updated to 1.1.6 - added python3 package python-pyalsa.spec | 70 +++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 59 insertions(+), 11 deletions(-) --- diff --git a/python-pyalsa.spec b/python-pyalsa.spec index ee32f57..0b92c76 100644 --- a/python-pyalsa.spec +++ b/python-pyalsa.spec @@ -1,46 +1,94 @@ -Summary: Python binding for the ALSA library -Summary(pl.UTF-8): Wiązanie Pythona do biblioteki ALSA +# +# Conditional build: +%bcond_without python2 # CPython 2.x binding +%bcond_without python3 # CPython 3.x binding + +Summary: Python 2 binding for the ALSA library +Summary(pl.UTF-8): Wiązanie Pythona 2 do biblioteki ALSA Name: python-pyalsa -Version: 1.0.29 -Release: 2 +Version: 1.1.6 +Release: 1 License: LGPL v2.1+ Group: Libraries/Python Source0: ftp://ftp.alsa-project.org/pub/pyalsa/pyalsa-%{version}.tar.bz2 -# Source0-md5: 98bea57c789f73fff54a6d1940b73ede +# Source0-md5: 6a275707288af52d1d9e1856d6efaadc URL: http://www.alsa-project.org/ BuildRequires: alsa-lib-devel >= 1.0.29 +%if %{with python2} BuildRequires: python-devel >= 1:2.5 +BuildRequires: python-setuptools +%endif +%if %{with python3} +BuildRequires: python3-devel >= 1:3.2 +BuildRequires: python3-setuptools +%endif BuildRequires: rpm-pythonprov -BuildRequires: rpmbuild(macros) >= 1.710 -%pyrequires_eq python-libs +BuildRequires: rpmbuild(macros) >= 1.714 Requires: alsa-lib >= 1.0.29 +Requires: python-libs >= 1:2.5 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description -Python binding for the ALSA library. +Python 2 binding for the ALSA library. %description -l pl.UTF-8 -Wiązanie Pythona do biblioteki ALSA. +Wiązanie Pythona 2 do biblioteki ALSA. + +%package -n python3-pyalsa +Summary: Python 3 binding for the ALSA library +Summary(pl.UTF-8): Wiązanie Pythona 3 do biblioteki ALSA +Group: Libraries/Python +Requires: alsa-lib >= 1.0.29 +Requires: python3-libs >= 1:3.2 + +%description -n python3-pyalsa +Python 3 binding for the ALSA library. + +%description -n python3-pyalsa -l pl.UTF-8 +Wiązanie Pythona 3 do biblioteki ALSA. %prep %setup -q -n pyalsa-%{version} %build +%if %{with python2} %py_build +%endif + +%if %{with python3} +%py3_build +%endif %install rm -rf $RPM_BUILD_ROOT +%if %{with python2} %py_install - %py_postclean +%endif + +%if %{with python3} +%py3_install +%endif %clean rm -rf $RPM_BUILD_ROOT +%if %{with python2} %files %defattr(644,root,root,755) %dir %{py_sitedir}/pyalsa %attr(755,root,root) %{py_sitedir}/pyalsa/alsa*.so %{py_sitedir}/pyalsa/__init__.py[co] -%{py_sitedir}/pyalsa-*.egg-info +%{py_sitedir}/pyalsa-%{version}-*.egg-info +%endif + +%if %{with python3} +%files -n python3-pyalsa +%defattr(644,root,root,755) +%dir %{py3_sitedir}/pyalsa +%attr(755,root,root) %{py3_sitedir}/pyalsa/alsa*.cpython-*.so +%{py3_sitedir}/pyalsa/__init__.py +%{py3_sitedir}/pyalsa/__pycache__ +%{py3_sitedir}/pyalsa-%{version}-py*.egg-info +%endif ================================================================ ---- gitweb: http://git.pld-linux.org/gitweb.cgi/packages/python-pyalsa.git/commitdiff/c07ef14c7b933181cd168f683af3869fed85dfd2 _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit