From 721b42bf0ab83cdfed745e4e1230ac8f6aa5fe8c29579bf0131bdaf09a17bba6 Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Fri, 11 Aug 2017 07:34:07 +0000 Subject: [PATCH] Accepting request 515014 from home:mnhauke:network:automation - Convert to singlespec OBS-URL: https://build.opensuse.org/request/show/515014 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-scp?expand=0&rev=3 --- python-scp.changes | 5 +++++ python-scp.spec | 25 +++++++++++++++---------- 2 files changed, 20 insertions(+), 10 deletions(-) diff --git a/python-scp.changes b/python-scp.changes index 10059a4..1618085 100644 --- a/python-scp.changes +++ b/python-scp.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Aug 6 18:01:13 UTC 2017 - mardnh@gmx.de + +- Convert to singlespec + ------------------------------------------------------------------- Mon Aug 15 09:21:22 UTC 2016 - mardnh@gmx.de diff --git a/python-scp.spec b/python-scp.spec index 2179868..cbc1b5f 100644 --- a/python-scp.spec +++ b/python-scp.spec @@ -1,8 +1,8 @@ # # spec file for package python-scp # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. -# Copyright (c) 2016, Martin Hauke +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017, Martin Hauke # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,6 +17,8 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without test Name: python-scp Version: 0.10.2 Release: 0 @@ -24,12 +26,16 @@ Summary: SSH scp module for paramiko License: LGPL-2.1+ Group: Development/Languages/Python Url: https://github.com/jbardin/scp.py -Source: https://pypi.python.org/packages/source/s/scp/scp-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-setuptools +Source: https://files.pythonhosted.org/packages/source/s/scp/scp-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros Requires: python-paramiko -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch +%if %{with test} +BuildRequires: %{python_module paramiko} +%endif +%python_subpackages %description The scp.py module uses a paramiko transport to send and receive files via the @@ -40,13 +46,12 @@ and has only been tested with this implementation. %setup -q -n scp-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install -%files -%defattr(-,root,root) +%files %{python_files} %doc LICENSE.txt README.rst %{python_sitelib}/*