- 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:
parent
75501e3698
commit
6d324acb0a
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 20 11:42:44 UTC 2012 - saschpe@suse.de
|
||||
|
||||
- Run testsuite
|
||||
- Build and install man-pages
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 15 05:29:16 UTC 2012 - saschpe@suse.de
|
||||
|
||||
|
@ -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
|
||||
|
@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 20 17:24:58 UTC 2012 - saschpe@suse.de
|
||||
|
||||
- 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
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 6 00:24:32 UTC 2012 - saschpe@suse.de
|
||||
|
||||
|
@ -31,6 +31,9 @@ BuildRequires: python3-Jinja2
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-distribute
|
||||
BuildRequires: python3-docutils
|
||||
# Testsuite build requirements:
|
||||
BuildRequires: python3-Pygments
|
||||
BuildRequires: python3-nose
|
||||
Requires: python3-Jinja2
|
||||
Requires: python3-Pygments
|
||||
Requires: python3-distribute
|
||||
@ -72,30 +75,37 @@ and translating suite, the Docutils.
|
||||
%setup -q -n Sphinx-%{version}
|
||||
%patch0
|
||||
sed -i '/#\!/d' sphinx/pycode/pgen2/token.py # Fix non-excutable-script warning
|
||||
sed -i "s|\(sphinx-.*\) =|python3-\1 =|" setup.py # Add Python version prefix to binaries
|
||||
sed -i "s|'\(sphinx-.*\)'|'python3-\1'|" doc/conf.py # Do the same for man-pages
|
||||
|
||||
%build
|
||||
2to3 . -w --nobackups
|
||||
python3 setup.py build
|
||||
sed -i 's/python/python3/g' doc/Makefile
|
||||
cd doc && make html && rm _build/html/.buildinfo
|
||||
python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo # Build HTML documentation
|
||||
python3 setup.py build_sphinx -b man # Build man-pages
|
||||
|
||||
%install
|
||||
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
for i in %{buildroot}%{_bindir}/*; do
|
||||
mv "$i" "${i}-python%{py3_ver}"
|
||||
done
|
||||
install -d %{buildroot}%{_mandir}/man1/
|
||||
install -m 644 build/sphinx/man/python3-sphinx-*.1 %{buildroot}%{_mandir}/man1/
|
||||
%fdupes %{buildroot}%{_prefix}
|
||||
%find_lang sphinx
|
||||
|
||||
#TODO: Fix
|
||||
#%%check
|
||||
#python3-nosetests
|
||||
|
||||
%files -f sphinx.lang
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS CHANGES LICENSE README TODO
|
||||
%{_bindir}/sphinx-*-python%{py3_ver}
|
||||
%{_bindir}/python3-sphinx-*
|
||||
%{_mandir}/man1/python3-sphinx-*
|
||||
%{python3_sitelib}/sphinx/
|
||||
%{python3_sitelib}/Sphinx-%{version}-py%{py3_ver}.egg-info
|
||||
|
||||
%files doc
|
||||
%defattr(-,root,root,-)
|
||||
%doc EXAMPLES doc/_build/html
|
||||
%doc EXAMPLES build/sphinx/html
|
||||
|
||||
%changelog
|
||||
|
Loading…
x
Reference in New Issue
Block a user