support -py3 build [release 1.2.0-3mamba;Thu Nov 06 2014]

This commit is contained in:
Silvan Calarco 2024-01-06 11:01:50 +01:00
parent 2d1494f900
commit 109410fcb2

View File

@ -1,7 +1,7 @@
Name: python-dbus Name: python-dbus
Version: 1.2.0 Version: 1.2.0
Release: 2mamba Release: 3mamba
Summary: Python bindings for D-Bus Summary: D-Bus python bindings for use with python programs
Group: System/Libraries/Python Group: System/Libraries/Python
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
@ -23,6 +23,26 @@ Obsoletes: dbus-python
%description %description
D-Bus python bindings for use with python programs. 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 %package devel
Summary: Devel package for %{name} Summary: Devel package for %{name}
Group: Development/Libraries Group: Development/Libraries
@ -32,14 +52,13 @@ Obsoletes: dbus-python-devel
%description devel %description devel
D-Bus python bindings for use with python programs. D-Bus python bindings for use with python programs.
This package contains static libraries and header files need for development. This package contains static libraries and header files need for development.
%prep %prep
%setup -q -n dbus-python-%{version} %setup -q -n dbus-python-%{version}
%build %build
%configure PYTHON=%{__python27} %configure PYTHON=%{__python}
%make %make
%install %install
@ -52,9 +71,16 @@ rm -rf %{buildroot}%{_datadir}/doc/dbus-python
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%if "%?with_pyver"
%files py%{pyver}
%else
%files %files
%endif
%defattr(-,root,root) %defattr(-,root,root)
%{python27_sitearch}/* %{python_sitearch}/*
%ifarch x86_64
%{python_sitelib}/*
%endif
%doc AUTHORS COPYING %doc AUTHORS COPYING
%files devel %files devel
@ -65,6 +91,9 @@ rm -rf %{buildroot}%{_datadir}/doc/dbus-python
%doc ChangeLog NEWS README doc/*.txt %doc ChangeLog NEWS README doc/*.txt
%changelog %changelog
* Thu Nov 06 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.0-3mamba
- support -py3 build
* Fri May 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.0-2mamba * Fri May 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.0-2mamba
- rebuilt with python 2.7 - rebuilt with python 2.7