]> git.pld-linux.org Git - packages/python-pyparsing.git/commitdiff
- new URLs, updated to 2.4.2
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 21 Oct 2019 20:02:40 +0000 (22:02 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Mon, 21 Oct 2019 20:02:40 +0000 (22:02 +0200)
python-pyparsing.spec

index 945a65a1e5c09048276d7df63cd1f3e4a105c63e..8cfddd98532c44510393b4d79e58ea0b6ce9cb74 100644 (file)
@@ -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 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)
This page took 0.083759 seconds and 4 git commands to generate.