Project-Builder support for python-redfish
- Adds python-redfish.spec for pb from previous version - first rpm made using project-builder.org - Adds a changelog file for pb - Now delivers redfish-client under /usr/bin - Fix dependencies needed to invoke redfish-client - Versions can now be used through pb instead of being hardcoded - Prepare deb package build
This commit is contained in:

committed by
Bruno Cornec

parent
df2c027823
commit
eabe105d2f
6
.gitignore
vendored
6
.gitignore
vendored
@@ -27,7 +27,7 @@ var/
|
|||||||
# Usually these files are written by a python script from a template
|
# Usually these files are written by a python script from a template
|
||||||
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
||||||
*.manifest
|
*.manifest
|
||||||
*.spec
|
#*.spec
|
||||||
|
|
||||||
# Installer logs
|
# Installer logs
|
||||||
pip-log.txt
|
pip-log.txt
|
||||||
@@ -55,6 +55,10 @@ docs/_build/
|
|||||||
# PyBuilder
|
# PyBuilder
|
||||||
target/
|
target/
|
||||||
|
|
||||||
|
# Project-Builder.org
|
||||||
|
delivery/
|
||||||
|
build/
|
||||||
|
|
||||||
# Pydev
|
# Pydev
|
||||||
.project
|
.project
|
||||||
.pydevproject
|
.pydevproject
|
||||||
|
68
pbconf/pbfilter/all.pbf
Normal file
68
pbconf/pbfilter/all.pbf
Normal file
@@ -0,0 +1,68 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
# Filter for all files
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# PBREPO is replaced by the root URL to access the repository
|
||||||
|
filter PBREPO = $pb->{'repo'}
|
||||||
|
|
||||||
|
# PBSRC is replaced by the source package location after the repo
|
||||||
|
filter PBSRC = src/%{name}-%{version}.tar.gz
|
||||||
|
# Used if virtual name != real name (perl, ...)
|
||||||
|
#filter PBSRC = src/%{srcname}-%{version}.tar.gz
|
||||||
|
|
||||||
|
# PBVER is replaced by the version ($pb->{'ver'} in code)
|
||||||
|
filter PBVER = $pb->{'ver'}$pb->{'extdir'}
|
||||||
|
|
||||||
|
# PBDATE is replaced by the date ($pb->{'date'} in code)
|
||||||
|
filter PBDATE = $pb->{'date'}
|
||||||
|
|
||||||
|
# PBEXTDIR is replaced by the testdir extension if needed ($pb->{'extdir'} in code)
|
||||||
|
filter PBEXTDIR = $pb->{'extdir'}
|
||||||
|
|
||||||
|
# PBPATCHSRC is replaced by the patches names if value is yes. Patches are located under the pbpatch dir of the pkg.
|
||||||
|
#filter PBPATCHSRC = yes
|
||||||
|
|
||||||
|
# PBPATCHCMD is replaced by the patches commands if value is yes
|
||||||
|
#filter PBPATCHCMD = yes
|
||||||
|
|
||||||
|
# PBMULTISRC is replaced by the sources names if value is yes. Sources are located under the pbsrc dir of the pkg.
|
||||||
|
#filter PBMULTISRC = yes
|
||||||
|
|
||||||
|
# PBTAG is replaced by the tag ($pb->{'tag'} in code)
|
||||||
|
filter PBTAG = $pb->{'tag'}
|
||||||
|
|
||||||
|
# PBREV is replaced by the revision ($pb->{'rev'} in code)
|
||||||
|
filter PBREV = $pb->{'rev'}
|
||||||
|
|
||||||
|
# PBREALPKG is replaced by the package name ($pb->{'realpkg'} in code)
|
||||||
|
filter PBREALPKG = $pb->{'realpkg'}
|
||||||
|
|
||||||
|
# PBPKG is replaced by the package name ($pb->{'pkg'} in code)
|
||||||
|
filter PBPKG = $pb->{'pkg'}
|
||||||
|
|
||||||
|
# PBPROJ is replaced by the project name ($pb->{'proj'} in code)
|
||||||
|
filter PBPROJ = $pb->{'proj'}
|
||||||
|
|
||||||
|
# PBPACKAGER is replaced by the packager name ($pb->{'packager'} in code)
|
||||||
|
filter PBPACKAGER = $pb->{'packager'}
|
||||||
|
|
||||||
|
# PBDESC contains the description of the package
|
||||||
|
filter PBDESC = The Redfish API supports dialoging with a Redfish compliant$/system such as defined by http://www.redfishcertification.org
|
||||||
|
# with a trailing , the variable can be multi-line.
|
||||||
|
# only the trailing 's will be removed, the leading spaces,
|
||||||
|
# trailing spaces, and newlines will remain except on the
|
||||||
|
# last line. You can use dollar slash as a way to introduce carriage
|
||||||
|
# return (perl syntax).
|
||||||
|
# You can use transform e.g. in rpm.pbf to adjust spaces
|
||||||
|
|
||||||
|
# PBSUMMARY contains a short single line description of the package
|
||||||
|
filter PBSUMMARY = Redfish python library
|
||||||
|
|
||||||
|
# PBURL contains the URL of the Web site of the project
|
||||||
|
filter PBURL = http://github.com/bcornec/python-redfish
|
||||||
|
|
||||||
|
# PBLOG is replaced by the changelog if value is yes
|
||||||
|
# and should be last as when used we need the %pb hash filled
|
||||||
|
filter PBLOG = yes
|
23
pbconf/pbfilter/deb.pbf
Normal file
23
pbconf/pbfilter/deb.pbf
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
# Filter for debian build
|
||||||
|
#
|
||||||
|
# PBGRP is replaced by the group of apps
|
||||||
|
filter PBGRP = utils
|
||||||
|
|
||||||
|
# PBLIC is replaced by the license of the application
|
||||||
|
# Cf: http://www.debian.org/legal/licenses/
|
||||||
|
filter PBLIC = ASL 2.0
|
||||||
|
|
||||||
|
# PBDEP is replaced by the list of dependencies
|
||||||
|
filter PBDEP = python-docopt, python-tortilla
|
||||||
|
|
||||||
|
# PBBDEP is replaced by the list of build dependencies
|
||||||
|
filter PBBDEP = python-devel, python-setuptools
|
||||||
|
|
||||||
|
# PBSUG is replaced by the list of suggestions
|
||||||
|
#filter PBSUG =
|
||||||
|
|
||||||
|
# PBREC is replaced by the list of recommandations
|
||||||
|
#filter PBREC =
|
11
pbconf/pbfilter/debian-3.1.pbf
Normal file
11
pbconf/pbfilter/debian-3.1.pbf
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
# Filter for debian build
|
||||||
|
#
|
||||||
|
# PBDEBSTD is replaced by the Debian standard version
|
||||||
|
filter PBDEBSTD = 3.6.1
|
||||||
|
|
||||||
|
# PBDEBCOMP is replaced by the Debian Compatibility value
|
||||||
|
filter PBDEBCOMP = 4
|
||||||
|
|
11
pbconf/pbfilter/debian-4.0.pbf
Normal file
11
pbconf/pbfilter/debian-4.0.pbf
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
# Filter for debian build
|
||||||
|
#
|
||||||
|
# PBDEBSTD is replaced by the Debian standard version
|
||||||
|
filter PBDEBSTD = 3.6.1
|
||||||
|
|
||||||
|
# PBDEBCOMP is replaced by the Debian Compatibility value
|
||||||
|
filter PBDEBCOMP = 5
|
||||||
|
|
11
pbconf/pbfilter/debian-5.0.pbf
Normal file
11
pbconf/pbfilter/debian-5.0.pbf
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
# Filter for debian build
|
||||||
|
#
|
||||||
|
# PBDEBSTD is replaced by the Debian standard version
|
||||||
|
filter PBDEBSTD = 3.8.0
|
||||||
|
|
||||||
|
# PBDEBCOMP is replaced by the Debian Compatibility value
|
||||||
|
filter PBDEBCOMP = 7
|
||||||
|
|
11
pbconf/pbfilter/debian-6.0.pbf
Normal file
11
pbconf/pbfilter/debian-6.0.pbf
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
# Filter for debian build
|
||||||
|
#
|
||||||
|
# PBDEBSTD is replaced by the Debian standard version
|
||||||
|
filter PBDEBSTD = 3.8.0
|
||||||
|
|
||||||
|
# PBDEBCOMP is replaced by the Debian Compatibility value
|
||||||
|
filter PBDEBCOMP = 7
|
||||||
|
|
11
pbconf/pbfilter/debian-7.0.pbf
Normal file
11
pbconf/pbfilter/debian-7.0.pbf
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
# Filter for debian build
|
||||||
|
#
|
||||||
|
# PBDEBSTD is replaced by the Debian standard version
|
||||||
|
filter PBDEBSTD = 3.9.4
|
||||||
|
|
||||||
|
# PBDEBCOMP is replaced by the Debian Compatibility value
|
||||||
|
filter PBDEBCOMP = 9
|
||||||
|
|
11
pbconf/pbfilter/debian.pbf
Normal file
11
pbconf/pbfilter/debian.pbf
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
# Filter for debian build
|
||||||
|
#
|
||||||
|
# PBDEBSTD is replaced by the Debian standard version
|
||||||
|
filter PBDEBSTD = 3.8.0
|
||||||
|
|
||||||
|
# PBDEBCOMP is replaced by the Debian Compatibility value
|
||||||
|
filter PBDEBCOMP = 7
|
||||||
|
|
9
pbconf/pbfilter/fedora-1.pbf
Normal file
9
pbconf/pbfilter/fedora-1.pbf
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
# Filter for old fedora build
|
||||||
|
#
|
||||||
|
|
||||||
|
# PBSUF is replaced by the package suffix ($pb->{'suf'} in code)
|
||||||
|
filter PBSUF = $pb->{'suf'}
|
||||||
|
|
9
pbconf/pbfilter/fedora-2.pbf
Normal file
9
pbconf/pbfilter/fedora-2.pbf
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
# Filter for old fedora build
|
||||||
|
#
|
||||||
|
|
||||||
|
# PBSUF is replaced by the package suffix ($pb->{'suf'} in code)
|
||||||
|
filter PBSUF = $pb->{'suf'}
|
||||||
|
|
9
pbconf/pbfilter/fedora-3.pbf
Normal file
9
pbconf/pbfilter/fedora-3.pbf
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
# Filter for old fedora build
|
||||||
|
#
|
||||||
|
|
||||||
|
# PBSUF is replaced by the package suffix ($pb->{'suf'} in code)
|
||||||
|
filter PBSUF = $pb->{'suf'}
|
||||||
|
|
9
pbconf/pbfilter/fedora-4.pbf
Normal file
9
pbconf/pbfilter/fedora-4.pbf
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
# Filter for old fedora build
|
||||||
|
#
|
||||||
|
|
||||||
|
# PBSUF is replaced by the package suffix ($pb->{'suf'} in code)
|
||||||
|
filter PBSUF = $pb->{'suf'}
|
||||||
|
|
9
pbconf/pbfilter/fedora-5.pbf
Normal file
9
pbconf/pbfilter/fedora-5.pbf
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
# Filter for old fedora build
|
||||||
|
#
|
||||||
|
|
||||||
|
# PBSUF is replaced by the package suffix ($pb->{'suf'} in code)
|
||||||
|
filter PBSUF = $pb->{'suf'}
|
||||||
|
|
9
pbconf/pbfilter/fedora-6.pbf
Normal file
9
pbconf/pbfilter/fedora-6.pbf
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
# Filter for old fedora build
|
||||||
|
#
|
||||||
|
|
||||||
|
# PBSUF is replaced by the package suffix ($pb->{'suf'} in code)
|
||||||
|
filter PBSUF = $pb->{'suf'}
|
||||||
|
|
9
pbconf/pbfilter/fedora-7.pbf
Normal file
9
pbconf/pbfilter/fedora-7.pbf
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
# Filter for old fedora build
|
||||||
|
#
|
||||||
|
|
||||||
|
# PBSUF is replaced by the package suffix ($pb->{'suf'} in code)
|
||||||
|
filter PBSUF = $pb->{'suf'}
|
||||||
|
|
26
pbconf/pbfilter/fedora.pbf
Normal file
26
pbconf/pbfilter/fedora.pbf
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
# Filter for rpm build
|
||||||
|
#
|
||||||
|
|
||||||
|
# PBGRP is replaced by the RPM group of apps
|
||||||
|
# Cf: http://fedoraproject.org/wiki/RPMGroups
|
||||||
|
#filter PBGRP = Applications/Archiving
|
||||||
|
|
||||||
|
# PBLIC is replaced by the license of the application
|
||||||
|
# Cf: http://fedoraproject.org/wiki/Licensing
|
||||||
|
#filter PBLIC = GPLv2+
|
||||||
|
|
||||||
|
# PBDEP is replaced by the list of dependencies
|
||||||
|
#filter PBDEP =
|
||||||
|
|
||||||
|
# PBBDEP is replaced by the list of build dependencies
|
||||||
|
#filter PBBDEP =
|
||||||
|
|
||||||
|
# PBSUF is replaced by the package suffix ($pb->{'suf'} in code)
|
||||||
|
filter PBSUF = %{dist}
|
||||||
|
|
||||||
|
# PBOBS is replaced by the Obsolete line
|
||||||
|
#filter PBOBS =
|
||||||
|
|
8
pbconf/pbfilter/md.pbf
Normal file
8
pbconf/pbfilter/md.pbf
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# Specific group for Mandriva for python-redfish
|
||||||
|
# Cf: http://wiki.mandriva.com/en/Development/Packaging/Groups
|
||||||
|
filter PBGRP = Development/Python
|
||||||
|
|
||||||
|
# PBLIC is replaced by the license of the application
|
||||||
|
# Cf: http://wiki.mandriva.com/en/Development/Packaging/Licenses
|
||||||
|
#filter PBLIC = GPL
|
||||||
|
|
8
pbconf/pbfilter/novell.pbf
Normal file
8
pbconf/pbfilter/novell.pbf
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# Specific group for SuSE for python-redfish
|
||||||
|
# Cf: http://en.opensuse.org/SUSE_Package_Conventions/RPM_Groups
|
||||||
|
#filter PBGRP = Productivity/Archiving/Backup
|
||||||
|
|
||||||
|
# PBLIC is replaced by the license of the application
|
||||||
|
# Cf: http://en.opensuse.org/Packaging/SUSE_Package_Conventions/RPM_Style#1.6._License_Tag
|
||||||
|
#filter PBLIC = GPL
|
||||||
|
|
8
pbconf/pbfilter/pkg.pbf
Normal file
8
pbconf/pbfilter/pkg.pbf
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
# Filter for pkg build
|
||||||
|
#
|
||||||
|
# Solaris package name (VENDOR : 4 letters in uppercase, SOFT : 8 letters in lowercase)
|
||||||
|
filter PBSOLPKG = SUNWsoftware
|
||||||
|
|
30
pbconf/pbfilter/rpm.pbf
Normal file
30
pbconf/pbfilter/rpm.pbf
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
# Filter for rpm build
|
||||||
|
#
|
||||||
|
|
||||||
|
# PBGRP is replaced by the RPM group of apps
|
||||||
|
filter PBGRP = Applications/System
|
||||||
|
|
||||||
|
# PBLIC is replaced by the license of the application
|
||||||
|
filter PBLIC = ASL 2.0
|
||||||
|
|
||||||
|
# PBDEP is replaced by the list of dependencies
|
||||||
|
#filter PBDEP =
|
||||||
|
|
||||||
|
# PBBDEP is replaced by the list of build dependencies
|
||||||
|
filter PBBDEP = python-devel, python-setuptools
|
||||||
|
filter PBDEP = python-docopt, python-tortilla
|
||||||
|
|
||||||
|
# PBSUF is replaced by the package suffix ($pb->{'suf'} in code)
|
||||||
|
filter PBSUF = $pb->{'suf'}
|
||||||
|
|
||||||
|
# PBOBS is replaced by the Obsolete line
|
||||||
|
#filter PBOBS =
|
||||||
|
|
||||||
|
# transform a variable from the key on the right to the key on the left using the perl expression
|
||||||
|
# after the input key name. Useful for taking multi-line documentation and removing trailing spaces
|
||||||
|
# or leading spaces.
|
||||||
|
#transform PBDESC = PBDESC_raw s/\s+\n/\n/go;
|
||||||
|
|
11
pbconf/pbfilter/ubuntu-6.06.pbf
Normal file
11
pbconf/pbfilter/ubuntu-6.06.pbf
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
# Filter for ubuntu build
|
||||||
|
#
|
||||||
|
# PBDEBSTD is replaced by the Debian standard version
|
||||||
|
filter PBDEBSTD = 3.6.2
|
||||||
|
|
||||||
|
# PBDEBCOMP is replaced by the Debian Compatibility value
|
||||||
|
filter PBDEBCOMP = 4
|
||||||
|
|
11
pbconf/pbfilter/ubuntu-7.04.pbf
Normal file
11
pbconf/pbfilter/ubuntu-7.04.pbf
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
# Filter for ubuntu build
|
||||||
|
#
|
||||||
|
# PBDEBSTD is replaced by the Debian standard version
|
||||||
|
filter PBDEBSTD = 3.6.2
|
||||||
|
|
||||||
|
# PBDEBCOMP is replaced by the Debian Compatibility value
|
||||||
|
filter PBDEBCOMP = 4
|
||||||
|
|
11
pbconf/pbfilter/ubuntu-7.10.pbf
Normal file
11
pbconf/pbfilter/ubuntu-7.10.pbf
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
# Filter for ubuntu build
|
||||||
|
#
|
||||||
|
# PBDEBSTD is replaced by the Debian standard version
|
||||||
|
filter PBDEBSTD = 3.6.2
|
||||||
|
|
||||||
|
# PBDEBCOMP is replaced by the Debian Compatibility value
|
||||||
|
filter PBDEBCOMP = 4
|
||||||
|
|
11
pbconf/pbfilter/ubuntu-8.04.pbf
Normal file
11
pbconf/pbfilter/ubuntu-8.04.pbf
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
# Filter for ubuntu build
|
||||||
|
#
|
||||||
|
# PBDEBSTD is replaced by the Debian standard version
|
||||||
|
filter PBDEBSTD = 3.7.3
|
||||||
|
|
||||||
|
# PBDEBCOMP is replaced by the Debian Compatibility value
|
||||||
|
filter PBDEBCOMP = 4
|
||||||
|
|
11
pbconf/pbfilter/ubuntu-8.10.pbf
Normal file
11
pbconf/pbfilter/ubuntu-8.10.pbf
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
# Filter for ubuntu build
|
||||||
|
#
|
||||||
|
# PBDEBSTD is replaced by the Debian standard version
|
||||||
|
filter PBDEBSTD = 3.7.3
|
||||||
|
|
||||||
|
# PBDEBCOMP is replaced by the Debian Compatibility value
|
||||||
|
filter PBDEBCOMP = 4
|
||||||
|
|
11
pbconf/pbfilter/ubuntu-9.04.pbf
Normal file
11
pbconf/pbfilter/ubuntu-9.04.pbf
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
# Filter for ubuntu build
|
||||||
|
#
|
||||||
|
# PBDEBSTD is replaced by the Debian standard version
|
||||||
|
filter PBDEBSTD = 3.8.0
|
||||||
|
|
||||||
|
# PBDEBCOMP is replaced by the Debian Compatibility value
|
||||||
|
filter PBDEBCOMP = 4
|
||||||
|
|
11
pbconf/pbfilter/ubuntu.pbf
Normal file
11
pbconf/pbfilter/ubuntu.pbf
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
# Filter for ubuntu build
|
||||||
|
#
|
||||||
|
# PBDEBSTD is replaced by the Debian standard version
|
||||||
|
filter PBDEBSTD = 3.8.3
|
||||||
|
|
||||||
|
# PBDEBCOMP is replaced by the Debian Compatibility value
|
||||||
|
filter PBDEBCOMP = 7
|
||||||
|
|
138
pbconf/python-redfish.pb
Normal file
138
pbconf/python-redfish.pb
Normal file
@@ -0,0 +1,138 @@
|
|||||||
|
#
|
||||||
|
# Project Builder configuration file
|
||||||
|
# For project python-redfish
|
||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# What is the project URL
|
||||||
|
#
|
||||||
|
#pburl python-redfish = svn://svn.python-redfish.org/python-redfish/devel
|
||||||
|
#pburl python-redfish = svn://svn+ssh.python-redfish.org/python-redfish/devel
|
||||||
|
#pburl python-redfish = cvs://cvs.python-redfish.org/python-redfish/devel
|
||||||
|
#pburl python-redfish = http://www.python-redfish.org/src/python-redfish-devel.tar.gz
|
||||||
|
#pburl python-redfish = ftp://ftp.python-redfish.org/src/python-redfish-devel.tar.gz
|
||||||
|
#pburl python-redfish = file:///src/python-redfish-devel.tar.gz
|
||||||
|
#pburl python-redfish = dir:///src/python-redfish-devel
|
||||||
|
pburl python-redfish = git+ssh://git@github.com/bcornec/python-redfish.git
|
||||||
|
|
||||||
|
# Repository
|
||||||
|
pbrepo python-redfish = ftp://ftp.mondorescue.org
|
||||||
|
pbml python-redfish = python-redfish@mondorescue.org
|
||||||
|
#pbsmtp python-redfish = localhost
|
||||||
|
# For distro supporting it, which area is used
|
||||||
|
#projcomponent python-redfish = main
|
||||||
|
|
||||||
|
# Check whether project is well formed
|
||||||
|
# when downloading from ftp/http/...
|
||||||
|
# (containing already a directory with the project-version name)
|
||||||
|
pbwf python-redfish = 1
|
||||||
|
|
||||||
|
# Do we check GPG keys
|
||||||
|
pbgpgcheck python-redfish = 1
|
||||||
|
|
||||||
|
#
|
||||||
|
# Packager label
|
||||||
|
#
|
||||||
|
pbpackager python-redfish = Bruno Cornec <bruno@project-builder.org>
|
||||||
|
#
|
||||||
|
|
||||||
|
# For delivery to a machine by SSH (potentially the FTP server)
|
||||||
|
# Needs hostname, account and directory
|
||||||
|
#
|
||||||
|
#sshhost python-redfish = www.python-redfish.org
|
||||||
|
#sshlogin python-redfish = bill
|
||||||
|
#sshdir python-redfish = /python-redfish/ftp
|
||||||
|
#sshport python-redfish = 22
|
||||||
|
|
||||||
|
#
|
||||||
|
# For Virtual machines management
|
||||||
|
# Naming convention to follow: distribution name (as per ProjectBuilder::Distribution)
|
||||||
|
# followed by '-' and by release number
|
||||||
|
# followed by '-' and by architecture
|
||||||
|
# a .vmtype extension will be added to the resulting string
|
||||||
|
# a QEMU rhel-3-i286 here means that the VM will be named rhel-3-i386.qemu
|
||||||
|
#
|
||||||
|
vmlist python-redfish = rhel-6-i386,opensuse-12.3-i386,sles-11-i386,gentoo-nover-i386,debian-8-i386,ubuntu-14.04-i386,ubuntu-15.10-i386,mageia-4-i386,mageia-5-i386,mageia-4-x86_64,mageia-5-x86_64,fedora-22-x86_64,fedora-23-x86_64,rhel-6-x86_64,rhel-7-x86_64,opensuse-12.3-i386,sles-10-x86_64,sles-11-x86_64,sles-12-x86_64,gentoo-nover-x86_64,debian-8-x86_64,ubuntu-14.04-x86_64,ubuntu-15.10-x86_64
|
||||||
|
|
||||||
|
#
|
||||||
|
# Valid values for vmtype are
|
||||||
|
# qemu, (vmware, xen, ... TBD)
|
||||||
|
#vmtype python-redfish = qemu
|
||||||
|
|
||||||
|
# Hash for VM stuff on vmtype
|
||||||
|
#vmntp default = pool.ntp.org
|
||||||
|
|
||||||
|
# We suppose we can commmunicate with the VM through SSH
|
||||||
|
#vmhost python-redfish = localhost
|
||||||
|
#vmlogin python-redfish = pb
|
||||||
|
#vmport python-redfish = 2222
|
||||||
|
|
||||||
|
# Timeout to wait when VM is launched/stopped
|
||||||
|
#vmtmout default = 120
|
||||||
|
|
||||||
|
# per VMs needed paramaters
|
||||||
|
#vmopt python-redfish = -m 384 -daemonize
|
||||||
|
#vmpath python-redfish = /home/qemu
|
||||||
|
#vmsize python-redfish = 5G
|
||||||
|
|
||||||
|
#
|
||||||
|
# For Virtual environment management
|
||||||
|
# Naming convention to follow: distribution name (as per ProjectBuilder::Distribution)
|
||||||
|
# followed by '-' and by release number
|
||||||
|
# followed by '-' and by architecture
|
||||||
|
# a .vetype extension will be added to the resulting string
|
||||||
|
# a chroot rhel-3-i286 here means that the VE will be named rhel-3-i386.chroot
|
||||||
|
#
|
||||||
|
#velist python-redfish = fedora-7-i386
|
||||||
|
|
||||||
|
# VE params
|
||||||
|
vetype python-redfish = docker
|
||||||
|
#ventp default = pool.ntp.org
|
||||||
|
#velogin python-redfish = pb
|
||||||
|
#vepath python-redfish = /var/cache/rpmbootstrap
|
||||||
|
#rbsconf python-redfish = /etc/mock
|
||||||
|
#verebuild python-redfish = false
|
||||||
|
|
||||||
|
#
|
||||||
|
# Global version/tag for the project
|
||||||
|
#
|
||||||
|
projver python-redfish = devel
|
||||||
|
projtag python-redfish = 1
|
||||||
|
|
||||||
|
# Hash of valid version names
|
||||||
|
|
||||||
|
# Additional repository to add at build time
|
||||||
|
# addrepo centos-5-x86_64 = http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm,ftp://ftp.project-builder.org/centos/5/pb.repo
|
||||||
|
# addrepo centos-5-x86_64 = http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm,ftp://ftp.project-builder.org/centos/5/pb.repo
|
||||||
|
#version python-redfish = devel,stable
|
||||||
|
|
||||||
|
# Is it a test version or a production version
|
||||||
|
testver python-redfish = true
|
||||||
|
# Which upper target dir for delivery
|
||||||
|
delivery python-redfish = test
|
||||||
|
|
||||||
|
# Additional repository to add at build time
|
||||||
|
# addrepo centos-5-x86_64 = http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm,ftp://ftp.project-builder.org/centos/5/pb.repo
|
||||||
|
# addrepo centos-4-x86_64 = http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el4.rf.x86_64.rpm,ftp://ftp.project-builder.org/centos/4/pb.repo
|
||||||
|
|
||||||
|
# Adapt to your needs:
|
||||||
|
# Optional if you need to overwrite the global values above
|
||||||
|
#
|
||||||
|
#pkgver python-redfish = stable
|
||||||
|
#pkgtag python-redfish = 3
|
||||||
|
# Hash of default package/package directory
|
||||||
|
defpkgdir python-redfish = .
|
||||||
|
# Hash of additional package/package directory
|
||||||
|
#extpkgdir minor-pkg = dir-minor-pkg
|
||||||
|
|
||||||
|
# List of files per pkg on which to apply filters
|
||||||
|
# Files are mentioned relatively to pbroot/defpkgdir
|
||||||
|
filteredfiles python-redfish = redfish-client/redfish-client.py
|
||||||
|
#supfiles python-redfish = python-redfish.init
|
||||||
|
|
||||||
|
# For perl modules, names are different depending on distro
|
||||||
|
# Here perl-xxx for RPMs, libxxx-perl for debs, ...
|
||||||
|
# So the package name is indeed virtual
|
||||||
|
#namingtype python-redfish = perl
|
1
pbconf/python-redfish/deb/changelog
Normal file
1
pbconf/python-redfish/deb/changelog
Normal file
@@ -0,0 +1 @@
|
|||||||
|
PBLOG
|
1
pbconf/python-redfish/deb/compat
Normal file
1
pbconf/python-redfish/deb/compat
Normal file
@@ -0,0 +1 @@
|
|||||||
|
PBDEBCOMP
|
23
pbconf/python-redfish/deb/control
Normal file
23
pbconf/python-redfish/deb/control
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
Source: PBPKG
|
||||||
|
# http://www.debian.org/doc/debian-policy/ch-archive.html#s-subsections
|
||||||
|
Section: PBGRP
|
||||||
|
Priority: optional
|
||||||
|
Maintainer: PBPACKAGER
|
||||||
|
Build-Depends: debhelper (>= 4.2.20), python-dev (>= 2.7), PBBDEP
|
||||||
|
Standards-Version: PBDEBSTD
|
||||||
|
Vcs-Svn: https://github.com/bcornec/PBPROJ
|
||||||
|
Vcs-Browser: https://github.com/bcornec/PBPROJ
|
||||||
|
Homepage: PBURL
|
||||||
|
|
||||||
|
Package: PBPKG
|
||||||
|
Architecture: amd64 i386 ia64
|
||||||
|
# http://www.debian.org/doc/debian-policy/ch-archive.html#s-subsections
|
||||||
|
Section: PBGRP
|
||||||
|
Priority: optional
|
||||||
|
Depends: ${shlibs:Depends}, ${misc:Depends}, python (>= 2.7), PBDEP
|
||||||
|
Recommends: PBREC
|
||||||
|
Suggests: PBSUG
|
||||||
|
Description: PBSUMMARY
|
||||||
|
PBDESC
|
||||||
|
.
|
||||||
|
|
27
pbconf/python-redfish/deb/copyright
Normal file
27
pbconf/python-redfish/deb/copyright
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
This package is debianized by PBPACKAGER
|
||||||
|
`date`
|
||||||
|
|
||||||
|
The current upstream source was downloaded from
|
||||||
|
PBREPO.
|
||||||
|
|
||||||
|
Upstream Authors: Put their name here
|
||||||
|
|
||||||
|
Copyright:
|
||||||
|
|
||||||
|
This package is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; version 2 dated June, 1991.
|
||||||
|
|
||||||
|
This package is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this package; if not, write to the Free Software
|
||||||
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
|
||||||
|
MA 02110-1301, USA.
|
||||||
|
|
||||||
|
On Debian systems, the complete text of the GNU General
|
||||||
|
Public License can be found in /usr/share/common-licenses/GPL.
|
||||||
|
|
0
pbconf/python-redfish/deb/python-redfish.dirs
Normal file
0
pbconf/python-redfish/deb/python-redfish.dirs
Normal file
5
pbconf/python-redfish/deb/python-redfish.docs
Normal file
5
pbconf/python-redfish/deb/python-redfish.docs
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
INSTALL
|
||||||
|
COPYING
|
||||||
|
AUTHORS
|
||||||
|
NEWS
|
||||||
|
README
|
16
pbconf/python-redfish/deb/rules
Normal file
16
pbconf/python-redfish/deb/rules
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
#!/usr/bin/make -f
|
||||||
|
|
||||||
|
export PYBUILD_NAME=PBPKG
|
||||||
|
export PYBUILD_AFTER_INSTALL_python3=rm -rf {destdir}/usr/bin
|
||||||
|
|
||||||
|
%:
|
||||||
|
dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
|
||||||
|
|
||||||
|
PYPI_DESC = PBSUMMARY
|
||||||
|
DEB_UPSTREAM_VERSION=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p')
|
||||||
|
help2man = PYTHONPATH=${CURDIR} help2man -N --version-string=${DEB_UPSTREAM_VERSION} \
|
||||||
|
-o $1 -n '$2' $(CURDIR)/debian/PBPKG/usr/bin/$(subst .1,,$1)
|
||||||
|
|
||||||
|
clean:
|
||||||
|
#rm -f redfish-client.1
|
||||||
|
dh $@ --buildsystem=pybuild
|
30
pbconf/python-redfish/pbcl
Normal file
30
pbconf/python-redfish/pbcl
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
# $Id$
|
||||||
|
|
||||||
|
PYTHON-REDFISH CHANGES
|
||||||
|
|
||||||
|
devel (2050-01-01)
|
||||||
|
- TBD ()
|
||||||
|
|
||||||
|
v0.2 (2015-12-08)
|
||||||
|
- first rpm made using project-builder.org (Bruno Cornec)
|
||||||
|
- Update the simple-simulator example (René Ribaud)
|
||||||
|
- Update redfish-client (René Ribaud)
|
||||||
|
- Add both UEFI parameters "Continuous" and "Once" as an example (Vincent Misson)
|
||||||
|
- New function set_parameter and set_parameter_json on Systems Class (Vincent Misson)
|
||||||
|
- New classes in types.py: Bios & Boot (Vincent Misson)
|
||||||
|
- New function get_power() and generic function get_parameter(parameter_name) for class Systems (Vincent Misson)
|
||||||
|
- Create new function: get_serialnumber. Tested with Simulator (v1) + Redfish Proliant 0.9.5 and 1.0 (Vincent Misson)
|
||||||
|
- Various doc updates (Bruno COrnec, René Ribaud)
|
||||||
|
|
||||||
|
v0.1 (2015-09-09)
|
||||||
|
- Uses tortilla lib to wrap the REST API (René Ribaud)
|
||||||
|
- Uses python requests to manage login/logout (René Ribaud)
|
||||||
|
- Provides 2 functional working examples with Redfish simulator and ProLiant server or Moonshot Server (René Ribaud)
|
||||||
|
- Remove OpenStack deps as this code has to be usable outside of OpenStack (Bruno Cornec)
|
||||||
|
- Provides a configuration file to handle credentials and connection URL (René Ribaud)
|
||||||
|
- Provides a mapping class to handle multiple versions of Redfish (in this version, 0.95.0 for ProLiant and 1.0.0 for mockup) (René Ribaud)
|
||||||
|
- Provides a first action reset_server to ... reset system The action is commented into simple-proliant.py to not do unexpected reset. (René Ribaud)
|
||||||
|
- Provides a first retrieving function get_bios_version to get the BIOS version of a system. (René Ribaud)
|
||||||
|
- Add basic logging capability (René Ribaud)
|
||||||
|
- Change the documentation to reference Redfish specification. Remove HP and iLO specific references (Samer El-Haj-Mahmoud)
|
||||||
|
- Initial content and Clean up to meet pep8 and doc strings (Devenanda van der Veen)
|
4
pbconf/python-redfish/pkg/depend
Normal file
4
pbconf/python-redfish/pkg/depend
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
#P SUNWperl584core Perl 5.8.4 (core)
|
7
pbconf/python-redfish/pkg/pbbuild
Normal file
7
pbconf/python-redfish/pkg/pbbuild
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
#perl Makefile.PL INSTALLDIRS=vendor
|
||||||
|
./configure --prefix=/usr
|
||||||
|
make
|
||||||
|
make install DESTDIR=\$1
|
13
pbconf/python-redfish/pkg/pkginfo
Normal file
13
pbconf/python-redfish/pkg/pkginfo
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
PKG="PBSOLPKG"
|
||||||
|
NAME="PBREALPKG"
|
||||||
|
VERSION="PBVER"
|
||||||
|
# all or i386
|
||||||
|
ARCH="all"
|
||||||
|
CATEGORY="application"
|
||||||
|
DESC="PBSUMMARY"
|
||||||
|
EMAIL="PBPACKAGER"
|
||||||
|
VENDOR="PBPACKAGER"
|
||||||
|
HOTLINE="PBURL"
|
43
pbconf/python-redfish/rpm/python-redfish.spec
Normal file
43
pbconf/python-redfish/rpm/python-redfish.spec
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
|
||||||
|
Name: PBREALPKG
|
||||||
|
Version: PBVER
|
||||||
|
Release: PBTAGPBSUF
|
||||||
|
Summary: PBSUMMARY
|
||||||
|
|
||||||
|
License: PBLIC
|
||||||
|
Group: PBGRP
|
||||||
|
Url: PBURL
|
||||||
|
Source: PBREPO/PBSRC
|
||||||
|
Requires: PBDEP
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRequires: PBBDEP
|
||||||
|
|
||||||
|
%description
|
||||||
|
PBDESC
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
|
||||||
|
%build
|
||||||
|
%{__python} setup.py build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
|
||||||
|
%{__mkdir} -p %{buildroot}/%{_bindir}
|
||||||
|
install -m 755 redfish-client/redfish-client.py %{buildroot}/%{_bindir}/redfish-client
|
||||||
|
rm -fr %{buildroot}/%{python_sitelib}/redfish/old
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc README.rst examples/[a-z]*.py LICENSE
|
||||||
|
%dir %{python_sitelib}/redfish
|
||||||
|
%{_bindir}/redfish-client
|
||||||
|
%{python_sitelib}/redfish/*.py*
|
||||||
|
%{python_sitelib}/redfish/tests/*.py*
|
||||||
|
%{python_sitelib}/python_redfish*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
PBLOG
|
||||||
|
|
@@ -1,36 +0,0 @@
|
|||||||
%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}
|
|
||||||
|
|
||||||
%files
|
|
||||||
%doc README.rst examples/*.py
|
|
||||||
%dir %{python_sitelib}/redfish
|
|
||||||
%{python_sitelib}/redfish/*.py*
|
|
||||||
%{python_sitelib}/redfish/tests/*.py*
|
|
||||||
%{python_sitelib}/python_redfish*
|
|
@@ -258,7 +258,7 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
|
|
||||||
# Main program
|
# Main program
|
||||||
redfishclient_version = "redfish-client 0.1"
|
redfishclient_version = "redfish-client PBVER"
|
||||||
|
|
||||||
# Parse and manage arguments
|
# Parse and manage arguments
|
||||||
arguments = docopt.docopt(__doc__, version=redfishclient_version)
|
arguments = docopt.docopt(__doc__, version=redfishclient_version)
|
||||||
|
Reference in New Issue
Block a user