[packages/python-ply] - actually run tests, dropped Obsoletes for package which never existed
qboosh
qboosh at pld-linux.org
Sat Mar 26 08:15:00 CET 2022
commit 9dd4b9e7163e63070f249ff01136c50b4fa4f026
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Mar 26 08:16:53 2022 +0100
- actually run tests, dropped Obsoletes for package which never existed
python-ply.spec | 27 ++++++++++++++++++++++-----
1 file changed, 22 insertions(+), 5 deletions(-)
---
diff --git a/python-ply.spec b/python-ply.spec
index 6149dfb..1a4b8a1 100644
--- a/python-ply.spec
+++ b/python-ply.spec
@@ -30,7 +30,6 @@ BuildRequires: python3-setuptools
%endif
%endif
Requires: python-modules >= 1:2.7
-Obsoletes: ply
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -107,11 +106,31 @@ lex i yacc dla Pythona - przykłady.
%build
%if %{with python2}
-%py_build %{?with_tests:test}
+%py_build
+
+%if %{with tests}
+cd test
+for t in testlex.py testyacc.py testcpp.py ; do
+PYTHONPATH=$(pwd)/.. \
+%{__python} "$t"
+done
+./cleanup.sh
+cd ..
+%endif
%endif
%if %{with python3}
-%py3_build %{?with_tests:test}
+%py3_build
+
+%if %{with tests}
+cd test
+for t in testlex.py testyacc.py testcpp.py ; do
+PYTHONPATH=$(pwd)/.. \
+%{__python3} "$t"
+done
+./cleanup.sh
+cd ..
+%endif
%endif
%install
@@ -120,8 +139,6 @@ install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
%if %{with python2}
%py_install
-%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
-%py_comp $RPM_BUILD_ROOT%{py_sitedir}
%py_postclean
%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-ply.git/commitdiff/9dd4b9e7163e63070f249ff01136c50b4fa4f026
More information about the pld-cvs-commit
mailing list