]> git.pld-linux.org Git - packages/python-ply.git/commitdiff
- actually run tests, dropped Obsoletes for package which never existed
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 26 Mar 2022 07:16:53 +0000 (08:16 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 26 Mar 2022 07:16:53 +0000 (08:16 +0100)
python-ply.spec

index 6149dfbfbcc6b9de34738ec1ebcb435002fc05ed..1a4b8a1abb753a1300b7b55baac943332d37b387 100644 (file)
@@ -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
This page took 0.113425 seconds and 4 git commands to generate.