diff options
| author | Michel Salim <salimma@fedoraproject.org> | 2010-11-02 23:45:01 +0100 |
|---|---|---|
| committer | Michel Salim <salimma@fedoraproject.org> | 2010-11-02 23:45:01 +0100 |
| commit | 72577941d98141812b25639a98879cff1130477e (patch) | |
| tree | a697aea7c5ce97a27ea9a427f0d123543b1e128f /python/python-sphinx10.spec | |
| parent | 96486f5244ccb8cb63065d247814f330ecfc335c (diff) | |
| download | specs-72577941d98141812b25639a98879cff1130477e.tar.gz specs-72577941d98141812b25639a98879cff1130477e.tar.xz specs-72577941d98141812b25639a98879cff1130477e.zip | |
update python-sphinx10 for building on EL-5
Diffstat (limited to 'python/python-sphinx10.spec')
| -rw-r--r-- | python/python-sphinx10.spec | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/python/python-sphinx10.spec b/python/python-sphinx10.spec index ff41e58..f41533b 100644 --- a/python/python-sphinx10.spec +++ b/python/python-sphinx10.spec @@ -6,7 +6,7 @@ Name: python-sphinx10 Version: 1.0.4 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Python documentation generator Group: Development/Tools @@ -22,10 +22,18 @@ Source1: README.Fedora Patch0: Sphinx-1.0.4-localedirs.patch BuildArch: noarch +%if 0%{?el5} +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +%endif + BuildRequires: python2-devel >= 2.4 BuildRequires: python-setuptools BuildRequires: python-docutils BuildRequires: python-jinja2 +%if 0%{?el5} +# EL-5's easy_install checks for runtime dependencies at install time +BuildRequires: python-pygments +%endif BuildRequires: python-nose Requires: python-docutils Requires: python-jinja2 @@ -92,7 +100,9 @@ sed '1d' -i sphinx/pycode/pgen2/token.py %{__python} setup.py bdist_egg pushd doc make html +%if ! 0%{?el5} make man +%endif rm -rf _build/html/.buildinfo mv _build/html .. popd @@ -101,6 +111,11 @@ popd %install rm -rf %{buildroot} +%if 0%{?el5} +# older versions of easy_install can't recreate path +mkdir -p %{buildroot}%{python_sitelib} +%endif + easy_install -m --prefix %{buildroot}%{_usr} dist/*.egg # permission fix @@ -114,6 +129,7 @@ for b in sphinx-*; do done popd +%if ! 0%{?el5} pushd doc/_build/man # Deliver man pages install -d %{buildroot}%{_mandir}/man1 @@ -121,6 +137,7 @@ for manpage in sphinx-*.1; do mv $manpage %{buildroot}%{_mandir}/man1/`echo $manpage | sed -e "s|^sphinx-|sphinx-1.0-|g"` done popd +%endif # Deliver rst files rm -rf doc/_build @@ -151,6 +168,12 @@ popd >> sphinx-1.0.lang +%if 0%{?el5} +%clean +rm -rf %{buildroot} +%endif + + %check make test @@ -163,7 +186,9 @@ make test %dir %{_datadir}/sphinx-1.0/ %dir %{_datadir}/sphinx-1.0/locale %dir %{_datadir}/sphinx-1.0/locale/* +%if ! 0%{?el5} %{_mandir}/man1/* +%endif %files doc %defattr(-,root,root,-) @@ -171,6 +196,11 @@ make test %changelog +* Tue Nov 2 2010 Michel Salim <salimma@fedoraproject.org> - 1.0.4-3 +- EL-5: not generating manpages +- EL-5: re-add %%{buildroot} and %%clean +- EL-5: accomodate the older easy_install's peculiarities + * Tue Nov 2 2010 Michel Salim <salimma@fedoraproject.org> - 1.0.4-2 - Move locale files to system directories |
