Build the Doxygen reference manuals, and merge the python-grpcio-doc subpackage into grpc-doc
This commit is contained in:
parent
426ac1e447
commit
119766de28
80
grpc.spec
80
grpc.spec
@ -133,6 +133,9 @@ BuildRequires: python3dist(gevent)
|
|||||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1893533
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1893533
|
||||||
%global _lto_cflags %{nil}
|
%global _lto_cflags %{nil}
|
||||||
|
|
||||||
|
# Reference documentation
|
||||||
|
BuildRequires: doxygen
|
||||||
|
|
||||||
BuildRequires: ca-certificates
|
BuildRequires: ca-certificates
|
||||||
# For converting absolute symlinks in the buildroot to relative ones
|
# For converting absolute symlinks in the buildroot to relative ones
|
||||||
BuildRequires: symlinks
|
BuildRequires: symlinks
|
||||||
@ -263,8 +266,33 @@ Summary: Documentation and examples for gRPC
|
|||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
|
Obsoletes: python-grpcio-doc < 1.26.0-13
|
||||||
|
Provides: python-grpcio-doc = %{version}-%{release}
|
||||||
|
Provides: python-grpcio-channelz-doc = %{version}-%{release}
|
||||||
|
Provides: python-grpcio-health-checking-doc = %{version}-%{release}
|
||||||
|
Provides: python-grpcio-reflection-doc = %{version}-%{release}
|
||||||
|
Provides: python-grpcio-status-doc = %{version}-%{release}
|
||||||
|
Provides: python-grpcio-testing-doc = %{version}-%{release}
|
||||||
|
|
||||||
%description doc
|
%description doc
|
||||||
Documentation and examples for gRPC.
|
Documentation and examples for gRPC, including documentation for the following:
|
||||||
|
|
||||||
|
• C (core)
|
||||||
|
○ API
|
||||||
|
○ Internals
|
||||||
|
• C++
|
||||||
|
○ API
|
||||||
|
○ Internals
|
||||||
|
• Objective C
|
||||||
|
○ API
|
||||||
|
○ Internals
|
||||||
|
• Python
|
||||||
|
○ grpcio
|
||||||
|
○ grpcio_channelz
|
||||||
|
○ grpcio_health_checking
|
||||||
|
○ grpcio_reflection
|
||||||
|
○ grpcio_status
|
||||||
|
○ grpcio_testing
|
||||||
|
|
||||||
|
|
||||||
%package cpp
|
%package cpp
|
||||||
@ -403,29 +431,6 @@ BuildArch: noarch
|
|||||||
Testing utilities for gRPC Python.
|
Testing utilities for gRPC Python.
|
||||||
|
|
||||||
|
|
||||||
%package -n python-grpcio-doc
|
|
||||||
License: ASL 2.0
|
|
||||||
Summary: Documentation for Python language bindings for gRPC
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Provides: python-grpcio-channelz-doc = %{version}-%{release}
|
|
||||||
Provides: python-grpcio-health-checking-doc = %{version}-%{release}
|
|
||||||
Provides: python-grpcio-reflection-doc = %{version}-%{release}
|
|
||||||
Provides: python-grpcio-status-doc = %{version}-%{release}
|
|
||||||
Provides: python-grpcio-testing-doc = %{version}-%{release}
|
|
||||||
|
|
||||||
%description -n python-grpcio-doc
|
|
||||||
Documentation for Python language bindings for gRPC, including the following
|
|
||||||
packages:
|
|
||||||
|
|
||||||
• grpcio
|
|
||||||
• grpcio_channelz
|
|
||||||
• grpcio_health_checking
|
|
||||||
• grpcio_reflection
|
|
||||||
• grpcio_status
|
|
||||||
• grpcio_testing
|
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1
|
%autosetup -p1
|
||||||
%if %{without cmake}
|
%if %{without cmake}
|
||||||
@ -682,7 +687,11 @@ do
|
|||||||
done
|
done
|
||||||
|
|
||||||
# ~~ documentation ~~
|
# ~~ documentation ~~
|
||||||
|
# Doxygen (reference: C/core, C++, objc)
|
||||||
|
./tools/doxygen/run_doxygen.sh
|
||||||
|
# Sphinx (Python)
|
||||||
%{__python3} %{py_setup} %{?py_setup_args} doc
|
%{__python3} %{py_setup} %{?py_setup_args} doc
|
||||||
|
rm -vrf doc/build/.buildinfo doc/build/.doctrees
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -758,11 +767,9 @@ find '%{buildroot}' -type f -name 'roots.pem' |
|
|||||||
# ~~ documentation and examples ~~
|
# ~~ documentation and examples ~~
|
||||||
|
|
||||||
install -D -t '%{buildroot}%{_pkgdocdir}' -m 0644 -p AUTHORS *.md
|
install -D -t '%{buildroot}%{_pkgdocdir}' -m 0644 -p AUTHORS *.md
|
||||||
cp -rp doc examples '%{buildroot}%{_pkgdocdir}'
|
cp -rp doc/ref examples '%{buildroot}%{_pkgdocdir}'
|
||||||
|
install -d '%{buildroot}%{_pkgdocdir}/python'
|
||||||
%global pythondocdir %{_docdir}/python-grpcio
|
cp -rp doc/build '%{buildroot}%{_pkgdocdir}/python/html'
|
||||||
install -d '%{buildroot}%{pythondocdir}'
|
|
||||||
cp -rp doc/build '%{buildroot}%{pythondocdir}/html'
|
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -824,10 +831,6 @@ fi
|
|||||||
%files doc
|
%files doc
|
||||||
%license LICENSE NOTICE.txt
|
%license LICENSE NOTICE.txt
|
||||||
%{_pkgdocdir}
|
%{_pkgdocdir}
|
||||||
# Built Python documentation:
|
|
||||||
%exclude %{_pkgdocdir}/doc/build
|
|
||||||
# Python documentation sources:
|
|
||||||
%exclude %{_pkgdocdir}/doc/python/sphinx
|
|
||||||
|
|
||||||
|
|
||||||
%files cpp
|
%files cpp
|
||||||
@ -907,13 +910,6 @@ fi
|
|||||||
%{python3_sitelib}/grpcio_testing-%{version}-py%{python3_version}.egg-info
|
%{python3_sitelib}/grpcio_testing-%{version}-py%{python3_version}.egg-info
|
||||||
|
|
||||||
|
|
||||||
%files -n python-grpcio-doc
|
|
||||||
%license LICENSE NOTICE.txt
|
|
||||||
%{pythondocdir}
|
|
||||||
%exclude %{pythondocdir}/html/.buildinfo
|
|
||||||
%exclude %{pythondocdir}/html/.doctrees
|
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Sun Mar 21 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 1.26.0-13
|
* Sun Mar 21 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 1.26.0-13
|
||||||
- General:
|
- General:
|
||||||
@ -923,6 +919,7 @@ fi
|
|||||||
* Drop explicit pkgconfig BR
|
* Drop explicit pkgconfig BR
|
||||||
* Fix the directory in which CMake installs pkgconfig files
|
* Fix the directory in which CMake installs pkgconfig files
|
||||||
* Improved CMake options
|
* Improved CMake options
|
||||||
|
* Build the Doxygen reference manuals
|
||||||
- C (core) and C++ (cpp):
|
- C (core) and C++ (cpp):
|
||||||
* Let the -devel package require cmake-filesystem
|
* Let the -devel package require cmake-filesystem
|
||||||
* Allow building tests with our own copy of gtest/gmock, which will become
|
* Allow building tests with our own copy of gtest/gmock, which will become
|
||||||
@ -939,7 +936,8 @@ fi
|
|||||||
usable!
|
usable!
|
||||||
* Add %%py_provides for Fedora 32
|
* Add %%py_provides for Fedora 32
|
||||||
* Drop python3dist(setuptools) BR, redundant with %%pyproject_buildrequires
|
* Drop python3dist(setuptools) BR, redundant with %%pyproject_buildrequires
|
||||||
* Start running most of the tests in %%check
|
* Start running most of the Python tests in %%check
|
||||||
|
* Merge the python-grpcio-doc subpackage into grpc-doc
|
||||||
|
|
||||||
* Tue Feb 16 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 1.26.0-12
|
* Tue Feb 16 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 1.26.0-12
|
||||||
- C (core) and C++ (cpp):
|
- C (core) and C++ (cpp):
|
||||||
|
Loading…
Reference in New Issue
Block a user