diff --git a/python-dbus.spec b/python-dbus.spec index 4ab86bc..10a650e 100644 --- a/python-dbus.spec +++ b/python-dbus.spec @@ -1,7 +1,7 @@ Name: python-dbus Version: 1.2.0 -Release: 2mamba -Summary: Python bindings for D-Bus +Release: 3mamba +Summary: D-Bus python bindings for use with python programs Group: System/Libraries/Python Vendor: openmamba Distribution: openmamba @@ -23,6 +23,26 @@ Obsoletes: dbus-python %description D-Bus python bindings for use with python programs. +%if "%?with_pyver" +%define pyver %{with_pyver} +%define __python %(rpm --eval %{__python%{with_pyver}}) +%define python_sitearch %(rpm --eval %{python%{with_pyver}_sitearch}) +%define python_sitelib %(rpm --eval %{python%{with_pyver}_sitelib}) +%define python_inc %(rpm --eval %{python%{with_pyver}_inc}) +%define python_version %(rpm --eval %{python%{with_pyver}_version}) +%define python_provides %(rpm --eval %{python%{with_pyver}_provides}) +%define python_requires %(rpm --eval %{python%{with_pyver}_requires}) +%define py_requires %(rpm --eval %{py%{with_pyver}_requires}) + +%package py%{pyver} +Group: System/Libraries/Python +Summary: D-Bus python bindings for use with python programs +%py_requires + +%description py%{pyver} +D-Bus python bindings for use with python programs. +%endif + %package devel Summary: Devel package for %{name} Group: Development/Libraries @@ -32,14 +52,13 @@ Obsoletes: dbus-python-devel %description devel D-Bus python bindings for use with python programs. - This package contains static libraries and header files need for development. %prep %setup -q -n dbus-python-%{version} %build -%configure PYTHON=%{__python27} +%configure PYTHON=%{__python} %make %install @@ -52,9 +71,16 @@ rm -rf %{buildroot}%{_datadir}/doc/dbus-python %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%if "%?with_pyver" +%files py%{pyver} +%else %files +%endif %defattr(-,root,root) -%{python27_sitearch}/* +%{python_sitearch}/* +%ifarch x86_64 +%{python_sitelib}/* +%endif %doc AUTHORS COPYING %files devel @@ -65,6 +91,9 @@ rm -rf %{buildroot}%{_datadir}/doc/dbus-python %doc ChangeLog NEWS README doc/*.txt %changelog +* Thu Nov 06 2014 Silvan Calarco 1.2.0-3mamba +- support -py3 build + * Fri May 17 2013 Silvan Calarco 1.2.0-2mamba - rebuilt with python 2.7