#8 Update epel7 branch to latest 1.0.x
Opened 23 days ago by xavierb. Modified 23 days ago
rpms/ xavierb/python-pyghmi el7-py3  into  epel7

New upstream release: pyghmi 1.0.12
Lucas Alvares Gomes • 3 years ago  
New upstream release: pyghmi 0.8.0
Lucas Alvares Gomes • 4 years ago  
file modified
+3

@@ -1,1 +1,4 @@ 

  /pyghmi-0.5.9.tar.gz

+ /pyghmi-0.8.0.tar.gz

+ /pyghmi-1.0.12.tar.gz

+ /pyghmi-1.0.22.tar.gz

file modified
+169 -17

@@ -1,23 +1,79 @@ 

+ %global with_python3 1

  %global sname pyghmi

+ %global common_summary Python General Hardware Management Initiative (IPMI and others)

  

- Name:           python-%{sname}

- Version:        0.5.9

- Release:        2%{?dist}

- Summary:        Python General Hardware Management Initiative (IPMI and others)

+ %global common_desc This is a pure Python implementation of IPMI protocol. \

+ \

+ The included pyghmicons and pyghmiutil scripts demonstrate how one may \

+ incorporate the pyghmi library into a Python application.

+ 

+ %global common_desc_tests Tests for the pyghmi library

  

+ Name:           python-%{sname}

+ Version:        1.0.44

+ Release:        1%{?dist}

+ Summary:        %{common_summary}

  License:        ASL 2.0

- URL:            https://github.com/stackforge/pyghmi

- Source0:        http://pypi.python.org/packages/source/p/%{sname}/%{sname}-%{version}.tar.gz

+ URL:            https://git.openstack.org/cgit/openstack/pyghmi

+ Source0:        http://tarballs.openstack.org/%{sname}/%{sname}-%{version}.tar.gz

+ 

  BuildArch:      noarch

  

+ %description

+ %{common_desc}

+ 

+ %package -n python2-%{sname}

+ Summary: %{common_summary}

+ %{?python_provide:%python_provide python2-%{sname}}

+ 

  BuildRequires:  python2-devel

- BuildRequires:  python-pbr

+ BuildRequires:  python2-setuptools

+ BuildRequires:  python2-pbr

+ BuildRequires:  python2-crypto >= 2.6

  

- Requires:       python-crypto >= 2.6

+ Requires:       python2-crypto >= 2.6

  

- %description

- This is a pure python implementation of the IPMI protocol.

+ %description -n python2-%{sname}

+ %{common_desc}

+ 

+ %package -n python2-%{sname}-tests

+ Summary: %{common_desc_tests}

+ Requires:       python2-%{sname} = %{version}-%{release}

+ 

+ %description -n python2-%{sname}-tests

+ %{common_desc_tests}

+ 

+ %if 0%{?with_python3}

+ %package -n python%{python3_pkgversion}-%{sname}

+ Summary: %{common_summary}

+ %{?python_provide:%python_provide python%{python3_pkgversion}-%{sname}}

+ 

+ BuildRequires:  python%{python3_pkgversion}-devel

+ BuildRequires:  python%{python3_pkgversion}-setuptools

+ BuildRequires:  python%{python3_pkgversion}-pbr

+ BuildRequires:  python%{python3_pkgversion}-crypto >= 2.6

+ 

+ Requires:       python%{python3_pkgversion}-crypto >= 2.6

+ 

+ %description -n python%{python3_pkgversion}-%{sname}

+ %{common_desc}

+ 

+ %package -n python%{python3_pkgversion}-%{sname}-tests

+ Summary: %{common_desc_tests}

+ Requires: python%{python3_pkgversion}-%{sname} = %{version}-%{release}

+ 

+ %description -n python%{python3_pkgversion}-%{sname}-tests

+ %{common_desc_tests}

  

+ %endif # with_python3

+ 

+ %package -n python-%{sname}-doc

+ Summary: The pyghmi library documentation

+ 

+ BuildRequires:  python2-sphinx

+ 

+ %description -n python-%{sname}-doc

+ Documentation for the pyghmi library

  

  %prep

  %setup -q -n %{sname}-%{version}

@@ -29,22 +85,118 @@ 

  # to distutils requires_dist config

  rm -rf {test-,}requirements.txt

  

+ # Fix perms

+ chmod a-x README.md

  

  %build

- %{__python2} setup.py build

+ %if 0%{?with_python3}

+ %py3_build

