Accepting request 143338 from devel:languages:python
Automatic submission by obs-autosubmit OBS-URL: https://build.opensuse.org/request/show/143338 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Sphinx?expand=0&rev=15
This commit is contained in:
commit
2c5c6828b5
@ -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,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 20 17:24:58 UTC 2012 - saschpe@suse.de
|
||||
|
||||
- Build and install man-pages
|
||||
- Name Python3 binaries consistently:
|
||||
+ Fix in setup.py to have correct egg-info data
|
||||
|
||||
-------------------------------------------------------------------
|
||||
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,36 @@ 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-.*\) =|\1-%{py3_ver} =|" setup.py # Add Python version suffix to binaries
|
||||
sed -i "s|'\(sphinx-[a-z]*\)'|'\1-%{py3_ver}'|" 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/*.1 %{buildroot}%{_mandir}/man1/
|
||||
%fdupes %{buildroot}%{_prefix}
|
||||
%find_lang sphinx
|
||||
|
||||
#TODO: Fix
|
||||
#%%check
|
||||
#nosetests-%{py3_ver}
|
||||
|
||||
%files -f sphinx.lang
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS CHANGES LICENSE README TODO
|
||||
%{_bindir}/sphinx-*-python%{py3_ver}
|
||||
%{_bindir}/sphinx-*-%{py3_ver}
|
||||
%{_mandir}/man1/sphinx-*-%{py3_ver}.1.gz
|
||||
%{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