diff --git a/.gitignore b/.gitignore index 57a8ee7..9c93129 100644 --- a/.gitignore +++ b/.gitignore @@ -27,7 +27,7 @@ var/ # 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. *.manifest -*.spec +#*.spec # Installer logs pip-log.txt @@ -55,6 +55,10 @@ docs/_build/ # PyBuilder target/ +# Project-Builder.org +delivery/ +build/ + # Pydev .project .pydevproject diff --git a/pbconf/pbfilter/all.pbf b/pbconf/pbfilter/all.pbf new file mode 100644 index 0000000..f78ebb7 --- /dev/null +++ b/pbconf/pbfilter/all.pbf @@ -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 diff --git a/pbconf/pbfilter/deb.pbf b/pbconf/pbfilter/deb.pbf new file mode 100644 index 0000000..4d359ac --- /dev/null +++ b/pbconf/pbfilter/deb.pbf @@ -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 = diff --git a/pbconf/pbfilter/debian-3.1.pbf b/pbconf/pbfilter/debian-3.1.pbf new file mode 100644 index 0000000..b4eaf1d --- /dev/null +++ b/pbconf/pbfilter/debian-3.1.pbf @@ -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 + diff --git a/pbconf/pbfilter/debian-4.0.pbf b/pbconf/pbfilter/debian-4.0.pbf new file mode 100644 index 0000000..88f897f --- /dev/null +++ b/pbconf/pbfilter/debian-4.0.pbf @@ -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 + diff --git a/pbconf/pbfilter/debian-5.0.pbf b/pbconf/pbfilter/debian-5.0.pbf new file mode 100644 index 0000000..2fa6292 --- /dev/null +++ b/pbconf/pbfilter/debian-5.0.pbf @@ -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 + diff --git a/pbconf/pbfilter/debian-6.0.pbf b/pbconf/pbfilter/debian-6.0.pbf new file mode 100644 index 0000000..2fa6292 --- /dev/null +++ b/pbconf/pbfilter/debian-6.0.pbf @@ -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 + diff --git a/pbconf/pbfilter/debian-7.0.pbf b/pbconf/pbfilter/debian-7.0.pbf new file mode 100644 index 0000000..f9a8238 --- /dev/null +++ b/pbconf/pbfilter/debian-7.0.pbf @@ -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 + diff --git a/pbconf/pbfilter/debian.pbf b/pbconf/pbfilter/debian.pbf new file mode 100644 index 0000000..2fa6292 --- /dev/null +++ b/pbconf/pbfilter/debian.pbf @@ -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 + diff --git a/pbconf/pbfilter/fedora-1.pbf b/pbconf/pbfilter/fedora-1.pbf new file mode 100644 index 0000000..67bfb52 --- /dev/null +++ b/pbconf/pbfilter/fedora-1.pbf @@ -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'} + diff --git a/pbconf/pbfilter/fedora-2.pbf b/pbconf/pbfilter/fedora-2.pbf new file mode 100644 index 0000000..67bfb52 --- /dev/null +++ b/pbconf/pbfilter/fedora-2.pbf @@ -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'} + diff --git a/pbconf/pbfilter/fedora-3.pbf b/pbconf/pbfilter/fedora-3.pbf new file mode 100644 index 0000000..67bfb52 --- /dev/null +++ b/pbconf/pbfilter/fedora-3.pbf @@ -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'} + diff --git a/pbconf/pbfilter/fedora-4.pbf b/pbconf/pbfilter/fedora-4.pbf new file mode 100644 index 0000000..67bfb52 --- /dev/null +++ b/pbconf/pbfilter/fedora-4.pbf @@ -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'} + diff --git a/pbconf/pbfilter/fedora-5.pbf b/pbconf/pbfilter/fedora-5.pbf new file mode 100644 index 0000000..67bfb52 --- /dev/null +++ b/pbconf/pbfilter/fedora-5.pbf @@ -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'} + diff --git a/pbconf/pbfilter/fedora-6.pbf b/pbconf/pbfilter/fedora-6.pbf new file mode 100644 index 0000000..67bfb52 --- /dev/null +++ b/pbconf/pbfilter/fedora-6.pbf @@ -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'} + diff --git a/pbconf/pbfilter/fedora-7.pbf b/pbconf/pbfilter/fedora-7.pbf new file mode 100644 index 0000000..67bfb52 --- /dev/null +++ b/pbconf/pbfilter/fedora-7.pbf @@ -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'} + diff --git a/pbconf/pbfilter/fedora.pbf b/pbconf/pbfilter/fedora.pbf new file mode 100644 index 0000000..7c5bf4d --- /dev/null +++ b/pbconf/pbfilter/fedora.pbf @@ -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 = + diff --git a/pbconf/pbfilter/md.pbf b/pbconf/pbfilter/md.pbf new file mode 100644 index 0000000..20fe4a7 --- /dev/null +++ b/pbconf/pbfilter/md.pbf @@ -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 + diff --git a/pbconf/pbfilter/novell.pbf b/pbconf/pbfilter/novell.pbf new file mode 100644 index 0000000..d170299 --- /dev/null +++ b/pbconf/pbfilter/novell.pbf @@ -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 + diff --git a/pbconf/pbfilter/pkg.pbf b/pbconf/pbfilter/pkg.pbf new file mode 100644 index 0000000..5496d1a --- /dev/null +++ b/pbconf/pbfilter/pkg.pbf @@ -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 + diff --git a/pbconf/pbfilter/rpm.pbf b/pbconf/pbfilter/rpm.pbf new file mode 100644 index 0000000..68b0262 --- /dev/null +++ b/pbconf/pbfilter/rpm.pbf @@ -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; + diff --git a/pbconf/pbfilter/ubuntu-6.06.pbf b/pbconf/pbfilter/ubuntu-6.06.pbf new file mode 100644 index 0000000..9f8c61f --- /dev/null +++ b/pbconf/pbfilter/ubuntu-6.06.pbf @@ -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 + diff --git a/pbconf/pbfilter/ubuntu-7.04.pbf b/pbconf/pbfilter/ubuntu-7.04.pbf new file mode 100644 index 0000000..9f8c61f --- /dev/null +++ b/pbconf/pbfilter/ubuntu-7.04.pbf @@ -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 + diff --git a/pbconf/pbfilter/ubuntu-7.10.pbf b/pbconf/pbfilter/ubuntu-7.10.pbf new file mode 100644 index 0000000..9f8c61f --- /dev/null +++ b/pbconf/pbfilter/ubuntu-7.10.pbf @@ -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 + diff --git a/pbconf/pbfilter/ubuntu-8.04.pbf b/pbconf/pbfilter/ubuntu-8.04.pbf new file mode 100644 index 0000000..1855642 --- /dev/null +++ b/pbconf/pbfilter/ubuntu-8.04.pbf @@ -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 + diff --git a/pbconf/pbfilter/ubuntu-8.10.pbf b/pbconf/pbfilter/ubuntu-8.10.pbf new file mode 100644 index 0000000..1855642 --- /dev/null +++ b/pbconf/pbfilter/ubuntu-8.10.pbf @@ -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 + diff --git a/pbconf/pbfilter/ubuntu-9.04.pbf b/pbconf/pbfilter/ubuntu-9.04.pbf new file mode 100644 index 0000000..4f2c95a --- /dev/null +++ b/pbconf/pbfilter/ubuntu-9.04.pbf @@ -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 + diff --git a/pbconf/pbfilter/ubuntu.pbf b/pbconf/pbfilter/ubuntu.pbf new file mode 100644 index 0000000..3133ad3 --- /dev/null +++ b/pbconf/pbfilter/ubuntu.pbf @@ -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 + diff --git a/pbconf/python-redfish.pb b/pbconf/python-redfish.pb new file mode 100644 index 0000000..48392d9 --- /dev/null +++ b/pbconf/python-redfish.pb @@ -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 +# + +# 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 diff --git a/pbconf/python-redfish/deb/changelog b/pbconf/python-redfish/deb/changelog new file mode 100644 index 0000000..9320d95 --- /dev/null +++ b/pbconf/python-redfish/deb/changelog @@ -0,0 +1 @@ +PBLOG diff --git a/pbconf/python-redfish/deb/compat b/pbconf/python-redfish/deb/compat new file mode 100644 index 0000000..53f13a4 --- /dev/null +++ b/pbconf/python-redfish/deb/compat @@ -0,0 +1 @@ +PBDEBCOMP diff --git a/pbconf/python-redfish/deb/control b/pbconf/python-redfish/deb/control new file mode 100644 index 0000000..e1c4c74 --- /dev/null +++ b/pbconf/python-redfish/deb/control @@ -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 + . + diff --git a/pbconf/python-redfish/deb/copyright b/pbconf/python-redfish/deb/copyright new file mode 100644 index 0000000..ab672db --- /dev/null +++ b/pbconf/python-redfish/deb/copyright @@ -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. + diff --git a/pbconf/python-redfish/deb/python-redfish.dirs b/pbconf/python-redfish/deb/python-redfish.dirs new file mode 100644 index 0000000..e69de29 diff --git a/pbconf/python-redfish/deb/python-redfish.docs b/pbconf/python-redfish/deb/python-redfish.docs new file mode 100644 index 0000000..2db6539 --- /dev/null +++ b/pbconf/python-redfish/deb/python-redfish.docs @@ -0,0 +1,5 @@ +INSTALL +COPYING +AUTHORS +NEWS +README diff --git a/pbconf/python-redfish/deb/rules b/pbconf/python-redfish/deb/rules new file mode 100644 index 0000000..6d52ab7 --- /dev/null +++ b/pbconf/python-redfish/deb/rules @@ -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 diff --git a/pbconf/python-redfish/pbcl b/pbconf/python-redfish/pbcl new file mode 100644 index 0000000..1995941 --- /dev/null +++ b/pbconf/python-redfish/pbcl @@ -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) diff --git a/pbconf/python-redfish/pkg/depend b/pbconf/python-redfish/pkg/depend new file mode 100644 index 0000000..8ef02d8 --- /dev/null +++ b/pbconf/python-redfish/pkg/depend @@ -0,0 +1,4 @@ +# +# $Id$ +# +#P SUNWperl584core Perl 5.8.4 (core) diff --git a/pbconf/python-redfish/pkg/pbbuild b/pbconf/python-redfish/pkg/pbbuild new file mode 100644 index 0000000..95ac4f6 --- /dev/null +++ b/pbconf/python-redfish/pkg/pbbuild @@ -0,0 +1,7 @@ +# +# $Id$ +# +#perl Makefile.PL INSTALLDIRS=vendor +./configure --prefix=/usr +make +make install DESTDIR=\$1 diff --git a/pbconf/python-redfish/pkg/pkginfo b/pbconf/python-redfish/pkg/pkginfo new file mode 100644 index 0000000..d56b330 --- /dev/null +++ b/pbconf/python-redfish/pkg/pkginfo @@ -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" diff --git a/pbconf/python-redfish/rpm/python-redfish.spec b/pbconf/python-redfish/rpm/python-redfish.spec new file mode 100644 index 0000000..22e4e5b --- /dev/null +++ b/pbconf/python-redfish/rpm/python-redfish.spec @@ -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 + diff --git a/python-redfish.spec b/python-redfish.spec deleted file mode 100644 index e60f04d..0000000 --- a/python-redfish.spec +++ /dev/null @@ -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* diff --git a/redfish-client/redfish-client.py b/redfish-client/redfish-client.py index 5d011c1..4ed5d64 100755 --- a/redfish-client/redfish-client.py +++ b/redfish-client/redfish-client.py @@ -258,7 +258,7 @@ if __name__ == '__main__': # Main program - redfishclient_version = "redfish-client 0.1" + redfishclient_version = "redfish-client PBVER" # Parse and manage arguments arguments = docopt.docopt(__doc__, version=redfishclient_version)