Fix build
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyparsing?expand=0&rev=45
This commit is contained in:
parent
3899205e0e
commit
501b075884
3
_multibuild
Normal file
3
_multibuild
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<multibuild>
|
||||||
|
<package>test</package>
|
||||||
|
</multibuild>
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:606afcd112b68f0cda34441ef8ae35e8579ea3b12a8327e4b95b902fd9858dfc
|
|
||||||
size 296285
|
|
3
pyparsing-2.3.1~test5.tar.gz
Normal file
3
pyparsing-2.3.1~test5.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:0f671df9146dbf152a8475cd1703d89909d8e70ad7c33eb706c0dfd7f498e668
|
||||||
|
size 590351
|
@ -19,9 +19,18 @@
|
|||||||
%define oldpython python
|
%define oldpython python
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
|
||||||
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
|
%if "%{flavor}" == "test"
|
||||||
%bcond_without test
|
%bcond_without test
|
||||||
|
%else
|
||||||
|
%bcond_with test
|
||||||
|
%endif
|
||||||
|
%if %{with test}
|
||||||
|
Name: python-pyparsing-%{flavor}
|
||||||
|
%else
|
||||||
Name: python-pyparsing
|
Name: python-pyparsing
|
||||||
Version: 2.3.1~test4
|
%endif
|
||||||
|
Version: 2.3.1~test5
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Grammar Parser Library for Python
|
Summary: Grammar Parser Library for Python
|
||||||
License: MIT AND GPL-2.0-or-later AND GPL-3.0-or-later
|
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: python-rpm-macros
|
||||||
BuildRequires: python2-unittest2
|
BuildRequires: python2-unittest2
|
||||||
BuildRequires: python3-Sphinx
|
BuildRequires: python3-Sphinx
|
||||||
BuildRequires: python3-Sphinx
|
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
BuildRequires: %{python_module nose}
|
BuildRequires: %{python_module nose}
|
||||||
%endif
|
%endif
|
||||||
@ -66,9 +74,8 @@ HTML Documentation and examples for %name.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
(cd docs/
|
# export PYTHONPATH=..:../examples
|
||||||
make html
|
python3 setup.py build_sphinx -v
|
||||||
)
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%if ! %{with test}
|
%if ! %{with test}
|
||||||
@ -97,7 +104,7 @@ export PYTHONPATH=.:example
|
|||||||
|
|
||||||
%files -n %{name}-docs
|
%files -n %{name}-docs
|
||||||
%if ! %{with test}
|
%if ! %{with test}
|
||||||
%doc examples docs/_build/html/
|
%doc examples build/sphinx/html
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user