!16 修复python-py编译失败问题
From: @wu-leilei Reviewed-by: @ruebb Signed-off-by: @ruebb
This commit is contained in:
commit
ffd12a5320
@ -1,6 +1,5 @@
|
||||
%bcond_with tests
|
||||
|
||||
%global with_help 1
|
||||
%global modname py
|
||||
%global modnameversion %{modname}-%{version}
|
||||
%global p2builddir python2tmp
|
||||
@ -8,7 +7,7 @@
|
||||
|
||||
Name: python-%{modname}
|
||||
Version: 1.11.0
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: Library with cross-python path, ini-parsing, io, code, log facilities
|
||||
License: MIT and Public Domain
|
||||
URL: http://pylib.readthedocs.io/en/stable/
|
||||
@ -34,9 +33,6 @@ following tools and modules:\
|
||||
%package -n python3-%{modname}
|
||||
Summary: %{summary}
|
||||
BuildRequires: python3-devel python3-setuptools python3-setuptools_scm
|
||||
%if 0%{?with_help}
|
||||
BuildRequires: %{_bindir}/sphinx-build-3
|
||||
%endif
|
||||
%if %{with tests}
|
||||
BuildRequires: python3-pytest >= 2.9.0, python3-pytest < 2.10
|
||||
%endif
|
||||
@ -48,10 +44,7 @@ Obsoletes: platform-python-%{modname} < %{version}-%{release}
|
||||
%description -n python3-%{modname}
|
||||
%{_description}
|
||||
|
||||
|
||||
%if 0%{?with_help}
|
||||
%package_help
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%autosetup -c -n %{modnameversion}
|
||||
@ -66,15 +59,11 @@ mv %{modnameversion} %{p3builddir}
|
||||
%build
|
||||
pushd %{p3builddir}
|
||||
%py3_build
|
||||
%if 0%{?with_help}
|
||||
make -C doc html PYTHONPATH=$(pwd) SPHINXBUILD=sphinx-build-3
|
||||
%endif
|
||||
popd
|
||||
|
||||
%install
|
||||
pushd %{p3builddir}
|
||||
%py3_install
|
||||
rm -rf doc/_build/html/.buildinfo
|
||||
popd
|
||||
|
||||
%check
|
||||
@ -90,14 +79,14 @@ popd
|
||||
%{python3_sitelib}/py-*.egg-info/
|
||||
%{python3_sitelib}/py/
|
||||
|
||||
%if 0%{?with_help}
|
||||
%files help
|
||||
%doc %{p3builddir}/CHANGELOG.rst
|
||||
%doc %{p3builddir}/README.rst
|
||||
%doc %{p3builddir}/doc/_build/html
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Thu Jul 21 2022 wulei <wulei80@h-partners.com> - 1.11.0-2
|
||||
- Sphinx 4.4.x causes python-py to fail to be compiled, so remove doc from python-py
|
||||
|
||||
* Wed Dec 15 2021 shixuantong <shixuantong@huawei.com> - 1.11.0-1
|
||||
- update version to 1.11.0
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user