14
0
forked from pool/python-Fabric

- (Build)require python-paramiko instead of python-ssh, upstream deps

changed
- Build and install HTML documentation

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Fabric?expand=0&rev=32
This commit is contained in:
Sascha Peilicke
2012-12-10 08:49:36 +00:00
committed by Git OBS Bridge
parent 0f0e94851a
commit decd69fc5d
2 changed files with 17 additions and 3 deletions

View File

@@ -26,10 +26,15 @@ Url: http://fabfile.org
Source: Fabric-%{version}.tar.bz2
BuildRequires: python-devel
BuildRequires: python-distribute
# Test requirements:
#TODO: Disabled due to errors / fudge requirement
#BuildRequires: python-fudge
#BuildRequires: python-ssh
#BuildRequires: python-nose
#BuildRequires: python-paramiko >= 1.9.0
# Documentation requirements:
BuildRequires: python-Sphinx
Requires: python-distribute
Requires: python-ssh
Requires: python-paramiko >= 1.9.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
@@ -75,9 +80,11 @@ Fabric itself leverages.)
%prep
%setup -q -n Fabric-%{version}
#sed -i "s|fudge<1.0|fudge|" setup.py # Try testing with newer fudge
%build
python setup.py build
sphinx-build -b html docs html && rm -r html/{.buildinfo,.doctrees}
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
@@ -87,7 +94,7 @@ python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%files
%defattr(-,root,root,-)
%doc AUTHORS LICENSE README.rst
%doc AUTHORS LICENSE README.rst html
%{_bindir}/fab
%{python_sitelib}/*