Hello community, here is the log from the commit of package dtc for openSUSE:Factory checked in at 2019-11-11 12:57:54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/dtc (Old) and /work/SRC/openSUSE:Factory/.dtc.new.2990 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "dtc" Mon Nov 11 12:57:54 2019 rev:33 rq:745990 version:1.5.1 Changes: -------- --- /work/SRC/openSUSE:Factory/dtc/dtc.changes 2019-11-01 15:13:30.952706372 +0100 +++ /work/SRC/openSUSE:Factory/.dtc.new.2990/dtc.changes 2019-11-11 12:57:55.925534119 +0100 @@ -1,0 +2,11 @@ +Wed Oct 30 15:38:12 UTC 2019 - Dirk Mueller <dmuel...@suse.com> + +- switch to building python3 bindings using setuptools to avoid + patching + +------------------------------------------------------------------- +Wed Oct 30 13:24:05 UTC 2019 - Guillaume GARDET <guillaume.gar...@opensuse.org> + +- Enable python3 binding in python3-libfdt + +------------------------------------------------------------------- New: ---- dtc-1.5.1.tar.sign ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ dtc.spec ++++++ --- /var/tmp/diff_new_pack.9g542L/_old 2019-11-11 12:57:56.373534593 +0100 +++ /var/tmp/diff_new_pack.9g542L/_new 2019-11-11 12:57:56.373534593 +0100 @@ -24,10 +24,14 @@ 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 @@ %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 @@ %{_libdir}/libfdt.so %{_includedir}/* +%files -n python3-libfdt +%{python3_sitearch}/*.so +%{python3_sitearch}/*.egg-info +%{python3_sitearch}/__pycache__/*.pyc +%{python3_sitearch}/libfdt.py + %changelog