From 95b7dc45fd324a6dbed3a4c24d66e9c5434c9169493ce5bbc3039c11dbf7fbf5 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 30 Oct 2019 15:22:15 +0000 Subject: [PATCH] Accepting request 744254 from home:Guillaume_G:branches:Base:System - Enable python3 binding in python3-libfdt - Fix python installation with patch: * dtc-fix_python_install.patch OBS-URL: https://build.opensuse.org/request/show/744254 OBS-URL: https://build.opensuse.org/package/show/Base:System/dtc?expand=0&rev=40 --- dtc-1.5.1.tar.sign | 16 ++++++++++++++++ dtc-fix_python_install.patch | 12 ++++++++++++ dtc.changes | 7 +++++++ dtc.spec | 23 ++++++++++++++++++++++- 4 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 dtc-1.5.1.tar.sign create mode 100644 dtc-fix_python_install.patch diff --git a/dtc-1.5.1.tar.sign b/dtc-1.5.1.tar.sign new file mode 100644 index 0000000..cf7b9ba --- /dev/null +++ b/dtc-1.5.1.tar.sign @@ -0,0 +1,16 @@ +-----BEGIN PGP SIGNATURE----- + +iQIzBAABCAAdFiEEdfRlhq5hpmzETofcbDjKyiDZs5IFAl1vRsgACgkQbDjKyiDZ +s5J6yRAAsx7WyerewJvw1qd+PjX3pA5qwrctlCyCKduMoJTw4x/NPvXbkGmufOkt +USR67cF7Bt2Po2B24BgCMK0jJjx3tgOjZu9OcxIrxc1D+1Ojb7OuUUqKQusVfa/c +u1yh/Shi/VCzU8DN9hHBgM9tVe8hnrzVV6Rid9eJKE+a7KGDq52ckcV+dVrmTtrc +7vbNI0s4O9X+Veq44Rg0M4/AT8o+qcNtMHoBogw2CP9Jnzv1iXWkqjoG9PqREtOB +fVlB0S6n9nJQpFsxXWjdNwFmq6B9EYNHk026tNnsxXjJkaSfWMoPjK4gEqG9wBxG +Eca80ADaKGP1l9vHCxqo4xA1Eh6O92JbL7oxwShpty8R/pPEf2SBwYHl2z8hswU8 +IJyQdTCTfOLolsKroqBeCPqOq7LRvmfr9evdhpupXaB/MkZ+9whWWsWAOVKQrWNl +js0nLfrb1PWqhItXjS/INW3N4+fitfKcQiQ/JmwgAkwGJtzeTPFE8BDaRCzr3ehh ++K0sytNeIzoQfIgiWE6QUmMx/8QS1eiAdqZDSAX5DISApChXJIXwoxobshOt+9Yq +loUfB9Suw/fxSKEFGN/SarJ6JtfLKLI/tL+7aE2EqrykoK17nt5QKldqRbFj/+xz +AfgxYPd7b6JVXaxU69+wQmfNw4dLN5czkfKLikrcpU4a6hCENUM= +=ZeOU +-----END PGP SIGNATURE----- diff --git a/dtc-fix_python_install.patch b/dtc-fix_python_install.patch new file mode 100644 index 0000000..147ff70 --- /dev/null +++ b/dtc-fix_python_install.patch @@ -0,0 +1,12 @@ +diff -purN dtc-1.5.1.orig/pylibfdt/Makefile.pylibfdt dtc-1.5.1/pylibfdt/Makefile.pylibfdt +--- dtc-1.5.1.orig/pylibfdt/Makefile.pylibfdt 2019-10-30 14:47:48.135793334 +0100 ++++ dtc-1.5.1/pylibfdt/Makefile.pylibfdt 2019-10-30 14:48:17.019978313 +0100 +@@ -22,7 +22,7 @@ $(PYMODULE): $(PYLIBFDT_srcs) $(LIBFDT_a + + install_pylibfdt: $(PYMODULE) + @$(VECHO) INSTALL-PYLIB +- $(PYTHON) $(SETUP) $(SETUPFLAGS) install --prefix=$(PREFIX) ++ $(PYTHON) $(SETUP) $(SETUPFLAGS) install --prefix=$(DESTDIR)$(PREFIX) + + pylibfdt_clean: + @$(VECHO) CLEAN "(pylibfdt)" diff --git a/dtc.changes b/dtc.changes index 03b4665..fa869d6 100644 --- a/dtc.changes +++ b/dtc.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Oct 30 13:24:05 UTC 2019 - Guillaume GARDET + +- Enable python3 binding in python3-libfdt +- Fix python installation with patch: + * dtc-fix_python_install.patch + ------------------------------------------------------------------- Wed Oct 30 13:23:32 UTC 2019 - Dirk Mueller diff --git a/dtc.spec b/dtc.spec index 8232e88..2a471db 100644 --- a/dtc.spec +++ b/dtc.spec @@ -24,10 +24,14 @@ Summary: Device-tree compiler License: GPL-2.0-or-later URL: https://github.com/dgibson/dtc Source0: https://mirrors.edge.kernel.org/pub/software/utils/dtc/dtc-%{version}.tar.gz -Source1: baselibs.conf +Source1: https://mirrors.edge.kernel.org/pub/software/utils/dtc/dtc-%{version}.tar.sign +Source2: baselibs.conf +Patch1: dtc-fix_python_install.patch BuildRequires: bison BuildRequires: flex BuildRequires: libyaml-devel +BuildRequires: python3-devel +BuildRequires: swig %description PowerPC kernels are moving towards requiring a small Open @@ -55,8 +59,19 @@ Obsoletes: libfdt1-devel < %{version}-%{release} %description -n libfdt-devel This package provides development files for libfdt + +%package -n python3-libfdt +Summary: Python binding for Device Tree + +%description -n python3-libfdt +libfdt is a library to process Open Firmware style device trees on various +architectures. + +Python binding part. + %prep %setup -q +%patch1 -p1 %build make %{?_smp_mflags} V=1 @@ -91,4 +106,10 @@ make %{?_smp_mflags} check %{_libdir}/libfdt.so %{_includedir}/* +%files -n python3-libfdt +%{python3_sitearch}/*.so +%{python3_sitearch}/*.egg-info +%{python3_sitearch}/__pycache__/*.pyc +%{python3_sitearch}/libfdt.py + %changelog