[packages/python-pyparsing] - new URLs, updated to 2.4.2
qboosh
qboosh at pld-linux.org
Mon Oct 21 21:59:10 CEST 2019
commit f3ca9dc41654a6441f9bef4369ee100675db81cd
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Oct 21 22:02:40 2019 +0200
- new URLs, updated to 2.4.2
python-pyparsing.spec | 39 +++++++++++++++++++++++----------------
1 file changed, 23 insertions(+), 16 deletions(-)
---
diff --git a/python-pyparsing.spec b/python-pyparsing.spec
index 945a65a..8cfddd9 100644
--- a/python-pyparsing.spec
+++ b/python-pyparsing.spec
@@ -1,33 +1,35 @@
#
# Conditional build:
+%bcond_without doc # Sphinx documentation
%bcond_without python2 # CPython 2.x module
%bcond_without python3 # CPython 3.x module
-%bcond_without setuptools # build without setuptools (for bootstraping)
%define module pyparsing
-Summary: pyparsing - a Python module for creating executing simple grammars
-Summary(pl.UTF-8): pyparsing - moduł Pythona umożliwiający tworzenie i parsowanie prostych gramatyk
+Summary: pyparsing - Python 2 module for creating executing simple grammars
+Summary(pl.UTF-8): pyparsing - moduł Pythona 2 umożliwiający tworzenie i parsowanie prostych gramatyk
Name: python-%{module}
-Version: 2.2.0
-Release: 2
+Version: 2.4.2
+Release: 1
License: MIT
Group: Libraries/Python
-Source0: http://downloads.sourceforge.net/pyparsing/%{module}-%{version}.tar.gz
-# Source0-md5: 0214e42d63af850256962b6744c948d9
-URL: http://pyparsing.sourceforge.net/
+#Source0Download: https://pypi.org/simple/pyparsing/
+Source0: https://files.pythonhosted.org/packages/source/p/pyparsing/%{module}-%{version}.tar.gz
+# Source0-md5: 46d02cbe0461fe0571d51649e6006ef5
+URL: https://github.com/pyparsing/pyparsing/
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
%if %{with python2}
BuildRequires: python-devel >= 1:2.6
BuildRequires: python-modules >= 1:2.6
-%{?with_setuptools:BuildRequires: python-setuptools}
+BuildRequires: python-setuptools
%endif
%if %{with python3}
BuildRequires: python3-devel >= 1:3.3
BuildRequires: python3-modules >= 1:3.3
-%{?with_setuptools:BuildRequires: python3-setuptools}
+BuildRequires: python3-setuptools
%endif
-Requires: python-libs
+%{?with_doc:BuildRequires: sphinx-pdg}
+Requires: python-modules >= 1:2.6
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -46,9 +48,10 @@ klas, przy pomocy których gramatyka tworzona jest wprost w kodzie
Pythona.
%package -n python3-%{module}
-Summary: pyparsing - a Python3 module for creating executing simple grammars
-Summary(pl.UTF-8): pyparsing - moduł Pythona3 umożliwiający tworzenie i parsowanie prostych gramatyk
+Summary: pyparsing - Python 3 module for creating executing simple grammars
+Summary(pl.UTF-8): pyparsing - moduł Pythona 3 umożliwiający tworzenie i parsowanie prostych gramatyk
Group: Libraries/Python
+Requires: python-modules >= 1:3.3
%description -n python3-%{module}
The parsing module is an alternative approach to creating and
@@ -100,6 +103,10 @@ Pakiet zawierający przykładowe skrypty dla modułu Pythona pyparsing.
%py3_build
%endif
+%if %{with doc}
+%{__make} -C docs html
+%endif
+
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{py_sitescriptdir},%{_examplesdir}/%{name}-%{version}}
@@ -122,7 +129,7 @@ rm -rf $RPM_BUILD_ROOT
%if %{with python2}
%files
%defattr(644,root,root,755)
-%doc CHANGES LICENSE README
+%doc CHANGES LICENSE README.rst
%{py_sitescriptdir}/pyparsing.py[co]
%{py_sitescriptdir}/pyparsing-*.egg-info
%endif
@@ -130,7 +137,7 @@ rm -rf $RPM_BUILD_ROOT
%if %{with python3}
%files -n python3-%{module}
%defattr(644,root,root,755)
-%doc CHANGES LICENSE README
+%doc CHANGES LICENSE README.rst
%{py3_sitescriptdir}/pyparsing.py
%{py3_sitescriptdir}/__pycache__/pyparsing*.py[co]
%{py3_sitescriptdir}/pyparsing-*.egg-info
@@ -138,7 +145,7 @@ rm -rf $RPM_BUILD_ROOT
%files doc
%defattr(644,root,root,755)
-%doc HowToUsePyparsing.html htmldoc pyparsingClassDiagram.{JPG,PNG}
+%doc docs/_build/html/{_static,*.html,*.js}
%files examples
%defattr(644,root,root,755)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-pyparsing.git/commitdiff/f3ca9dc41654a6441f9bef4369ee100675db81cd
More information about the pld-cvs-commit
mailing list