From ad5cc56a5610637b4fec5558cf82813919f58d4f2c685441b6c97e1b8f8a8d3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Sun, 15 Apr 2018 15:21:06 +0000 Subject: [PATCH] - Add missing dependencies - Use github tarball in order to allow tests and get license file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-transip?expand=0&rev=2 --- 0.3.0.tar.gz | 3 +++ python-transip.changes | 6 ++++++ python-transip.spec | 30 +++++++++++++++++++++--------- transip-0.3.0.tar.gz | 3 --- 4 files changed, 30 insertions(+), 12 deletions(-) create mode 100644 0.3.0.tar.gz delete mode 100644 transip-0.3.0.tar.gz diff --git a/0.3.0.tar.gz b/0.3.0.tar.gz new file mode 100644 index 0000000..ec4493a --- /dev/null +++ b/0.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5c61c7116684216047265300c09da1df52264567a5834bc194526ff3631a2050 +size 16081 diff --git a/python-transip.changes b/python-transip.changes index eca3748..c47749e 100644 --- a/python-transip.changes +++ b/python-transip.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Apr 15 15:15:47 UTC 2018 - tchvatal@suse.com + +- Add missing dependencies +- Use github tarball in order to allow tests and get license file + ------------------------------------------------------------------- Fri Sep 22 17:26:31 UTC 2017 - daniel.molkentin@suse.com diff --git a/python-transip.spec b/python-transip.spec index 0a521c5..323ac3c 100644 --- a/python-transip.spec +++ b/python-transip.spec @@ -1,7 +1,7 @@ # # spec file for package python-transip # -# 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 @@ -13,30 +13,37 @@ # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-transip Version: 0.3.0 Release: 0 -License: MIT Summary: TransIP API Connector -Url: https://github.com/benkonrath/transip-api +License: MIT Group: Development/Languages/Python -Source: https://files.pythonhosted.org/packages/source/t/transip/transip-%{version}.tar.gz -BuildRequires: python-rpm-macros -BuildRequires: %{python_module devel} +URL: https://github.com/benkonrath/transip-api +Source: https://github.com/benkonrath/transip-api/archive/%{version}.tar.gz +BuildRequires: %{python_module mock} +BuildRequires: %{python_module nose} +BuildRequires: %{python_module requests} +BuildRequires: %{python_module rsa} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module suds-jurko} BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-requests +Requires: python-rsa +Requires: python-suds-jurko BuildArch: noarch - %python_subpackages %description This library aims to implement the TransIP API in Python. %prep -%setup -q -n transip-%{version} +%setup -q -n transip-api-%{version} %build %python_build @@ -45,8 +52,13 @@ This library aims to implement the TransIP API in Python. %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%check +# testConstructor needs network connection +%python_expand nosetests-%{$python_bin_suffix} -e "testConstructor" + %files %{python_files} -%defattr(-,root,root,-) +%license LICENSE %{python_sitelib}/* %python3_only %{_bindir}/transip-api + %changelog diff --git a/transip-0.3.0.tar.gz b/transip-0.3.0.tar.gz deleted file mode 100644 index f318aee..0000000 --- a/transip-0.3.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d9929afe978c1780b9ed075e63b131791e70ccfa90bb067b256e6651bed29ae4 -size 8357