Drop docs in python2 build

epel9
Sandro Mani 6 years ago
parent 9646f85af9
commit e6d8cbdaaa

@ -9,7 +9,7 @@ antivirus quarantine files, etc.
Name: python-%{srcname} Name: python-%{srcname}
Version: 0.46 Version: 0.46
Release: 2%{?dist} Release: 3%{?dist}
Summary: Python package to parse, read and write Microsoft OLE2 files Summary: Python package to parse, read and write Microsoft OLE2 files
License: BSD License: BSD
@ -25,8 +25,8 @@ BuildArch: noarch
%package -n python2-%{srcname} %package -n python2-%{srcname}
Summary: %{summary} Summary: %{summary}
BuildRequires: python2-devel BuildRequires: python2-devel
# There is python-sphinx in RHEL 7, but it's too old # There is python-sphinx in RHEL 7, but it's too old. Fedora >= 31 does not have python2-sphinx anymore.
%if 0%{?fedora} %if 0%{?fedora} && 0%{?fedora} < 31
BuildRequires: python2-sphinx BuildRequires: python2-sphinx
%endif %endif
%{?python_provide:%python_provide python2-%{srcname}} %{?python_provide:%python_provide python2-%{srcname}}
@ -56,7 +56,7 @@ Python3 version.
%build %build
%py2_build %py2_build
%if 0%{?fedora} %if 0%{?fedora} && 0%{?fedora} < 31
make -C doc html BUILDDIR=_build_py2 SPHINXBUILD=sphinx-build-%python2_version make -C doc html BUILDDIR=_build_py2 SPHINXBUILD=sphinx-build-%python2_version
%endif %endif
@ -80,7 +80,7 @@ make -C doc html BUILDDIR=_build_py3 SPHINXBUILD=sphinx-build-%python3_version
%files -n python2-%{srcname} %files -n python2-%{srcname}
%doc README.md %doc README.md
%if 0%{?fedora} %if 0%{?fedora} && 0%{?fedora} < 31
%doc doc/_build_py2/html %doc doc/_build_py2/html
%endif %endif
%license doc/License.rst %license doc/License.rst
@ -98,6 +98,9 @@ make -C doc html BUILDDIR=_build_py3 SPHINXBUILD=sphinx-build-%python3_version
%changelog %changelog
* Mon Mar 11 2019 Sandro Mani <manisandro@gmail.com> - 0.46-3
- Drop docs in python2 build
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.46-2 * Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.46-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

Loading…
Cancel
Save