summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-03-24 17:11:28 +0000
committerCoprDistGit <infra@openeuler.org>2025-03-24 17:11:28 +0000
commitc2cbbcd65c6d7391dccf4d4c865a0d9eaf205b4d (patch)
tree87224222fa6481bc0239cd71aa34a066c2fb9117
parent33ae12920d7936ee298003f2dd2250d1f8e3dc8a (diff)
automatic import of dbus-pythonopeneuler24.03_LTS
-rw-r--r--dbus-python.spec20
1 files changed, 13 insertions, 7 deletions
diff --git a/dbus-python.spec b/dbus-python.spec
index 277add6..d4a01d4 100644
--- a/dbus-python.spec
+++ b/dbus-python.spec
@@ -8,12 +8,13 @@ Source0: https://dbus.freedesktop.org/releases/dbus-python/%{name}-%{version}.ta
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: autoconf automake libtool
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/sbin/dbus-runsession
+BuildRequires: /usr/bin/dbus-run-session
+BuildRequires: python3-gobject
%description
Dbus-python is the original Python binding for dbus, the reference
@@ -43,20 +44,25 @@ developing applications that use %{name}.
%autosetup -n %{name}-%{version} -p1
%build
-%meson
-%meson_build
+autoreconf -fi
+export DBUS_PYTHON_USE_AUTOTOOLS=1
+%set_build_flags
+%py3_build
+%configure PYTHON="%{__python3}"
+%make_build
%install
-%meson_install
+export DBUS_PYTHON_USE_AUTOTOOLS=1
+%py3_install
+%make_install
%check
-%meson_test
+make check -k || (cat test-suite.log && false)
%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