Disable building apidocs as epydoc is gone
This commit is contained in:
parent
0677770d9b
commit
38eb34d86f
@ -1,5 +1,8 @@
|
|||||||
%global oname rtslib-fb
|
%global oname rtslib-fb
|
||||||
|
|
||||||
|
# epydoc is gone, so disable for now
|
||||||
|
%bcond_with apidocs
|
||||||
|
|
||||||
Name: python-rtslib
|
Name: python-rtslib
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
Summary: API for Linux kernel LIO SCSI target
|
Summary: API for Linux kernel LIO SCSI target
|
||||||
@ -10,7 +13,9 @@ Source: %{url}/archive/v%{version}/%{oname}-%{version}.tar.gz
|
|||||||
Source1: target.service
|
Source1: target.service
|
||||||
Patch0: 0001-disable-xen_pvscsi.patch
|
Patch0: 0001-disable-xen_pvscsi.patch
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
%if %{with apidocs}
|
||||||
BuildRequires: epydoc
|
BuildRequires: epydoc
|
||||||
|
%endif
|
||||||
BuildRequires: systemd
|
BuildRequires: systemd
|
||||||
|
|
||||||
|
|
||||||
@ -21,6 +26,7 @@ service and targetctl tool for restoring configuration.
|
|||||||
%description %_description
|
%description %_description
|
||||||
|
|
||||||
|
|
||||||
|
%if %{with apidocs}
|
||||||
%package doc
|
%package doc
|
||||||
Summary: Documentation for python-rtslib
|
Summary: Documentation for python-rtslib
|
||||||
Requires: python3-rtslib = %{version}-%{release}
|
Requires: python3-rtslib = %{version}-%{release}
|
||||||
@ -28,7 +34,7 @@ Requires: python3-rtslib = %{version}-%{release}
|
|||||||
%description doc
|
%description doc
|
||||||
API documentation for rtslib, to configure the generic Linux SCSI
|
API documentation for rtslib, to configure the generic Linux SCSI
|
||||||
multiprotocol kernel target.
|
multiprotocol kernel target.
|
||||||
|
%endif
|
||||||
|
|
||||||
%package -n python3-rtslib
|
%package -n python3-rtslib
|
||||||
Summary: API for Linux kernel LIO SCSI target
|
Summary: API for Linux kernel LIO SCSI target
|
||||||
@ -42,6 +48,9 @@ BuildRequires: python3-pyudev
|
|||||||
Requires: python3-kmod
|
Requires: python3-kmod
|
||||||
Requires: python3-six
|
Requires: python3-six
|
||||||
Requires: python3-pyudev
|
Requires: python3-pyudev
|
||||||
|
%if ! %{with apidocs}
|
||||||
|
Obsoletes: %{name}-doc < %{version}-%{release}
|
||||||
|
%endif
|
||||||
|
|
||||||
%description -n python3-rtslib
|
%description -n python3-rtslib
|
||||||
API for generic Linux SCSI kernel target.
|
API for generic Linux SCSI kernel target.
|
||||||
@ -67,8 +76,10 @@ on system restart.
|
|||||||
%build
|
%build
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
|
%if %{with apidocs}
|
||||||
mkdir -p doc/html
|
mkdir -p doc/html
|
||||||
epydoc --no-sourcecode --html -n rtslib -o doc/html rtslib/*.py
|
epydoc --no-sourcecode --html -n rtslib -o doc/html rtslib/*.py
|
||||||
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
# remove py2 scripts if py3 enabled
|
# remove py2 scripts if py3 enabled
|
||||||
@ -110,14 +121,17 @@ install -m 644 doc/saveconfig.json.5 %{buildroot}%{_mandir}/man5/
|
|||||||
%{_mandir}/man8/targetctl.8*
|
%{_mandir}/man8/targetctl.8*
|
||||||
%{_mandir}/man5/saveconfig.json.5*
|
%{_mandir}/man5/saveconfig.json.5*
|
||||||
|
|
||||||
|
%if %{with apidocs}
|
||||||
%files doc
|
%files doc
|
||||||
%doc doc/html
|
%doc doc/html
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Fri Nov 01 2019 Neal Gompa <ngompa13@gmail.com> - 2.1.fb69-7
|
* Fri Nov 01 2019 Neal Gompa <ngompa13@gmail.com> - 2.1.fb69-7
|
||||||
- Fix file list for python3-rtslib subpackage
|
- Fix file list for python3-rtslib subpackage
|
||||||
- Don't compress manpages in build phase, as rpm auto-compresses manpages
|
- Don't compress manpages in build phase, as rpm auto-compresses manpages
|
||||||
- Move systemd requires to the target-restore subpackage
|
- Move systemd requires to the target-restore subpackage
|
||||||
|
- Disable building apidocs as epydoc is gone
|
||||||
|
|
||||||
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.1.fb69-6
|
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.1.fb69-6
|
||||||
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
||||||
|
Loading…
Reference in New Issue
Block a user