- switch to building python3 bindings using setuptools to avoid
patching - update to 1.5.1: OBS-URL: https://build.opensuse.org/package/show/Base:System/dtc?expand=0&rev=41
This commit is contained in:
parent
95b7dc45fd
commit
e83e86382d
@ -1,12 +0,0 @@
|
|||||||
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)"
|
|
10
dtc.changes
10
dtc.changes
@ -1,14 +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>
|
Wed Oct 30 13:24:05 UTC 2019 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||||
|
|
||||||
- Enable python3 binding in python3-libfdt
|
- 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>
|
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
|
* Numerous assorted bugfixes
|
||||||
* Add a new fdt_create_with_flags() function, and a
|
* Add a new fdt_create_with_flags() function, and a
|
||||||
FDT_CREATE_FLAG_NO_NAME_DEDUP flag which improves speed at the
|
FDT_CREATE_FLAG_NO_NAME_DEDUP flag which improves speed at the
|
||||||
|
5
dtc.spec
5
dtc.spec
@ -31,6 +31,7 @@ BuildRequires: bison
|
|||||||
BuildRequires: flex
|
BuildRequires: flex
|
||||||
BuildRequires: libyaml-devel
|
BuildRequires: libyaml-devel
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
BuildRequires: swig
|
BuildRequires: swig
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -74,12 +75,14 @@ Python binding part.
|
|||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make %{?_smp_mflags} V=1
|
make %{?_smp_mflags} V=1 NO_PYTHON=1
|
||||||
|
python3 pylibfdt/setup.py build '--executable=/usr/bin/python3 -s'
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install PREFIX=%{_prefix} LIBDIR=%{_libdir}
|
%make_install PREFIX=%{_prefix} LIBDIR=%{_libdir}
|
||||||
install -p -m 644 libfdt/libfdt_env.h %{buildroot}/%{_includedir}
|
install -p -m 644 libfdt/libfdt_env.h %{buildroot}/%{_includedir}
|
||||||
rm -f %{buildroot}/%{_libdir}/*.a
|
rm -f %{buildroot}/%{_libdir}/*.a
|
||||||
|
python3 pylibfdt/setup.py install -O1 --skip-build --force --root %{buildroot} --prefix %{_prefix}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make %{?_smp_mflags} check
|
make %{?_smp_mflags} check
|
||||||
|
Loading…
Reference in New Issue
Block a user