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}/*