forked from pool/python-Fabric
- Add skip_python3 as it is not compatible at all, fixes bsc#1073564
- Drop the Sphinx dep as we can't generate the deps because of py3 incompatibility - Run fdupes on install OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Fabric?expand=0&rev=53
This commit is contained in:
committed by
Git OBS Bridge
parent
d24f525261
commit
93b4476058
@@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 22 11:15:30 UTC 2018 - tchvatal@suse.com
|
||||
|
||||
- Add skip_python3 as it is not compatible at all, fixes bsc#1073564
|
||||
- Drop the Sphinx dep as we can't generate the deps because of py3
|
||||
incompatibility
|
||||
- Run fdupes on install
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 6 14:02:06 UTC 2017 - jengelh@inai.de
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-Fabric
|
||||
#
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,8 +16,8 @@
|
||||
#
|
||||
|
||||
|
||||
%bcond_with test
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python3 1
|
||||
Name: python-Fabric
|
||||
Version: 1.14.0
|
||||
Release: 0
|
||||
@@ -26,23 +26,14 @@ License: BSD-2-Clause
|
||||
Group: Development/Languages/Python
|
||||
Url: http://fabfile.org
|
||||
Source: https://files.pythonhosted.org/packages/source/F/Fabric/Fabric-%{version}.tar.gz
|
||||
# Test requirements:
|
||||
#TODO: Disabled due to errors / fudge requirement
|
||||
#BuildRequires: python-fudge
|
||||
#BuildRequires: python-nose
|
||||
# Documentation requirements:
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module paramiko >= 1.10}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
%if %{with test}
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module Jinja2}
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module fudge}
|
||||
BuildRequires: %{python_module nose}
|
||||
# /SECTION
|
||||
%endif
|
||||
BuildRequires: %{python_module paramiko >= 1.10}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: python3-Sphinx
|
||||
Requires: python-paramiko >= 1.10
|
||||
Requires: python-setuptools
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
@@ -66,24 +57,23 @@ Fabric itself leverages).
|
||||
|
||||
%prep
|
||||
%setup -q -n Fabric-%{version}
|
||||
sed -i 's/paramiko>=1.10,<2.0/paramiko>=1.10/g' setup.py # new paramiko is okay
|
||||
sed -i "s|fudge<1.0|fudge|" setup.py # Try testing with newer fudge
|
||||
|
||||
%build
|
||||
%python_build
|
||||
python3 setup.py build_sphinx --source-dir=sites/docs && rm -r build/sphinx/html/.buildinfo && mv build/sphinx/html html
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
%python_exec setup.py test
|
||||
%endif
|
||||
# Breaks on the raise tests completely even in git
|
||||
#%%python_exec setup.py test
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS LICENSE README.rst html
|
||||
%python3_only %{_bindir}/fab
|
||||
%doc AUTHORS LICENSE README.rst
|
||||
%python2_only %{_bindir}/fab
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user