From 93b3e5201ac17d3d9c945bc922568a53266b33c1 Mon Sep 17 00:00:00 2001 From: Bruno Cornec Date: Thu, 26 Mar 2015 16:14:56 +0100 Subject: [PATCH] - Adding a spec file for rpm build of the python module to ease test --- python-redfish.spec | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 python-redfish.spec diff --git a/python-redfish.spec b/python-redfish.spec new file mode 100644 index 0000000..fd8c4b0 --- /dev/null +++ b/python-redfish.spec @@ -0,0 +1,34 @@ +%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/python-redfish +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} + +%files +%dir %{python_sitelib}/redfish +%{python_sitelib}/redfish/* +%{python_sitelib}/python_redfish*