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
This commit is contained in:
parent
495c1b9795
commit
95b7dc45fd
16
dtc-1.5.1.tar.sign
Normal file
16
dtc-1.5.1.tar.sign
Normal file
@ -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-----
|
12
dtc-fix_python_install.patch
Normal file
12
dtc-fix_python_install.patch
Normal file
@ -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)"
|
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 30 13:24:05 UTC 2019 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||
|
||||
- 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 <dmueller@suse.com>
|
||||
|
||||
|
23
dtc.spec
23
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user