Package init
This commit is contained in:
commit
a92430603c
@ -0,0 +1,52 @@
|
|||||||
|
From 380ae714f641a73a30f86ae8f5a2e05ac063b37f 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 | 9 +++++----
|
||||||
|
1 file changed, 5 insertions(+), 4 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/Makefile.am b/Makefile.am
|
||||||
|
index fd480d4..0859994 100644
|
||||||
|
--- a/Makefile.am
|
||||||
|
+++ b/Makefile.am
|
||||||
|
@@ -155,7 +155,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 \
|
||||||
|
@@ -175,12 +176,12 @@ nobase_python_PYTHON = \
|
||||||
|
dbus/types.py
|
||||||
|
|
||||||
|
if !HAVE_PYTHON_3
|
||||||
|
-nobase_python_PYTHON += \
|
||||||
|
+nobase_dbuspy_DATA += \
|
||||||
|
dbus/gobject_service.py \
|
||||||
|
$(NULL)
|
||||||
|
endif
|
||||||
|
|
||||||
|
-check_py_sources = $(nobase_python_PYTHON)
|
||||||
|
+check_py_sources = $(nobase_dbuspy_DATA)
|
||||||
|
include $(top_srcdir)/tools/check-coding-style.mk
|
||||||
|
|
||||||
|
# === Devel stuff ===
|
||||||
|
@@ -416,7 +417,7 @@ uninstall-local: uninstall-local-sphinx
|
||||||
|
if ENABLE_DOCUMENTATION
|
||||||
|
all: doc/_build/.stamp
|
||||||
|
|
||||||
|
-doc/_build/.stamp: $(nobase_python_PYTHON) \
|
||||||
|
+doc/_build/.stamp: $(nobase_dbuspy_DATA) \
|
||||||
|
_dbus_bindings.la \
|
||||||
|
_dbus_glib_bindings.la \
|
||||||
|
$(sphinx_sources) \
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
BIN
dbus-python-1.2.8.tar.gz
Normal file
BIN
dbus-python-1.2.8.tar.gz
Normal file
Binary file not shown.
16
dbus-python-1.2.8.tar.gz.asc
Normal file
16
dbus-python-1.2.8.tar.gz.asc
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
-----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-----
|
||||||
106
dbus-python.spec
Normal file
106
dbus-python.spec
Normal file
@ -0,0 +1,106 @@
|
|||||||
|
%global _configure ../configure
|
||||||
|
|
||||||
|
Name: dbus-python
|
||||||
|
Version: 1.2.8
|
||||||
|
Release: 4
|
||||||
|
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
|
||||||
|
|
||||||
|
BuildRequires: dbus-devel dbus-glib-devel python2-docutils
|
||||||
|
BuildRequires: dbus-x11 python2-gobject python3-gobject
|
||||||
|
BuildRequires: git autoconf-archive automake libtool
|
||||||
|
|
||||||
|
%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}
|
||||||
|
|
||||||
|
%description -n python2-dbus
|
||||||
|
Python2 bindings for dbus.
|
||||||
|
|
||||||
|
%package -n python3-dbus
|
||||||
|
Summary: Python3 bindings for dbus
|
||||||
|
BuildRequires: python3-devel
|
||||||
|
Provides: %{name} = %{version}-%{release}
|
||||||
|
Provides: %{name}%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
|
%description -n python3-dbus
|
||||||
|
Python3 bindings for dbus
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Development files for %{name}
|
||||||
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
The %{name}-devel package contains libraries and header files for
|
||||||
|
developing applications that use %{name}.
|
||||||
|
|
||||||
|
%package help
|
||||||
|
Summary: Doc files for %{name}
|
||||||
|
Buildarch: noarch
|
||||||
|
|
||||||
|
%description help
|
||||||
|
The %{name}-help package contains doc files for %{name}.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n %{name}-%{version} -p1 -S git
|
||||||
|
|
||||||
|
%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
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install -C python2-build
|
||||||
|
%make_install -C python3-build
|
||||||
|
find %{buildroot} -name '*.la' -delete
|
||||||
|
|
||||||
|
%check
|
||||||
|
make check -k -C python2-build
|
||||||
|
make check -k -C python3-build
|
||||||
|
|
||||||
|
%pre
|
||||||
|
|
||||||
|
%preun
|
||||||
|
|
||||||
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%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/
|
||||||
|
|
||||||
|
%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
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Aug 30 2019 luhuaxin <luhuaxin@huawei.com> - 1.2.8-4
|
||||||
|
- Package init
|
||||||
Loading…
x
Reference in New Issue
Block a user