1. Introduce --without websupport
Sphinx (build)requires sphinxcontrib-websupport but that
(build)requires sphinx. This bcond can be used to bootstrap this.
2. Introduce --without tests
The tests bring a lot of additional dependencies that make
bootstrapping harder. This allows to build without tests.
3. Build the docs with self
The documentation was built with 'python', thus importing sphinx
from python2's sitelib. Sphinx was installed because of the above
mentioned buildrequirement of sphinxcontrib-websupport.
Now current sphinx from PWD is used, also python3 is used when
available, otherwise python2. Never just python.
Mark the test_latex_remote_images as expected failure
since it tries to fetch images from the web which is not possible
in koji or mock.
Added dependencies on python-typing,
python-sphinxcontrib-websupport, tex(ctablestack.sty)
and ImageMagick.
Select the default version in a different way since environment-modules
didn't understand the symlink
Ignore error messsages in the shell startup script as environment-modules
prints an error message if a module has already been loaded. The command
is doing the right thing for this case except that it's also printing an
error message.
number of packages (system daemons which also have a compatible command line
interface).
Use environment-modules to switch between the python2 and python3 packages
*but* be aware that no amount of manual switching can get this 100% right.
The code has to be fixed upstream, not in packaging.
sphinx imports code during, so sphinx-3 fails for python2-only projects.
Back out this change for now, so it can be revisited later and
dependent projects prepared.
... following https://fedoraproject.org/wiki/Packaging:Python#Naming.
No need to put the full path in symlinks. It is actually better
to include only the last part of the path, because that the path
is resolved the same within and from outside of a chroot.
Rearange %files a bit to work when python3 is disabled.
Fix one more requirement on the python3 subpackage.