forked from pool/python-Sphinx
- Run testsuite
- Build and install man-pages - Build and install man-pages - Python3 binaries should have the prefix "python3-" + Matches Fedora's Python packaging policies + Uniform pattern, we currently have a wild mix OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Sphinx?expand=0&rev=20
This commit is contained in:
committed by
Git OBS Bridge
parent
75501e3698
commit
6d324acb0a
@@ -30,6 +30,9 @@ BuildRequires: python-Jinja2
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-distribute
|
||||
BuildRequires: python-docutils
|
||||
# Testsuite build requirements:
|
||||
BuildRequires: python-Pygments
|
||||
BuildRequires: python-nose
|
||||
Requires: python-Jinja2
|
||||
Requires: python-Pygments
|
||||
Requires: python-distribute
|
||||
@@ -78,20 +81,27 @@ sed -i '/#\!/d' sphinx/pycode/pgen2/token.py # Fix non-excutable-script warning
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
cd doc && make html && rm _build/html/.buildinfo
|
||||
python setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
||||
python setup.py build_sphinx -b man
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
install -d %{buildroot}%{_mandir}/man1/
|
||||
install -m 644 build/sphinx/man/sphinx-*.1 %{buildroot}%{_mandir}/man1/
|
||||
%find_lang sphinx
|
||||
|
||||
%check
|
||||
nosetests
|
||||
|
||||
%files -f sphinx.lang
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS CHANGES LICENSE README TODO
|
||||
%{_bindir}/sphinx-*
|
||||
%{_mandir}/man1/sphinx-*
|
||||
%{python_sitelib}/*
|
||||
|
||||
%files doc
|
||||
%defattr(-,root,root,-)
|
||||
%doc EXAMPLES doc/_build/html
|
||||
%doc EXAMPLES build/sphinx/html
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user