From 905346e3090b6b1e11e69e8ddc753f6e0e0f0d9d Mon Sep 17 00:00:00 2001 From: herengui Date: Mon, 6 Dec 2021 10:55:50 +0800 Subject: [PATCH] correct licenses; provides pythonXdist Signed-off-by: herengui (cherry picked from commit db77116a5bbb3528907b42377e1ec60ee24405c2) --- dbus-python.spec | 32 +++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/dbus-python.spec b/dbus-python.spec index e208c5b..49f579c 100644 --- a/dbus-python.spec +++ b/dbus-python.spec @@ -1,10 +1,11 @@ %global _configure ../configure +%global python3dir %{_builddir}/python3-%{name}-%{version}-%{release} Name: dbus-python Version: 1.2.18 -Release: 2 +Release: 3 Summary: original Python binding for dbus -License: MIT +License: MIT and (AFL-2.1 or GPL-2.0-or-later) URL: http://www.freedesktop.org/wiki/Software/DBusBindings/ Source0: http://dbus.freedesktop.org/releases/dbus-python/%{name}-%{version}.tar.gz Source1: http://dbus.freedesktop.org/releases/dbus-python/%{name}-%{version}.tar.gz.asc @@ -46,13 +47,23 @@ developing applications that use %{name}. %build autoreconf -vif -mkdir -p python3-build -pushd python3-build; %configure PYTHON="%{__python3}" -%make_build; popd +install -d %{python3dir} +cp -a . %{python3dir} +mv %{python3dir} python3-build + +pushd python3-build +%py3_build +%configure PYTHON="%{__python3}" +%make_build +popd %install -%make_install -C python3-build -find %{buildroot} -name '*.la' -delete +pushd python3-build +%py3_install +%make_install +popd + +%delete_la %check make check -k -C python3-build || (cat python3-build/test-suite.log && true) @@ -70,6 +81,7 @@ make check -k -C python3-build || (cat python3-build/test-suite.log && true) %{python3_sitearch}/_dbus_bindings.so %{python3_sitearch}/_dbus_glib_bindings.so %{python3_sitearch}/dbus/ +%{python3_sitearch}/dbus_python-%{version}-py%{python3_version}.egg-info %files devel %{_includedir}/dbus-1.0/dbus/%{name}.h @@ -79,6 +91,12 @@ make check -k -C python3-build || (cat python3-build/test-suite.log && true) %doc NEWS ChangeLog README doc/API_CHANGES.txt doc/tutorial.txt %changelog +* Mon Dec 06 2021 herengui - 1.2.18-3 +- Type:update +- ID:NA +- SUG:NA +- DESC: 1. correct licenses; 2. provides pythonXdist + * Fri Aug 27 2021 panxiaohe - 1.2.18-2 - Fix deprecation warnings due to invalid escape sequences -- Gitee