[packages/i2c-tools] up to 4.4

atler atler at pld-linux.org
Sun Oct 13 13:47:56 CEST 2024


commit 61a72159e913ce624790632c00fc5c50444369e0
Author: Jan Palus <atler at pld-linux.org>
Date:   Sun Oct 13 12:55:15 2024 +0200

    up to 4.4

 i2c-tools-python.patch |  4 ++--
 i2c-tools.spec         | 16 +++++++++++-----
 2 files changed, 13 insertions(+), 7 deletions(-)
---
diff --git a/i2c-tools.spec b/i2c-tools.spec
index a4fbfce..28ca6da 100644
--- a/i2c-tools.spec
+++ b/i2c-tools.spec
@@ -9,18 +9,24 @@ Summary:	I2C tools for Linux
 Summary(en.UTF-8):	I²C tools for Linux
 Summary(pl.UTF-8):	Narzędzia I²C dla Linuksa
 Name:		i2c-tools
-Version:	4.3
-Release:	2
+Version:	4.4
+Release:	1
 License:	GPL v2+
 Group:		Applications/System
 Source0:	https://www.kernel.org/pub/software/utils/i2c-tools/%{name}-%{version}.tar.xz
-# Source0-md5:	0c42800f746e064dc40a4dad44ed8a33
+# Source0-md5:	3894e140667cf81049674b42c52d074b
 Patch0:		%{name}-python.patch
 URL:		https://i2c.wiki.kernel.org/index.php/I2C_Tools
 BuildRequires:	perl-modules >= 1:5.6
 %if %{with python}
-%{?with_python2:BuildRequires:	python-devel >= 2}
-%{?with_python3:BuildRequires:	python3-devel >= 1:3.2}
+%if %{with python2}
+BuildRequires:	python-devel >= 2
+BuildRequires:	python-setuptools
+%endif
+%if %{with python3}
+BuildRequires:	python3-devel >= 1:3.2
+BuildRequires:	python3-setuptools
+%endif
 %endif
 BuildRequires:	rpm-perlprov >= 3.0.3-16
 BuildRequires:	rpm-pythonprov >= 1.714
diff --git a/i2c-tools-python.patch b/i2c-tools-python.patch
index 3266f71..17823f8 100644
--- a/i2c-tools-python.patch
+++ b/i2c-tools-python.patch
@@ -4,8 +4,8 @@
  	rm -rf py-smbus/build
  
  install-python:
--	$(DISTUTILS) install
-+	$(DISTUTILS) install --optimize=2 --root=$(DESTDIR) --prefix=$(prefix)
+-	$(DISTUTILS) install --prefix="$(PREFIX)"
++	$(DISTUTILS) install --prefix="$(PREFIX) --optimize=2 --root=$(DESTDIR)
  
  all: all-python
  
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/i2c-tools.git/commitdiff/61a72159e913ce624790632c00fc5c50444369e0



More information about the pld-cvs-commit mailing list