-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
All the RDO packages contains -doc subpackage which contains docs for the specific
projects. Sometime while building doc subpackage, we might need to add more dependencies
or remove some javascript/css files in order to avoid dependency and if any of the dependency
is not packaged, the rpm package building will break in order to avoid that it would be good
to introduce with_doc conditional for -doc subpackage. So that we can enable or disable doc
building step.
What to improve:
- Clone openstack-swift spec file git clone https://github.com/rdo-packages/swift-distgit
- Go to swift-distgit and open openstack-swift.spec in editor.
- Define %global with_doc 1 at the top of spec file.
- Go to -doc subpackage,
- Above that add %if 0%{?with_doc}, it will start the doc_guard
- Go to %description of -doc subpackage and add %endif to end the doc_guard.
- Add the same doc_guard condition defined in step 5 just above %{__python2} setup.py build_sphinx
and end the doc_guard at rm -rf doc/build/html/.{doctrees,buildinfo} as stated in step 6. - Perform the step 7 for adding doc_guard for %files docs section.
- Once done! Make changes, add and commit it and send a Gerrit Review.
For example: you can check the spec file of python-os-traits or python-osprofiler
Below is the list of packages which need same fixes:
- openstack-sahara review
- openstack-ceilometer
- openstack-swift review
- openstack-neutron
- openstack-zaqar
- python-oslo-cache
- python-oslo-concurrency
- python-oslo-config
- python-oslo-context
- python-oslo-db
- python-oslo-i18n
- python-oslo-log
- python-oslo-messaging
- python-oslo-middleware
- python-oslo-policy
- python-oslo-privsep
- python-oslo-reports
- python-oslo-rootwrap
- python-oslo-serialization
- python-oslo-service
- python-oslo-sphinx
- python-oslotest
- python-oslo-utils
- python-oslo-versionedobjects
- python-oslo-vmware
- python-osprofiler review
Mentor: Jon Schlueter - IRC: jschlueter github: yazug
Note: Pick one of the package and comment in the comment box with review link.
Metadata
Metadata
Assignees
Labels
No labels