Matej Cepl 2018-11-21 18:08:02 +00:00 committed by Git OBS Bridge
parent 3899205e0e
commit 501b075884
4 changed files with 19 additions and 9 deletions

3
_multibuild Normal file
View File

@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:606afcd112b68f0cda34441ef8ae35e8579ea3b12a8327e4b95b902fd9858dfc
size 296285

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0f671df9146dbf152a8475cd1703d89909d8e70ad7c33eb706c0dfd7f498e668
size 590351

View File

@ -19,9 +19,18 @@
%define oldpython python
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%bcond_without test
%else
%bcond_with test
%endif
%if %{with test}
Name: python-pyparsing-%{flavor}
%else
Name: python-pyparsing
Version: 2.3.1~test4
%endif
Version: 2.3.1~test5
Release: 0
Summary: Grammar Parser Library for Python
License: MIT AND GPL-2.0-or-later AND GPL-3.0-or-later
@ -34,7 +43,6 @@ BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python2-unittest2
BuildRequires: python3-Sphinx
BuildRequires: python3-Sphinx
%if %{with test}
BuildRequires: %{python_module nose}
%endif
@ -66,9 +74,8 @@ HTML Documentation and examples for %name.
%build
%python_build
(cd docs/
make html
)
# export PYTHONPATH=..:../examples
python3 setup.py build_sphinx -v
%install
%if ! %{with test}
@ -97,7 +104,7 @@ export PYTHONPATH=.:example
%files -n %{name}-docs
%if ! %{with test}
%doc examples docs/_build/html/
%doc examples build/sphinx/html
%endif
%changelog