Accepting request 489399 from devel:languages:python
1 OBS-URL: https://build.opensuse.org/request/show/489399 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-paramiko?expand=0&rev=33
This commit is contained in:
commit
c35f5edf04
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 19 17:24:58 UTC 2017 - toddrme2178@gmail.com
|
||||
|
||||
- Implement single-spec version.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 17 20:25:35 UTC 2017 - rjschwei@suse.com
|
||||
|
||||
|
@ -16,6 +16,9 @@
|
||||
#
|
||||
|
||||
|
||||
%bcond_without test
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-paramiko
|
||||
Version: 2.1.2
|
||||
Release: 0
|
||||
@ -23,15 +26,18 @@ Url: http://www.paramiko.org/
|
||||
Summary: SSH2 protocol library
|
||||
License: LGPL-2.1+
|
||||
Group: Development/Languages/Python
|
||||
Source: https://pypi.io/packages/source/p/paramiko/paramiko-%{version}.tar.gz
|
||||
Source: https://files.pythonhosted.org/packages/source/p/paramiko/paramiko-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: python-cryptography >= 1.1
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-pyasn1 >= 0.1.7
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module cryptography >= 1.1}
|
||||
BuildRequires: %{python_module pyasn1 >= 0.1.7}
|
||||
Requires: python-cryptography >= 1.1
|
||||
Requires: python-pyasn1 >= 0.1.7
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
This is a library for making SSH2 connections (client or server).
|
||||
@ -43,20 +49,22 @@ are supported. SFTP client and server mode are both supported too.
|
||||
%setup -q -n paramiko-%{version}
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
# The --no-transport fixes a known issue with the tests
|
||||
# https://github.com/paramiko/paramiko/issues/574
|
||||
# Check if still failing on next release
|
||||
LANG=en_US.UTF-8 python test.py --no-transport
|
||||
export LANG=en_US.UTF-8
|
||||
%python_exec test.py
|
||||
%endif
|
||||
|
||||
%files
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root)
|
||||
%doc LICENSE README.rst demos
|
||||
%doc LICENSE README.rst
|
||||
%doc demos/
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
Loading…
x
Reference in New Issue
Block a user