[packages/python-pyudev] - python3 BRs, check-files cleanup

qboosh qboosh at pld-linux.org
Thu Sep 17 20:35:11 CEST 2015


commit 6d5cce0b43e3c2413310a3f21668c68a6cf09b3b
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Sep 17 20:37:02 2015 +0200

    - python3 BRs, check-files cleanup

 python-pyudev.spec | 22 ++++++++++++++++------
 1 file changed, 16 insertions(+), 6 deletions(-)
---
diff --git a/python-pyudev.spec b/python-pyudev.spec
index d4749e4..fdcf342 100644
--- a/python-pyudev.spec
+++ b/python-pyudev.spec
@@ -1,9 +1,9 @@
 #
 # Conditional build:
-%bcond_without	doc	# HTML documentation build
-%bcond_without	tests	# do not perform "make test"
-%bcond_without  python2         # Python 2.x module
-%bcond_without  python3         # Python 3.x module
+%bcond_without	doc		# HTML documentation build
+%bcond_without	tests		# do not perform "make test"
+%bcond_without	python2         # Python 2.x module
+%bcond_without	python3         # Python 3.x module
 #
 %define 	module	pyudev
 Summary:	Pure Python binding for libudev
@@ -26,8 +26,14 @@ Source3:	pyside-objects.inv
 # Source3-md5:	8cc5c1ff0bb5ef9f4e9968c9b4a01984
 Patch0:		%{name}-offline.patch
 URL:		http://pyudev.readthedocs.org/
+%if %{with python2}
 BuildRequires:	python-devel >= 1:2.6
-BuildRequires:	python-distribute
+BuildRequires:	python-setuptools
+%endif
+%if %{with python3}
+BuildRequires:	python3-devel >= 1:3.2
+BuildRequires:	python3-setuptools
+%endif
 BuildRequires:	rpm-pythonprov
 %if %{with doc}
 # for tests 1.0b1 is required, but for docs generation 0.8 is sufficient
@@ -62,6 +68,7 @@ użyciem wątków albo wewnątrz pętli zdarzeń Qt, GLiba czy wxPythona.
 Summary:	Pure Python binding for libudev
 Summary(pl.UTF-8):	Czysto pythonowe wiązanie do libudev
 Group:		Development/Languages/Python
+Requires:	python3-modules
 
 %description -n python3-%{module}
 pyudev is a LGPL licensed, pure Python binding for libudev, the device
@@ -79,7 +86,6 @@ urządzenia, odpytywać o właściwości i atrybuty urządzeń oraz
 monitorować urządzenia, włącznie z asynchronicznym monitorowaniem z
 użyciem wątków albo wewnątrz pętli zdarzeń Qt, GLiba czy wxPythona.
 
-
 %prep
 %setup -q -n %{module}-%{version}
 %patch0 -p1
@@ -107,6 +113,8 @@ rm -rf $RPM_BUILD_ROOT
 	install --skip-build \
 	--optimize=2 \
 	--root=$RPM_BUILD_ROOT
+
+%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/tests
 %endif
 %if %{with python3}
 %{__python3} setup.py \
@@ -114,6 +122,8 @@ rm -rf $RPM_BUILD_ROOT
 	install --skip-build \
 	--optimize=2 \
 	--root=$RPM_BUILD_ROOT
+
+%{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/tests
 %endif
 
 %clean
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-pyudev.git/commitdiff/6d5cce0b43e3c2413310a3f21668c68a6cf09b3b



More information about the pld-cvs-commit mailing list