[packages/python-funcparserlib] - updated to 1.0.0

qboosh qboosh at pld-linux.org
Sat Sep 10 20:41:22 CEST 2022


commit f50c1c14daa1ad3cce393f0914b7ac4385a2fa83
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Sep 10 20:41:36 2022 +0200

    - updated to 1.0.0

 python-funcparserlib.spec | 29 ++++++++++-------------------
 1 file changed, 10 insertions(+), 19 deletions(-)
---
diff --git a/python-funcparserlib.spec b/python-funcparserlib.spec
index 29a2c5d..e9077b0 100644
--- a/python-funcparserlib.spec
+++ b/python-funcparserlib.spec
@@ -1,6 +1,6 @@
 #
 # Conditional build:
-%bcond_without	tests	# unit tests
+%bcond_with	tests	# unit tests (not in sdist)
 %bcond_without	python2 # CPython 2.x module
 %bcond_without	python3 # CPython 3.x module
 
@@ -8,25 +8,24 @@
 Summary:	Recursive descent parsing library based on functional combinators
 Summary(pl.UTF-8):	Biblioteka analizy rekurencyjnej oparta na kombinatorach funkcyjnych
 Name:		python-%{module}
-Version:	0.3.6
-Release:	5
+Version:	1.0.0
+Release:	1
 License:	MIT
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/funcparserlib/
 Source0:	https://files.pythonhosted.org/packages/source/f/funcparserlib/%{module}-%{version}.tar.gz
-# Source0-md5:	3aba546bdad5d0826596910551ce37c0
+# Source0-md5:	c62c820f171f66c317ea9daf02c7f28a
 URL:		https://github.com/vlasovskikh/funcparserlib
 %if %{with python2}
-BuildRequires:	python-modules >= 1:2.5
+BuildRequires:	python-modules >= 1:2.7
 BuildRequires:	python-setuptools
 %endif
 %if %{with python3}
-BuildRequires:	python3-2to3 >= 1:3.2
-BuildRequires:	python3-modules >= 1:3.2
+BuildRequires:	python3-modules >= 1:3.7
 BuildRequires:	python3-setuptools
 %endif
 BuildRequires:	rpmbuild(macros) >= 1.714
-Requires:	python-modules >= 1:2.5
+Requires:	python-modules >= 1:2.7
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -40,7 +39,7 @@ Biblioteka analizy rekurencyjnej oparta na kombinatorach funkcyjnych.
 Summary:	Recursive descent parsing library based on functional combinators
 Summary(pl.UTF-8):	Biblioteka analizy rekurencyjnej oparta na kombinatorach funkcyjnych
 Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.2
+Requires:	python3-modules >= 1:3.7
 
 %description -n python3-%{module}
 Recursive descent parsing library based on functional combinators.
@@ -56,9 +55,7 @@ Biblioteka analizy rekurencyjnej oparta na kombinatorach funkcyjnych.
 %py_build
 
 %if %{with tests}
-cd build-2/lib
 %{__python} -m unittest discover
-cd ../..
 %endif
 %endif
 
@@ -66,10 +63,7 @@ cd ../..
 %py3_build
 
 %if %{with tests}
-# run tests on 2to3'd sources
-cd build-3/lib
 %{__python3} -m unittest discover
-cd ../..
 %endif
 %endif
 
@@ -79,14 +73,11 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with python2}
 %py_install
 
-%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/%{module}/tests
 %py_postclean
 %endif
 
 %if %{with python3}
 %py3_install
-
-%{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/%{module}/tests
 %endif
 
 %clean
@@ -95,7 +86,7 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with python2}
 %files
 %defattr(644,root,root,755)
-%doc CHANGES LICENSE README doc/*.md
+%doc LICENSE README.md
 %{py_sitescriptdir}/%{module}
 %{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
 %endif
@@ -103,7 +94,7 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with python3}
 %files -n python3-%{module}
 %defattr(644,root,root,755)
-%doc CHANGES LICENSE README doc/*.md
+%doc LICENSE README.md
 %{py3_sitescriptdir}/%{module}
 %{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
 %endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-funcparserlib.git/commitdiff/f50c1c14daa1ad3cce393f0914b7ac4385a2fa83



More information about the pld-cvs-commit mailing list