Accepting request 745990 from Base:System

- switch to building python3 bindings using setuptools to avoid
  patching

- Enable python3 binding in python3-libfdt

- update to 1.5.1:

OBS-URL: https://build.opensuse.org/request/show/745990
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/dtc?expand=0&rev=33
This commit is contained in:
Dominique Leuenberger 2019-11-11 11:57:54 +00:00 committed by Git OBS Bridge
commit 26606bd420
3 changed files with 56 additions and 4 deletions

16
dtc-1.5.1.tar.sign Normal file
View 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-----

View File

@ -1,7 +1,18 @@
-------------------------------------------------------------------
Wed Oct 30 15:38:12 UTC 2019 - Dirk Mueller <dmueller@suse.com>
- switch to building python3 bindings using setuptools to avoid
patching
-------------------------------------------------------------------
Wed Oct 30 13:24:05 UTC 2019 - Guillaume GARDET <guillaume.gardet@opensuse.org>
- Enable python3 binding in python3-libfdt
-------------------------------------------------------------------
Wed Oct 30 13:23:32 UTC 2019 - Dirk Mueller <dmueller@suse.com>
- update to 1.5.1:
- update to 1.5.1:
* Numerous assorted bugfixes
* Add a new fdt_create_with_flags() function, and a
FDT_CREATE_FLAG_NO_NAME_DEDUP flag which improves speed at the

View File

@ -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
BuildRequires: bison
BuildRequires: flex
BuildRequires: libyaml-devel
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: swig
%description
PowerPC kernels are moving towards requiring a small Open
@ -55,16 +59,31 @@ 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
%build
make %{?_smp_mflags} V=1
make %{?_smp_mflags} V=1 NO_PYTHON=1
cd pylibfdt
python3 setup.py build_ext
%py3_build
%install
%make_install PREFIX=%{_prefix} LIBDIR=%{_libdir}
%make_install PREFIX=%{_prefix} LIBDIR=%{_libdir} NO_PYTHON=1
install -p -m 644 libfdt/libfdt_env.h %{buildroot}/%{_includedir}
rm -f %{buildroot}/%{_libdir}/*.a
cd pylibfdt
%python3_install
%check
make %{?_smp_mflags} check
@ -91,4 +110,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