Hello community,
here is the log from the commit of package python-hp3parclient for
openSUSE:Factory checked in at 2018-04-24 15:33:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-hp3parclient (Old)
and /work/SRC/openSUSE:Factory/.python-hp3parclient.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-hp3parclient"
Tue Apr 24 15:33:04 2018 rev:9 rq:599938 version:3.3.2
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-hp3parclient/python-hp3parclient.changes
2018-02-15 13:25:47.335359989 +0100
+++
/work/SRC/openSUSE:Factory/.python-hp3parclient.new/python-hp3parclient.changes
2018-04-24 15:33:20.393765251 +0200
@@ -1,0 +2,6 @@
+Mon Apr 23 09:21:49 UTC 2018 - [email protected]
+
+- Convert to singlespec
+- Remove test folder shipped in sitelib
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-hp3parclient.spec ++++++
--- /var/tmp/diff_new_pack.TcndRS/_old 2018-04-24 15:33:21.449727047 +0200
+++ /var/tmp/diff_new_pack.TcndRS/_new 2018-04-24 15:33:21.457726757 +0200
@@ -16,29 +16,28 @@
#
+%{?!python_module:%define python_module() python-%{**}
%{!?skip_python3:python3-%{**}}}
Name: python-hp3parclient
Version: 3.3.2
Release: 0
Summary: HP 3PAR HTTP REST Client
License: Apache-2.0
Group: Development/Languages/Python
-Url: http://pypi.python.org/pypi/hp3parclient
+URL: http://pypi.python.org/pypi/hp3parclient
Source:
https://files.pythonhosted.org/packages/source/h/hp3parclient/hp3parclient-%{version}.tar.gz
-BuildRequires: python-devel
-BuildRequires: python-eventlet
-BuildRequires: python-paramiko
-BuildRequires: python-requests
-BuildRequires: python-setuptools
-#BuildRequires: python-nose
+BuildRequires: %{python_module devel}
+BuildRequires: %{python_module eventlet}
+BuildRequires: %{python_module paramiko}
+BuildRequires: %{python_module requests}
+BuildRequires: %{python_module setuptools}
+BuildRequires: fdupes
+BuildRequires: python-rpm-macros
+#BuildRequires: %{python_module nose}
Requires: python-eventlet
Requires: python-paramiko
Requires: python-requests
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
-%if 0%{?suse_version} && 0%{?suse_version} <= 1110
-%{!?python_sitelib: %global python_sitelib %(python -c "from
distutils.sysconfig import get_python_lib; print get_python_lib()")}
-%else
BuildArch: noarch
-%endif
+%python_subpackages
%description
This is a Client library that can talk to the HP 3PAR Storage array. The 3PAR
@@ -55,17 +54,19 @@
%setup -q -n hp3parclient-%{version}
%build
-python setup.py build
+%python_build
%install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
+# remove the tests from distribution
+%python_expand rm -rf %{buildroot}%{$python_sitelib}/test/
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
#NOTE(saschpe): Needs HP 3PAR storage?
#%%check
#nosetests
-%files
-%defattr(-,root,root,-)
+%files %{python_files}
%doc README.rst
%{python_sitelib}/*