Bootstrap for Python 3.8

This commit is contained in:
Miro Hrončok 2019-08-14 23:21:56 +02:00
parent 98618aa617
commit 8051b2fe3f

View File

@ -6,10 +6,13 @@
%global python2_wheelname %{srcname}-%{version}-py2.py3-none-any.whl
%global python3_wheelname %python2_wheelname
# when bootstrapping Python 3, pyparsing needs to be rebuilt before sphinx
%bcond_with doc
Summary: %{sum}
Name: pyparsing
Version: 2.4.0
Release: 2%{?dist}
Release: 3%{?dist}
License: MIT
URL: https://github.com/pyparsing/pyparsing
@ -21,7 +24,10 @@ BuildRequires: python2-devel
BuildRequires: python2-setuptools
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%if %{with doc}
BuildRequires: python3-sphinx
%endif
%if 0%{?build_wheel}
BuildRequires: python2-pip
@ -35,11 +41,13 @@ pyparsing is a module that can be used to easily and directly configure syntax
definitions for any number of text parsing applications.
%if %{with doc}
%package doc
Summary: Documentation for pyparsing python package
%description doc
The package contains documentation for pyparsing.
%endif
%package -n python2-%{srcname}
@ -81,12 +89,14 @@ dos2unix -k CHANGES LICENSE
%py3_build
%endif
%if %{with doc}
# build docs
pushd docs
# Theme is not available
sed -i '/alabaster/d' conf.py
sphinx-build -b html . html
popd
%endif
%install
%if 0%{?build_wheel}
@ -120,12 +130,17 @@ popd
%{python3_sitelib}/__pycache__/*
%{python3_sitelib}/pyparsing-*dist-info/
%if %{with doc}
%files doc
%license LICENSE
%doc CHANGES README.rst docs/html examples
%endif
%changelog
* Wed Aug 14 2019 Miro Hrončok <mhroncok@redhat.com> - 2.4.0-3
- Bootstrap for Python 3.8
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild