- doc management in .spec
- Build documentation (pdf and singlehtml) - Install documentation (that should become a separate script to be called) - Adds files generated in the list of files managed by rpm
This commit is contained in:
parent
2bfff304ed
commit
8f6d519a62
@ -23,21 +23,39 @@ PBDESC
|
||||
|
||||
%build
|
||||
%{__python} setup.py build
|
||||
# Deal with doc
|
||||
cd doc
|
||||
make man
|
||||
make singlehtml
|
||||
make latexpdf
|
||||
|
||||
%install
|
||||
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
|
||||
# This will go in a separate script later on to share with other distros
|
||||
%{__mkdir} -p %{buildroot}/%{_bindir}
|
||||
install -m 755 redfish-client/redfish-client.py %{buildroot}/%{_bindir}/redfish-client
|
||||
rm -fr %{buildroot}/%{python_sitelib}/redfish/old
|
||||
|
||||
for i in 1; do
|
||||
mkdir -p %{buildroot}/%{_mandir}/man$i
|
||||
install -m 644 doc/build/man/*.$i %{buildroot}/%{_mandir}/man$i
|
||||
done
|
||||
install -d 755 %{buildroot}/%{_docdir}/%{name}/html/_static
|
||||
install -m 644 doc/build/singlehtml/*.html %{buildroot}/%{_docdir}/%{name}/html
|
||||
install -m 644 doc/build/singlehtml/_static/* %{buildroot}/%{_docdir}/%{name}/html/_static
|
||||
|
||||
%files
|
||||
%doc README.rst examples/[a-z]*.py LICENSE
|
||||
%doc doc/build/latex/*.pdf
|
||||
%dir %{python_sitelib}/redfish
|
||||
%dir %{_docdir}/%{name}/html
|
||||
%{_docdir}/%{name}/html/*.html
|
||||
%dir %{_docdir}/%{name}/html/_static
|
||||
%{_docdir}/%{name}/html/_static/*
|
||||
%{_bindir}/redfish-client
|
||||
%{python_sitelib}/redfish/*.py*
|
||||
%{python_sitelib}/redfish/tests/*.py*
|
||||
%{python_sitelib}/python_redfish*
|
||||
|
||||
%{_mandir}/man1/*
|
||||
%changelog
|
||||
PBLOG
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user