2018-05-30 16:17:22 -07:00
|
|
|
%define name python-lefthandclient
|
|
|
|
%define version 2.1.0
|
|
|
|
%define release 1
|
|
|
|
|
|
|
|
Summary: HPE LeftHand/StoreVirtual HTTP REST Client
|
|
|
|
Name: %{name}
|
|
|
|
Version: %{version}
|
|
|
|
Release: 0%{?_tis_dist}.%{tis_patch_ver}
|
|
|
|
Source0: %{name}-%{version}.tar.gz
|
|
|
|
License: Apache License, Version 2.0
|
|
|
|
Group: Development/Libraries
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
|
|
|
|
Prefix: %{_prefix}
|
|
|
|
BuildArch: noarch
|
|
|
|
Vendor: Kurt Martin <kurt.f.martin@hpe.com>
|
|
|
|
Url: http://packages.python.org/python-lefthandclient
|
|
|
|
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
BuildRequires: python-setuptools
|
2018-10-22 16:48:38 -04:00
|
|
|
BuildRequires: python2-pip
|
|
|
|
BuildRequires: python2-wheel
|
2018-05-30 16:17:22 -07:00
|
|
|
|
|
|
|
%description
|
|
|
|
HPE LeftHand/StoreVirtual HTTP REST Client
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
%{__python2} setup.py build
|
2018-10-22 16:48:38 -04:00
|
|
|
%py2_build_wheel
|
2018-05-30 16:17:22 -07:00
|
|
|
|
|
|
|
%install
|
|
|
|
%{__python2} setup.py install -O1 --skip-build --root %{buildroot} --record=INSTALLED_FILES
|
2018-10-22 16:48:38 -04:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/wheels
|
|
|
|
install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/
|
2018-05-30 16:17:22 -07:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%files -f INSTALLED_FILES
|
|
|
|
%defattr(-,root,root)
|
2018-10-22 16:48:38 -04:00
|
|
|
|
|
|
|
%package wheels
|
|
|
|
Summary: %{name} wheels
|
|
|
|
|
|
|
|
%description wheels
|
|
|
|
Contains python wheels for %{name}
|
|
|
|
|
|
|
|
%files wheels
|
|
|
|
/wheels/*
|