mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Until now, only the documentation in source form was packaged. This changeset improves the RPM generator so that the compiled HTML version of the documentation is packaged. Also, other informative documents (README, LICENSE, NOTICE, THANKS) and an example server configuration file have been included. Finally, the Sphinx documentation's conf.py has been improved so that it is easier to compile the docs using the default theme.
17 lines
661 B
Plaintext
17 lines
661 B
Plaintext
%{__python} setup.py install --skip-build --root=$RPM_BUILD_ROOT
|
|
|
|
# Build the HTML documentation using the default theme.
|
|
%{__python} setup.py build_sphinx
|
|
|
|
%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
|
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
|
%endif
|
|
|
|
INSTALLED_FILES="\
|
|
%{python_sitelib}/*
|
|
%{_bindir}/*
|
|
%doc LICENSE NOTICE README.rst THANKS build/sphinx/html examples/example_config.py
|
|
"
|
|
echo "$INSTALLED_FILES" > INSTALLED_FILES
|