File python-pyhpeimc.spec of Package python-pyhpeimc

#
# spec file for package python-pyhpeimc
#
# Copyright (c) 2016, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           python-pyhpeimc
Version:        1.0.29
Release:        0
Summary:        Native Python Library for HPE IMC REST Interface
License:        Apache-2.0
Group:          Development/Languages/Python
Url:            https://github.com/HPENetworking/PYHPEIMC
Source:         https://pypi.io/packages/source/p/pyhpeimc/pyhpeimc-%{version}.tar.gz
BuildRequires:  python-devel
BuildRequires:  python-setuptools
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
Implementation of Python REST Client to work with the HPE IMC Network
Management Platform through it's robust RESTFUL API interface.

%prep
%setup -q -n pyhpeimc-%{version}

%build
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
# FIXME: wtf
rm -f %{buildroot}%{_bindir}/sample

%files
%defattr(-,root,root,-)
%doc LICENSE.txt README.rst
%{python_sitelib}/pyhpeimc
%{python_sitelib}/pyhpeimc-%{version}-py%{py_ver}.egg-info

%changelog
openSUSE Build Service is sponsored by