15
0
forked from pool/python-Babel

Accepting request 314663 from home:aeneas_jaissle:branches:devel:languages:python

Split doc package to prevent build cycle; Sphinx requires Babel.

OBS-URL: https://build.opensuse.org/request/show/314663
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Babel?expand=0&rev=20
This commit is contained in:
Denisart Benjamin
2015-07-01 14:30:50 +00:00
committed by Git OBS Bridge
parent 24c7926344
commit e4683956e3
3 changed files with 60 additions and 4 deletions

View File

@@ -30,8 +30,6 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: fdupes
BuildRequires: python-devel
BuildRequires: python-setuptools
# Documentation requirements:
BuildRequires: python-Sphinx
# Test requirements:
BuildRequires: python-py >= 1.4.14
BuildRequires: python-pytest >= 2.3.5
@@ -59,7 +57,6 @@ sed -i "s/pybabel =/pybabel-%{py_ver} =/" setup.py
%build
python setup.py build
python setup.py build_sphinx && rm build/sphinx/html/.buildinfo
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
@@ -88,7 +85,7 @@ fi
%files
%defattr(-,root,root,-)
%doc LICENSE CHANGES README build/sphinx/html
%doc LICENSE CHANGES README
%ghost %{_sysconfdir}/alternatives/pybabel
%{_bindir}/pybabel
%{_bindir}/pybabel-%{py_ver}