+ %endif # with_python3

+ 

+ %py2_build

  

+ # generate html docs

+ %{__python2} setup.py build_sphinx -b html

+ # remove the sphinx-build leftovers

+ rm -rf doc/build/html/.{doctrees,buildinfo}

  

  %install

- %{__python2} setup.py install --skip-build --root %{buildroot}

+ %if 0%{?with_python3}

+ %py3_install

+ 

+ # rename python3 binary

+ pushd %{buildroot}/%{_bindir}

+ mv pyghmicons pyghmicons-%{python3_version}

+ ln -s pyghmicons-%{python3_version} pyghmicons-3

+ mv pyghmiutil pyghmiutil-%{python3_version}

+ ln -s pyghmiutil-%{python3_version} pyghmiutil-3

+ mv virshbmc virshbmc-%{python3_version}

+ ln -s virshbmc-%{python3_version} virshbmc-3

+ popd

+ 

+ %endif # with_python3

+ 

+ %py2_install

+ 

+ %if 0%{?with_python3}

+ %files -n python%{python3_pkgversion}-%{sname}

+ %license LICENSE

+ %{_bindir}/pyghmicons-%{python3_version}

+ %{_bindir}/pyghmicons-3

+ %{_bindir}/pyghmiutil-%{python3_version}

+ %{_bindir}/pyghmiutil-3

+ %{_bindir}/virshbmc-%{python3_version}

+ %{_bindir}/virshbmc-3

+ %{python3_sitelib}/%{sname}

+ %{python3_sitelib}/%{sname}-*.egg-info

+ %exclude %{python3_sitelib}/%{sname}/tests

+ 

+ %files -n python%{python3_pkgversion}-%{sname}-tests

+ %license LICENSE

+ %{python3_sitelib}/%{sname}/tests

+ %endif # with_python3

+ 

+ %files -n python2-%{sname}

+ %license LICENSE

+ %{_bindir}/pyghmicons

+ %{_bindir}/pyghmiutil

+ %{_bindir}/virshbmc

+ %{python2_sitelib}/%{sname}

+ %{python2_sitelib}/%{sname}-*.egg-info

+ %exclude %{python2_sitelib}/%{sname}/tests

+ 

+ %files -n python2-%{sname}-tests

+ %license LICENSE

+ %{python2_sitelib}/%{sname}/tests

+ 

+ %files -n python-%{sname}-doc

+ %license LICENSE

+ %doc doc/build/html README.md

  

+ %changelog

+ * Mon Oct 21 2019 Xavier Bachelot <xavier@bachelot.org> - 1.0.44-1

+ - Update to 1.0.44.

+ - Add python3 build.

+ - Spec clean up.

  

- %files

- %doc README LICENSE

- %{python2_sitelib}/pyghmi

- %{python2_sitelib}/*.egg-info

+ * Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.22-4

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

  

+ * Fri Feb 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.0.22-3

+ - Update Python 2 dependency declarations to new packaging standards

+   (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)

+ 

+ * Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.22-2

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

+ 

+ * Thu Oct  5 2017 Haïkel Guémar <hguemar@fedoraproject.org> - 1.0.22-1

+ - Upstream 1.0.22

+ 

+ * Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.0.12-4

+ - Python 2 binary package renamed to python2-pyghmi

+   See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3

+ 

+ * Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.12-3

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

+ 

+ * Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.12-2

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

+ 

+ * Mon Nov 07 2016 Lucas Alvares Gomes <lucasagomes@gmail.com> - 1.0.12-1

+ - Rebased to 1.0.12

+ 

+ * Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.0-3

+ - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages

+ 

+ * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-2

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

+ 

+ * Fri Sep 25 2015 Lucas Alvares Gomes <lucasagomes@gmail.com> - 0.8.0-1

+ - Rebased to 0.8.0

+ 

+ * Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.9-3

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

  

- %changelog

  * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.9-2

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

  

file modified
+1 -1

@@ -1,1 +1,1 @@ 

- 7b9e2df6a0dc7737da2cd80605764961  pyghmi-0.5.9.tar.gz

+ SHA512 (pyghmi-1.0.22.tar.gz) = 9e3bc6b5f33d5496d7e58d2ea558d20d45a7690d493f2d1ad56fdd5570279a38e8934d8425c3d3207d8001da85a9a0b1319463b802fa9f121db7448aa919bddc

As in title, update epel7 branch to latest 1.0.x.
Also, add python3 subpackage.