diff options
author | CoprDistGit <infra@openeuler.org> | 2025-03-24 16:50:27 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2025-03-24 16:50:27 +0000 |
commit | c7321e212b40674ebfce5e01aceda8c8639197dd (patch) | |
tree | c2a9026557ced86058df493e91fd876d1b318266 | |
parent | f2b706711520d42bcff3236c0b1c52a0de046fe0 (diff) |
automatic import of dbus-python
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | 0001-Move-python-modules-to-architecture-specific-directo.patch | 47 | ||||
-rw-r--r-- | Fix-deprecation-warnings-due-to-invalid-escape-seque.patch | 39 | ||||
-rw-r--r-- | dbus-python.spec | 125 | ||||
-rw-r--r-- | sources | 1 |
5 files changed, 213 insertions, 0 deletions
@@ -0,0 +1 @@ +/dbus-python-1.4.0.tar.xz diff --git a/0001-Move-python-modules-to-architecture-specific-directo.patch b/0001-Move-python-modules-to-architecture-specific-directo.patch new file mode 100644 index 0000000..480a5f3 --- /dev/null +++ b/0001-Move-python-modules-to-architecture-specific-directo.patch @@ -0,0 +1,47 @@ +From 86741aa93aaaf388899d1fa0c25d0d67729b7a5c Mon Sep 17 00:00:00 2001 +From: leigh123linux <leigh123linux@googlemail.com> +Date: Tue, 23 Feb 2016 07:32:08 +0000 +Subject: [PATCH] Move python modules to architecture-specific directory + +This is because dbus-python gets dragged in as a dependency of other +things people want to be multilib-compatible. As is the Python +modules conflict. +--- + Makefile.am | 7 ++++--- + 1 file changed, 4 insertions(+), 3 deletions(-) + +diff --git a/Makefile.am b/Makefile.am +index 8738d57..b6d30c0 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -176,7 +176,8 @@ test_dbus_py_test_la_SOURCES = \ + + # === dbus package === + +-nobase_python_PYTHON = \ ++dbuspydir = $(pyexecdir) ++nobase_dbuspy_DATA = \ + dbus/bus.py \ + dbus/connection.py \ + dbus/_compat.py \ +@@ -195,7 +196,7 @@ nobase_python_PYTHON = \ + dbus/service.py \ + dbus/types.py + +-check_py_sources = $(nobase_python_PYTHON) ++check_py_sources = $(nobase_dbuspy_DATA) + include $(top_srcdir)/tools/check-coding-style.mk + + # === Devel stuff === +@@ -434,7 +435,7 @@ uninstall-local-pycache: + if ENABLE_DOCUMENTATION + all: doc/html/.stamp + +-doc/html/.stamp: $(nobase_python_PYTHON) \ ++doc/html/.stamp: $(nobase_dbuspy_DATA) \ + _dbus_bindings.la \ + _dbus_glib_bindings.la \ + $(sphinx_sources) \ +-- +2.37.3 + diff --git a/Fix-deprecation-warnings-due-to-invalid-escape-seque.patch b/Fix-deprecation-warnings-due-to-invalid-escape-seque.patch new file mode 100644 index 0000000..afdf82a --- /dev/null +++ b/Fix-deprecation-warnings-due-to-invalid-escape-seque.patch @@ -0,0 +1,39 @@ +From e4a898cfea9cc7f8a1f82e93029d40881b4b6739 Mon Sep 17 00:00:00 2001 +From: openEuler Buildteam <buildteam@openeuler.org> +Date: Fri, 27 Aug 2021 15:50:50 +0800 +Subject: [PATCH] Fix deprecation warnings due to invalid escape sequences + +--- + dbus/connection.py | 2 +- + dbus/proxies.py | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/dbus/connection.py b/dbus/connection.py +index f5c8dd9..8895fc9 100644 +--- a/dbus/connection.py ++++ b/dbus/connection.py +@@ -334,7 +334,7 @@ class Connection(_Connection): + bus_name=None, + path=None, + **keywords): +- """Arrange for the given function to be called when a signal matching ++ r"""Arrange for the given function to be called when a signal matching + the parameters is received. + + :Parameters: +diff --git a/dbus/proxies.py b/dbus/proxies.py +index 5852046..9b72542 100644 +--- a/dbus/proxies.py ++++ b/dbus/proxies.py +@@ -304,7 +304,7 @@ class ProxyObject(object): + # """) + + def connect_to_signal(self, signal_name, handler_function, dbus_interface=None, **keywords): +- """Arrange for the given function to be called when the given signal ++ r"""Arrange for the given function to be called when the given signal + is received. + + :Parameters: +-- +1.8.3.1 + diff --git a/dbus-python.spec b/dbus-python.spec new file mode 100644 index 0000000..b7104ff --- /dev/null +++ b/dbus-python.spec @@ -0,0 +1,125 @@ +Name: dbus-python +Version: 1.4.0 +Release: 1 +Summary: original Python binding for dbus +License: MIT and (AFL-2.1 or GPL-2.0-or-later) +URL: https://www.freedesktop.org/wiki/Software/DBusBindings/ +Source0: https://dbus.freedesktop.org/releases/dbus-python/%{name}-%{version}.tar.xz +Patch0: 0001-Move-python-modules-to-architecture-specific-directo.patch +Patch1: Fix-deprecation-warnings-due-to-invalid-escape-seque.patch + +BuildRequires: meson >= 0.60 +BuildRequires: pkgconfig(dbus-1) >= 1.8 +BuildRequires: pkgconfig(glib-2.0) >= 2.40 +BuildRequires: pkgconfig(gthread-2.0) >= 2.40 +BuildRequires: python3-devel +BuildRequires: /usr/bin/dbus-run-session + +%description +Dbus-python is the original Python binding for dbus, the reference +implementation of the D-Bus protocol. + +%package -n python3-dbus +Summary: Python3 bindings for dbus +BuildRequires: python3-devel +Provides: dbus-python = %{version}-%{release} +Obsoletes: dbus-python < %{version}-%{release} +%{?python_provide:%python_provide python3-dbus} + +%description -n python3-dbus +Python3 bindings for dbus + +%package devel +Summary: Development files for %{name} +Requires: python3-dbus = %{version}-%{release} + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + +%package_help + +%prep +%autosetup -n %{name}-%{version} -p1 + +%build +%meson +%meson_build + +%install +%meson_install + +%check +%meson_test + +%files -n python3-dbus +%license COPYING +%{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/tutorial.txt + +%changelog +* Tue Mar 25 2025 Funda Wang <fundawang@yeah.net> - 1.4.0-1 +- update to 1.4.0 + +* Mon Oct 17 2022 dillon chen <dillon.chen@gmail.com> - 1.3.2-1 +- update to 1.3.2 + +* Mon Dec 06 2021 herengui <herengui@uniontech.com> - 1.2.18-3 +- Type:update +- ID:NA +- SUG:NA +- DESC: 1. correct licenses; 2. provides pythonXdist + +* Fri Aug 27 2021 panxiaohe <panxiaohe@huawei.com> - 1.2.18-2 +- Fix deprecation warnings due to invalid escape sequences + +* Fri Jul 30 2021 panxiaohe <panxiaohe@huawei.com> - 1.2.18-1 +- update to 1.2.18 +- remove unnecessary BuildRequires: gdb + +* Thu Oct 29 2020 panxiaohe <panxiaohe@huawei.com> - 1.2.16-2 +- Type:requirement +- ID:NA +- SUG:NA +- DESC:remove subpackage python2-dbus + +* Fri Jul 31 2020 Liquor <lirui130@huawei.com> - 1.2.16-1 +- Type:update +- ID:NA +- SUG:NA +- DESC:update to 1.2.16 + +* Sat Mar 21 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.2.8-8 +- Type:enhancement +- ID:NA +- SUG:NA +- DESC:add build requires of gdb + +* Wed Oct 30 2019 jiangchuangang<jiangchuangang@huawei.com> - 1.2.8-7 +- Type:enhancement +- ID:NA +- SUG:NA +- DESC:modify provides + +* Sat Oct 12 2019 shenyangyang <shenyangyang4@huawei.com> - 1.2.8-6 +- Type: enhancement +- ID: NA +- SUG: NA +- DESC:add python-provides + +* Mon Sep 30 2019 luhuaxin <luhuaxin@huawei.com> - 1.2.8-5 +- Type: enhancement +- ID: NA +- SUG: NA +- DESC: package rebuild + +* Fri Aug 30 2019 luhuaxin <luhuaxin@huawei.com> - 1.2.8-4 +- Package init @@ -0,0 +1 @@ +edca335d1c80f338e3255455eb876b72 dbus-python-1.4.0.tar.xz |