python-redfish/python-redfish.spec
Bruno Cornec f844afc49b First working 0.1 version
- Uses tortilla lib to wrap the REST API (dep)
- Uses python requests to manage login/logout (dep)
- Provides 2 functional working examples with Redfish simulator and
  ProLiant server or Moonshot Server
- Remove OpenStack deps as this code has to be usable outside of
  OpenStack
- Provides a configuration file to handle credentials and connection
  URL
- Provides a mapping class to handle multiple versions of Redfish
  (in this version, 0.95.0 for ProLiant and 1.0.0 for mockup)
- Provides a first action reset_server to ... reset system
  The action is commented into simple-proliant.py to not do
  unexpected reset.
- Provides a first retrieving function get_bios_version to get the
  BIOS version of a system.
- Add basic logging capability
- Clean up to meet pep8 and doc strings (in progress).
2015-12-02 20:33:03 +01:00

38 lines
868 B
RPMSpec

%global srcname redfish
Name: python-%{srcname}
Version: 0.1
Release: %mkrel 1
Summary: Redfish python library
Group: Development/Python
License: Apache v2.0
URL: https://github.com/devananda/%{name}
Source0: %name-%version.tar.gz
BuildArch: noarch
BuildRequires: python-devel
BuildRequires: python-setuptools
%description
The Redfish API supports dialoging with a Redfish compliant
system such as defined by http://www.redfishcertification.org
%prep
%setup -q -n %{name}
#-%{version}
%build
%{__python} setup.py build
%install
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
# TODO: Add examples
%files
%doc README.rst examples/*.py
%dir %{python_sitelib}/redfish
%{python_sitelib}/redfish/*.py*
%{python_sitelib}/redfish/tests/*.py*
%{python_sitelib}/python_redfish*