Open chkumar246 opened 7 years ago
@yazug should man pages be included in %if with_doc or outside?
man page generation and inclusion if it goes into main package and not just the -doc sub-package should be preserved. If it's going into -doc sub-package then it should be guarded with the %if with_doc
python-osprofiler - https://review.rdoproject.org/r/7781 add with_doc guard for building docs
openstack-sahara https://review.rdoproject.org/r/7786 Add with_doc guards for building -doc sub-package
openstack-swift 😸 https://review.rdoproject.org/r/7789
python-oslo-concurrency - https://review.rdoproject.org/r/8087
Found this PR while rebuilding openstack packages without documentation.
Guys, what about possibility to disable doc generation by some global macro as it is already done in some other OpenStack packages?
This can be easily implemented by replacing hardcoded "%global with_doc 1" with a definition that take into account value of other macro ("_without_doc" is usually used for this:
%global with_doc %{!?_without_doc:1}%{?_without_doc:0}
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:
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:
Mentor: Jon Schlueter - IRC: jschlueter github: yazug Note: Pick one of the package and comment in the comment box with review link.