diff --git a/dbus-python-1.2.16.tar.gz b/dbus-python-1.2.16.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..690a0257512d8d6f32e4207843f976b3934f927b Binary files /dev/null and b/dbus-python-1.2.16.tar.gz differ diff --git a/dbus-python-1.2.16.tar.gz.asc b/dbus-python-1.2.16.tar.gz.asc new file mode 100644 index 0000000000000000000000000000000000000000..95fc7bad33356c3ed6a57cc64bcb8af8ed545eb9 --- /dev/null +++ b/dbus-python-1.2.16.tar.gz.asc @@ -0,0 +1,16 @@ +-----BEGIN PGP SIGNATURE----- + +iQIzBAABCAAdFiEENuxaZEik9e95vv6Y4FrhR4+BTE8FAl4djeUACgkQ4FrhR4+B +TE8O7Q/+LLFCRTgSKyQAAL/s4lHKrYdvA+SKBOC4AcJQskMgDCuUQJ8pNdpxKCM4 +rt2Y6Vu5f536LBBa5LhgSXxz2ylHp1QS8ch4xXOKCF84cgNPjo6HF2eZ8ekDUJuC +wgcR+i9uNgUWa058ub9ksQUH9vYJvrmCXj0gN179rmBkrS9hmWy/k7doWQkzd4qZ +fl7o+25U2oxpvAyF2OsaTtgki77RxggOx609iTi0lNF0ouGcYGyWDO2VcW7bACQx +fAxcoIvhNBQxmzrYpGT9sne1SiZnYZb0dY8DcndHsUYdrO6Uqizx3BKYhhXGBV7n +nIKXQN7zLPvPPV9o6SPUkCB+bjbJMGxs0JJv/C03DftjOPT3dxly9IxtrEdIVp4n +S1gCeN2IvjM7B6BTsVEC7VRdSPhdeQlRXeuejvXb9kKSjuTy9cusJ2t9Li8gZPgh +783xAZdvQfaZkI7jl6Ha5GwZOMSF075Upfx3HAIRGODsSmVy9xqYYolqLzM3qxvE +ejuEeDGE9Yh/Hqcs5mq9A7i+z/L3HQXeLdUn8fBmJ77srBZzTqE/ktT5xT7X/9S4 +X9umFn++Oujjw2XWbUhJ5bH1tVvEpKtRHU73GT72Ueo7TBbzej8ST15PCsSbRpwk +tC1Govkki92VQgMHJQDGwYDS+2VJsYANEZS4tcT/ucH6TCITPbU= +=xD/3 +-----END PGP SIGNATURE----- diff --git a/dbus-python-1.2.8.tar.gz b/dbus-python-1.2.8.tar.gz deleted file mode 100644 index ecf3ed14cdec00be132e7c85a173214b9f09eb30..0000000000000000000000000000000000000000 Binary files a/dbus-python-1.2.8.tar.gz and /dev/null differ diff --git a/dbus-python-1.2.8.tar.gz.asc b/dbus-python-1.2.8.tar.gz.asc deleted file mode 100644 index db050eebaae809204730dd75fd54709e7322c836..0000000000000000000000000000000000000000 --- a/dbus-python-1.2.8.tar.gz.asc +++ /dev/null @@ -1,16 +0,0 @@ ------BEGIN PGP SIGNATURE----- - -iQIzBAABCAAdFiEENuxaZEik9e95vv6Y4FrhR4+BTE8FAlrslM8ACgkQ4FrhR4+B -TE/eMA/5AdRHMAgmUbqZifvXKi24UkXrmpNRi8hKNL/Gm6RVKeyekbns2AP3c8wb -afKG0EDMF28UpatBKCpg1rXBbvmG9WDuMsE1HlTra8/n2GuITyk878qvu/adbWSv -fGf3NnI/xRJKsGNhymNpiZ1w4cg/JXtSmjxCG3/MbIiHC/VaFURxNJx+HRxefQOY -I2Q11PMqnc51Ty186pLduhWEiyeBWr9WMWkwirew2wa9R9GzE05SfwlUnktFEChT -4MyUDEDqAfUOmtHi9a5sRvnnQmvAV2pivLpYnivommgQKpDV/2Mydh1RMVjns6vA -5GI2FAfl3zEI99b56VLxDPu1HSdTSaxb82PSzZB32JCOZ4uAAjgQjD+bePfVCFSi -MGx5XtnSS5B2Nc25D0gp7fOnsHuLAQzSAKwZ0Wu+fBlQdurbA/l4ZCQAL8kHM/8d -RwHzhu3942cYSi3Y3Juy07kmCfwVwfbDFHtixA2irmfZixnCGygPb5DtlEaAIYFQ -plS0n3p6ES/Wy5hs9aKR8kvzHKHXwpbV8V9FCYsTC8HbLF9S7HMxFIglZOSPoiPe -1GJSmp3uIx2EZQUgCt3dYeKqRLtX4UYl0627PLwo9SPkkPqxCqll2BLZr2V/2Ll0 -wPXbLH1SxuE0YoUArrWv4/OkztUQnAG1vSKsLIT7jkrvbtLK1ug= -=j3xA ------END PGP SIGNATURE----- diff --git a/dbus-python.spec b/dbus-python.spec index 84399a672422022ee6053673dfc4efb97977cfe6..c143b18e8af17b6c39c8f749897fddd7ea94ee94 100644 --- a/dbus-python.spec +++ b/dbus-python.spec @@ -1,36 +1,26 @@ -%global _configure ../configure - Name: dbus-python -Version: 1.2.8 -Release: 8 +Version: 1.2.16 +Release: 1 Summary: original Python binding for dbus License: MIT 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 Patch0: 0001-Move-python-modules-to-architecture-specific-directo.patch +Patch1: python39.patch -BuildRequires: dbus-devel dbus-glib-devel python2-docutils -BuildRequires: dbus-x11 python2-gobject python3-gobject +BuildRequires: dbus-devel glib2-devel +BuildRequires: dbus-x11 python3-gobject BuildRequires: autoconf-archive automake libtool gdb %description Dbus-python is the original Python binding for dbus, the reference implementation of the D-Bus protocol. -%package -n python2-dbus -Summary: Python2 bindings for dbus -BuildRequires: python2-devel -Provides: %{name} = %{version}-%{release} -Provides: %{name}%{?_isa} = %{version}-%{release} -Obsoletes: %{name} < %{version}-%{release} -%{?python_provide:%python_provide python2-dbus} - -%description -n python2-dbus -Python2 bindings for dbus. - %package -n python3-dbus Summary: Python3 bindings for dbus BuildRequires: python3-devel +BuildRequires: python3dist(setuptools) %{?python_provide:%python_provide python3-dbus} %description -n python3-dbus @@ -51,22 +41,18 @@ developing applications that use %{name}. %build autoreconf -vif - -mkdir -p python2-build python3-build -pushd python2-build; %configure PYTHON="%{__python2}" -%make_build; popd - -pushd python3-build; %configure PYTHON="%{__python3}" -%make_build; popd +%set_build_flags +%py3_build +%configure PYTHON="%{__python3}" +%make_build %install -%make_install -C python2-build -%make_install -C python3-build +%py3_install +%make_install find %{buildroot} -name '*.la' -delete %check -make check -k -C python2-build -make check -k -C python3-build +make check -k || (cat test-suite.log && false) %pre @@ -76,26 +62,26 @@ make check -k -C python3-build %postun -p /sbin/ldconfig -%files -n python2-dbus -%license COPYING -%{python2_sitearch}/_dbus_bindings.so -%{python2_sitearch}/_dbus_glib_bindings.so -%{python2_sitearch}/dbus/ - %files -n python3-dbus %license COPYING -%{python3_sitearch}/_dbus_bindings.so -%{python3_sitearch}/_dbus_glib_bindings.so +%{python3_sitearch}/*.so %{python3_sitearch}/dbus/ +%{python3_sitearch}/dbus_python*egg-info %files devel %{_includedir}/dbus-1.0/dbus/%{name}.h %{_libdir}/pkgconfig/%{name}.pc %files help -%doc NEWS ChangeLog README doc/API_CHANGES.txt doc/HACKING.txt doc/tutorial.txt +%doc NEWS ChangeLog README doc/API_CHANGES.txt doc/tutorial.txt %changelog +* Mon Jul 27 2020 lubing - 1.2.16-1 +- Type:enhancement +- ID:NA +- SUG:NA +- DESC:update to 1.2.16 + * Sat Mar 21 2020 openEuler Buildteam - 1.2.8-8 - Type:enhancement - ID:NA diff --git a/python39.patch b/python39.patch new file mode 100644 index 0000000000000000000000000000000000000000..e7bd1b58246420e3187e6da508cbd43dd3c5ae78 --- /dev/null +++ b/python39.patch @@ -0,0 +1,12 @@ +--- a/dbus/service.py ++++ b/dbus/service.py +@@ -32,7 +32,7 @@ + import logging + import threading + import traceback +-from collections import Sequence ++from collections.abc import Sequence + + import _dbus_bindings + from dbus import ( +