Skip to content

Commit

Permalink
Merge branch 'devel'
Browse files Browse the repository at this point in the history
This is version 0.3
  • Loading branch information
bcornec committed Apr 29, 2016
2 parents 8db813d + 78c830e commit fe69498
Show file tree
Hide file tree
Showing 26 changed files with 35 additions and 211 deletions.
11 changes: 8 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ var/
*.egg-info/
.installed.cfg
*.egg
AUTHORS
ChangeLog

# PyInstaller
# Usually these files are written by a python script from a template
Expand Down Expand Up @@ -57,9 +59,12 @@ docs/_build/
# PyBuilder
target/

# Project-Builder.org
delivery/
build/
# Project-Builder.org 0.14.1
pbdelivery/
pbbuild/

# ctags
tags

# Pydev
.project
Expand Down
2 changes: 1 addition & 1 deletion doc/source/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FAQ

- Q1 : error in setup command: Invalid environment marker: (python_version < '3')

This error is caused by old setuptools revisions that do not understant "python_version < '3'".
This error is caused by an old setuptools version that does not understand "python_version < '3'".
Upgrade setuptools using::

pip install --upgrade setuptools
Expand Down
10 changes: 5 additions & 5 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ export pkg=$5

# Documentation installation only
if [ $python = "doc" ]; then
install -d 755 $rootdir/$prefix/share/doc/$5/html/_static
install -m 644 doc/build/singlehtml/*.html $rootdir/$prefix/share/doc/$5/html
install -m 644 doc/build/singlehtml/_static/* $rootdir/$prefix/share/doc/$5/html/_static
install -m 644 doc/build/latex/*.pdf $rootdir/$prefix/share/doc/$5/
install -d 755 $rootdir/$prefix/share/doc/$5/manual/html/_static
install -m 644 doc/build/singlehtml/*.html $rootdir/$prefix/share/doc/$5/manual/html
install -m 644 doc/build/singlehtml/_static/* $rootdir/$prefix/share/doc/$5/manual/html/_static
install -m 644 doc/build/latex/*.pdf $rootdir/$prefix/share/doc/$5/manual/
exit 0
fi

pyver=`$python --version 2>&1 | perl -p -e 's|.* ([2-3])\..*|$1|'`
$python setup.py install --skip-build --root=$rootdir --prefix=$prefix

rm -rf $rootdir/$sitelib/redfish/old
rm -rf $rootdir/$sitelib/redfish/old $rootdir/$prefix/share/doc/$5/html $rootdir/$prefix/share/doc/$5/*.pdf

# Hardcoded for now to solve the delivery of the conf file still not correct with setup.py
mkdir -p $rootdir/etc
Expand Down
11 changes: 0 additions & 11 deletions pbconf/pbfilter/debian-3.1.pbf

This file was deleted.

11 changes: 0 additions & 11 deletions pbconf/pbfilter/debian-4.0.pbf

This file was deleted.

11 changes: 0 additions & 11 deletions pbconf/pbfilter/debian-5.0.pbf

This file was deleted.

11 changes: 0 additions & 11 deletions pbconf/pbfilter/debian-6.0.pbf

This file was deleted.

11 changes: 0 additions & 11 deletions pbconf/pbfilter/debian-7.0.pbf

This file was deleted.

9 changes: 0 additions & 9 deletions pbconf/pbfilter/fedora-1.pbf

This file was deleted.

9 changes: 0 additions & 9 deletions pbconf/pbfilter/fedora-2.pbf

This file was deleted.

9 changes: 0 additions & 9 deletions pbconf/pbfilter/fedora-3.pbf

This file was deleted.

9 changes: 0 additions & 9 deletions pbconf/pbfilter/fedora-4.pbf

This file was deleted.

9 changes: 0 additions & 9 deletions pbconf/pbfilter/fedora-5.pbf

This file was deleted.

9 changes: 0 additions & 9 deletions pbconf/pbfilter/fedora-6.pbf

This file was deleted.

9 changes: 0 additions & 9 deletions pbconf/pbfilter/fedora-7.pbf

This file was deleted.

2 changes: 2 additions & 0 deletions pbconf/pbfilter/fedora.pbf
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ filter PBSUF = %{dist}
# PBOBS is replaced by the Obsolete line
#filter PBOBS =

filter PB2PYTHON2BDEP = texlive-multirow,texlive-upquote,texlive-wrapfig,texlive-threeparttable,texlive-titlesec
filter PB2PYTHON3BDEP = texlive-multirow,texlive-upquote,texlive-wrapfig,texlive-threeparttable,texlive-titlesec
2 changes: 2 additions & 0 deletions pbconf/pbfilter/md.pbf
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ filter PBGRP = Development/Python
# Cf: http://wiki.mandriva.com/en/Development/Packaging/Licenses
#filter PBLIC = GPL

filter PB2PYTHON2BDEP = python-pkg-resources >= 18, texlive-dist
filter PB2PYTHON3BDEP = python3-pkg-resources >= 18, texlive-dist
8 changes: 4 additions & 4 deletions pbconf/pbfilter/rpm.pbf
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ filter PBLIC = ASL 2.0
#filter PBDEP =

# PBBDEP is replaced by the list of build dependencies
filter PBPYTHON2BDEP = python-devel,python-setuptools,python-pbr >= 0.8,python-sphinx >= 1.2.3,python-future >= 0.15.2
filter PBPYTHON2DEP = python-docopt >= 0.6.2,python-tortilla >= 0.4.1,python-jinja2 >= 2.7.3,python-pbr >= 0.8,python-simplejson >= 3.8.1,python-requests >= 2.9.1,python-configparser >= 3.3.0
filter PBPYTHON3BDEP = python3-devel,python3-setuptools,python3-pbr >= 0.8,python3-sphinx >= 1.2.3,python3-future >= 0.15.2
filter PBPYTHON3DEP = python3-docopt >= 0.6.2,python3-tortilla >= 0.4.1,python3-jinja2 >= 2.7.3,python3-pbr >= 0.8,python3-simplejson >= 3.8.1,python3-requests >= 2.9.1
filter PBPYTHON2BDEP = python-devel,python-setuptools >= 18,python-sphinx >= 1.2.3,python-future >= 0.15.2,python-docopt >= 0.6.2,python-requests >= 2.9.1,python-simplejson >= 3.8.1,python-configparser >= 3.3.0,texlive,python-sphinx_rtd_theme
filter PBPYTHON2DEP = python-docopt >= 0.6.2,python-tortilla >= 0.4.1,python-jinja2 >= 2.7.3,python-simplejson >= 3.8.1,python-requests >= 2.9.1,python-configparser >= 3.3.0
filter PBPYTHON3BDEP = python3-devel,python3-setuptools >= 18,python3-sphinx >= 1.2.3,python3-future >= 0.15.2,python3-docopt >= 0.6.2,python3-requests >= 2.9.1,python3-simplejson >= 3.8.1,texlive,python3-sphinx_rtd_theme
filter PBPYTHON3DEP = python3-docopt >= 0.6.2,python3-tortilla >= 0.4.1,python3-jinja2 >= 2.7.3,python3-simplejson >= 3.8.1,python3-requests >= 2.9.1
filter PBPYTHON3PKG = python3-redfish

# PBSUF is replaced by the package suffix ($pb->{'suf'} in code)
Expand Down
11 changes: 0 additions & 11 deletions pbconf/pbfilter/ubuntu-6.06.pbf

This file was deleted.

11 changes: 0 additions & 11 deletions pbconf/pbfilter/ubuntu-7.04.pbf

This file was deleted.

11 changes: 0 additions & 11 deletions pbconf/pbfilter/ubuntu-7.10.pbf

This file was deleted.

11 changes: 0 additions & 11 deletions pbconf/pbfilter/ubuntu-8.04.pbf

This file was deleted.

11 changes: 0 additions & 11 deletions pbconf/pbfilter/ubuntu-8.10.pbf

This file was deleted.

11 changes: 0 additions & 11 deletions pbconf/pbfilter/ubuntu-9.04.pbf

This file was deleted.

6 changes: 2 additions & 4 deletions pbconf/python-redfish.pb
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,5 @@ defpkgdir python-redfish = .
filteredfiles python-redfish = redfish-client/redfish-client,doc/source/conf.py,redfish-client/etc/redfish-client.conf,install.sh
#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
# We use pbr to generate sources
pbpbr python-redfish = 1
21 changes: 11 additions & 10 deletions pbconf/python-redfish/rpm/python-redfish.spec
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@ Url: PBURL
Source: PBREPO/PBSRC
Requires: PBPYTHON2DEP
BuildArch: noarch
BuildRequires: PBPYTHON2BDEP
BuildRequires: PBPYTHON2BDEP, PB2PYTHON2BDEP

%description
PBDESC
Python2 version.

%package -n PBPYTHON3PKG
Summary: %{summary} / Python 3 library
BuildRequires: PBPYTHON3BDEP
BuildRequires: PBPYTHON3BDEP, PB2PYTHON3BDEP
Requires: PBPYTHON3DEP

%package -n PBREALPKG-doc
Summary: %{summary} / Documentation
BuildRequires: PBPYTHON3BDEP
BuildRequires: PBPYTHON3BDEP, PB2PYTHON3BDEP
Requires: PBPYTHON3DEP

%description -n PBPYTHON3PKG
Expand All @@ -42,6 +42,8 @@ Documentation
# Fix for now as long as setuptools isn't more recent in distributions
PBPYTHON3FILTER
cp -a . %{py3dir}
# python3 doesn't provide configparser at all
(cd %{py3dir} ; perl -pi -e "s|configparser>=3.3.0||" requirements.txt)

%build
pushd %{py3dir}
Expand Down Expand Up @@ -74,32 +76,31 @@ popd

%files
%doc README.rst examples/[a-z]*.py LICENSE
%exclude %{_docdir}/PBREALPKG/html
%exclude %{_docdir}/PBREALPKG/*.pdf
%{_bindir}/redfish-client
%dir %{_datadir}/redfish-client
%{_datadir}/redfish-client/templates/*
%config(noreplace) %{_sysconfdir}/redfish-client.conf
%dir %{python_sitelib}/redfish
%{python_sitelib}/redfish/*.py*
#%{python_sitelib}/redfish/tests/*.py*
%{python_sitelib}/python_redfish*
# Needs improvement to host all .1 man pages but not the py3 ones
%{_mandir}/man1/PBREALPKG.1*
%{_mandir}/man1/*-py2.1*

%files -n PBPYTHON3PKG
%doc README.rst examples/[a-z]*.py LICENSE
%doc README.rst examples/[a-z]*.py LICENSE AUTHORS ChangeLog
%dir %{python3_sitelib}/redfish
%{python3_sitelib}/redfish/*.py*
%{python3_sitelib}/redfish/__pycache__/*.py*
#%{python3_sitelib}/redfish/tests/*.py*
#%{python3_sitelib}/redfish/tests/__pycache__/*.py*
%{python3_sitelib}/python_redfish*
%{_mandir}/man1/*-py3.1*

%files -n PBREALPKG-doc
%{_docdir}/PBREALPKG/html/_static/*
%{_docdir}/PBREALPKG/html/index.html
%{_docdir}/PBREALPKG/*.pdf
%{_docdir}/PBREALPKG/manual/html/_static/*
%{_docdir}/PBREALPKG/manual/html/index.html
%{_docdir}/PBREALPKG/manual/*.pdf

%changelog
PBLOG

0 comments on commit fe69498

Please sign in to comment.