[packages/dtc] - updated to 1.5.0 - updated python patch

qboosh qboosh at pld-linux.org
Sun Mar 10 21:31:54 CET 2019


commit 668ea320b872d06d7b238a446ee89e7a768375f5
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Mar 10 21:37:38 2019 +0100

    - updated to 1.5.0
    - updated python patch

 dtc-python.patch | 24 ++++++++----------------
 dtc.spec         |  6 +++---
 2 files changed, 11 insertions(+), 19 deletions(-)
---
diff --git a/dtc.spec b/dtc.spec
index 6e7ef6e..2185ed3 100644
--- a/dtc.spec
+++ b/dtc.spec
@@ -6,12 +6,12 @@
 Summary:	The Device Tree Compiler
 Summary(pl.UTF-8):	Kompilator drzewiastej struktury urządzeń
 Name:		dtc
-Version:	1.4.7
+Version:	1.5.0
 Release:	1
 License:	GPL v2+ (dtc), GPL v2+ or BSD (fdt library)
 Group:		Libraries
 Source0:	https://www.kernel.org/pub/software/utils/dtc/%{name}-%{version}.tar.xz
-# Source0-md5:	cdf3bfae59374fdcd2bbc5ae4f0e835e
+# Source0-md5:	1e7f54238d991b81c54fb5aabf71ff23
 Patch0:		%{name}-python.patch
 URL:		http://www.devicetree.org/Device_Tree_Compiler
 BuildRequires:	bison
@@ -159,6 +159,6 @@ rm -rf $RPM_BUILD_ROOT
 %files -n python-libfdt
 %defattr(644,root,root,755)
 %attr(755,root,root) %{py_sitedir}/_libfdt.so
-%{py_sitedir}/pylibfdt
+%{py_sitedir}/libfdt.py[co]
 %{py_sitedir}/libfdt-%{version}-py*.egg-info
 %endif
diff --git a/dtc-python.patch b/dtc-python.patch
index d2ef468..a1ff2b2 100644
--- a/dtc-python.patch
+++ b/dtc-python.patch
@@ -1,19 +1,11 @@
---- dtc-1.4.7/pylibfdt/Makefile.pylibfdt.orig	2018-07-23 05:00:50.000000000 +0200
-+++ dtc-1.4.7/pylibfdt/Makefile.pylibfdt	2018-08-24 20:25:46.505442238 +0200
-@@ -8,7 +8,7 @@
- define run_setup
- 	SOURCES="$(1)" CPPFLAGS="$(CPPFLAGS)" OBJDIR="$(PYLIBFDT_objdir)"
- 	VERSION="$(dtc_version)"
--	$(PYLIBFDT_objdir)/setup.py --quiet $(2)
-+	$(PYLIBFDT_objdir)/setup.py $(2)
- endef
+--- dtc-1.5.0/pylibfdt/Makefile.pylibfdt.orig	2019-03-10 21:31:13.430242485 +0100
++++ dtc-1.5.0/pylibfdt/Makefile.pylibfdt	2019-03-10 21:33:46.816078189 +0100
+@@ -21,7 +21,7 @@
  
- $(PYMODULE): $(PYLIBFDT_srcs)
-@@ -19,6 +19,6 @@
  install_pylibfdt: $(PYMODULE)
- 	$(VECHO) INSTALL-PYLIB; \
- 	$(call run_setup, $(PYLIBFDT_srcs), \
--		install $(if $(SETUP_PREFIX),--prefix=$(SETUP_PREFIX)))
-+		install --optimize=2 $(if $(SETUP_PREFIX),--prefix=$(SETUP_PREFIX)) $(if $(DESTDIR),--root=$(DESTDIR)))
+ 	@$(VECHO) INSTALL-PYLIB
+-	$(PYTHON) $(SETUP) $(SETUPFLAGS) install --prefix=$(PREFIX)
++	$(PYTHON) $(SETUP) $(SETUPFLAGS) install --optimize=2 --prefix=$(PREFIX) $(if $(DESTDIR),--root=$(DESTDIR))
  
- PYLIBFDT_cleanfiles = libfdt_wrap.c libfdt.py libfdt.pyc _libfdt.so
+ pylibfdt_clean:
+ 	@$(VECHO) CLEAN "(pylibfdt)"
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/dtc.git/commitdiff/668ea320b872d06d7b238a446ee89e7a768375f5



More information about the pld-cvs-commit mailing list