From cf610cc706ecd3120e7786d61339559ed7a028a5 Mon Sep 17 00:00:00 2001 From: rdobuilder Date: May 27 2024 07:50:12 +0000 Subject: Update to 1.5.69 Related-to: https://review.rdoproject.org/r/q/Icd3676aac0111cd7a9ec2475b498c6fb5bed57b8 --- diff --git a/.python-pyghmi.metadata b/.python-pyghmi.metadata index 49b344c..fa4f2e5 100644 --- a/.python-pyghmi.metadata +++ b/.python-pyghmi.metadata @@ -1 +1 @@ -0b3b4b4ebd0adce8cd4a2aac0a1a2c428dd073fc SOURCES/pyghmi-1.5.29.tar.gz +b4c360ad6c5d24417e0e7c0dba7a567b6c2d9325 SOURCES/pyghmi-1.5.69.tar.gz diff --git a/SPECS/python-pyghmi.spec b/SPECS/python-pyghmi.spec index 44d89e2..5f18e36 100644 --- a/SPECS/python-pyghmi.spec +++ b/SPECS/python-pyghmi.spec @@ -1,4 +1,3 @@ -%{?python_enable_dependency_generator} %global sname pyghmi %global common_summary Python General Hardware Management Initiative (IPMI and others) @@ -9,76 +8,36 @@ incorporate the pyghmi library into a Python application. %global common_desc_tests Tests for the pyghmi library -# Enable python3 build in fedora and rhel>7 and python2 only for rhel=7 -%if 0%{?fedora} || 0%{?rhel} > 7 -%global with_python3 1 -%global with_python2 0 -%else -%global with_python3 0 -%global with_python2 1 -%endif - -%if %{lua: if (string.find(rpm.expand("%{?dist}"), "ost") == nil) then print(0) else print(1) end} -%bcond_without docs -%else -%bcond_with docs -%endif - Summary: %{common_summary} Name: python-%{sname} -Version: %{?version:%{version}}%{!?version:1.5.29} +Version: %{?version:%{version}}%{!?version:1.5.69} Release: 1%{?dist} Source0: https://tarballs.opendev.org/x/%{sname}/%{sname}-%{version}.tar.gz License: ASL 2.0 Prefix: %{_prefix} BuildArch: noarch -Url: https://git.openstack.org/cgit/openstack/pyghmi - -Patch0: nopbr.patch -Patch1: setup.patch +Url: https://opendev.org/x/pyghmi %description %{common_desc} -%if 0%{?with_python2} -%package -n python2-%{sname} -Summary: %{common_summary} -%{?python_provide:%python_provide python2-%{sname}} - -BuildRequires: openstack-macros -BuildRequires: python2-devel -#BuildRequires: python2-pbr -BuildRequires: python2-setuptools - -Requires: python2-cryptography >= 2.1 -Requires: python2-six >= 1.10.0 -Requires: python2-dateutil >= 2.6.1 - -%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} - -%endif # with_python2 - -%if 0%{?with_python3} - %package -n python3-%{sname} Summary: %{common_summary} %{?python_provide:%python_provide python3-%{sname}} BuildRequires: python3-devel -#BuildRequires: python3-pbr +BuildRequires: python3-pbr BuildRequires: python3-setuptools +BuildRequires: python3-oslotest +BuildRequires: python3-stestr + +BuildRequires: python3-cryptography +BuildRequires: python3-six +BuildRequires: python3-dateutil Requires: python3-cryptography >= 2.1 Requires: python3-six >= 1.10.0 -Requires: python3-dateutil >= 2.6.1 +Requires: python3-dateutil >= 2.8.1 %description -n python3-%{sname} %{common_desc} @@ -90,87 +49,36 @@ Requires: python3-%{sname} = %{version}-%{release} %description -n python3-%{sname}-tests %{common_desc_tests} -%endif # with_python3 - -%if %{with docs} - %package -n python-%{sname}-doc Summary: The pyghmi library documentation -%if 0%{?with_python2} -BuildRequires: python-sphinx -BuildRequires: python2-openstackdocstheme -%else BuildRequires: python3-sphinx BuildRequires: python3-openstackdocstheme -%endif %description -n python-%{sname}-doc Documentation for the pyghmi library -%endif - %prep %setup -qn %{sname}-%{version} -%patch0 -p1 -%patch1 -p1 - -# NOTE(dtantsur): pyghmi is actual fine with older dateutil, 2.8.1 is missing -# from both Fedora and CentOS currently. See -# https://bugzilla.redhat.com/show_bug.cgi?id=1835084 -sed -i 's/python-dateutil.*/python-dateutil>=2.6.1/' requirements.txt - -sed -i s/@@REDHATVERSION@@/%{version}/ pyghmi/version.py -# If not PBR, use the setup.py.tmpl -sed -e "s/#VERSION#/%{version}/" setup.py.tmpl > setup.py %build -%if 0%{?with_python3} %py3_build -%if %{with docs} -%{__python3} setup.py build_sphinx -b html -%endif -%endif # with_python3 - -%if 0%{?with_python2} -%py2_build -%if %{with docs} -%{__python2} setup.py build_sphinx -b html -%endif -%endif +sphinx-build -b html doc/source doc/build/html # remove the sphinx-build leftovers rm -rf doc/build/html/.{doctrees,buildinfo} %install -%if 0%{?with_python3} %py3_install -# rename python3 binary -pushd %{buildroot}/%{_bindir} -mv pyghmicons pyghmicons-%{python3_version} -ln -s pyghmicons-%{python3_version} pyghmicons-3 -ln -s pyghmicons-3 pyghmicons -mv pyghmiutil pyghmiutil-%{python3_version} -ln -s pyghmiutil-%{python3_version} pyghmiutil-3 -ln -s pyghmiutil-3 pyghmiutil -mv virshbmc virshbmc-%{python3_version} -ln -s virshbmc-%{python3_version} virshbmc-3 -ln -s virshbmc-3 virshbmc -popd - -%endif # with_python3 - -%if 0%{?with_python2} -%py2_install -%endif - -%if 0%{?with_python3} +%check +stestr run + %files -n python3-%{sname} %license LICENSE -%{_bindir}/pyghmicons* -%{_bindir}/pyghmiutil* -%{_bindir}/virshbmc* +%{_bindir}/pyghmicons +%{_bindir}/pyghmiutil +%{_bindir}/virshbmc %{_bindir}/fakebmc %{python3_sitelib}/%{sname} %{python3_sitelib}/%{sname}-*.egg-info @@ -179,37 +87,53 @@ popd %files -n python3-%{sname}-tests %license LICENSE %{python3_sitelib}/%{sname}/tests -%endif # with_python3 -%if 0%{?with_python2} -%files -n python2-%{sname} +%files -n python-%{sname}-doc %license LICENSE -%{_bindir}/pyghmicons -%{_bindir}/pyghmiutil -%{_bindir}/virshbmc -%{_bindir}/fakebmc -%{python2_sitelib}/%{sname} -%{python2_sitelib}/%{sname}-*.egg-info -%exclude %{python2_sitelib}/%{sname}/tests +%doc doc/build/html README.md -%files -n python2-%{sname}-tests -%license LICENSE -%{python2_sitelib}/%{sname}/tests -%endif +%changelog +* Sun Apr 21 2024 Dmitry Tantsur - 1.5.69-1 +- Update to 1.5.69 -%if %{with docs} +* Fri Jan 26 2024 Fedora Release Engineering - 1.5.29-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild -%files -n python-%{sname}-doc -%license LICENSE -%doc doc/build/html README.md +* Mon Jan 22 2024 Fedora Release Engineering - 1.5.29-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild -%endif # with docs +* Fri Jul 21 2023 Fedora Release Engineering - 1.5.29-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild -%changelog -* Fri Aug 6 2021 Pavel Cahyna - 1.5.29-1 -- Updated to 1.5.29. -- Avoid dependency on python-pbr, conditionalize docs build, to allow building in RHEL. - Inspired by python-sushy. +* Tue Jul 11 2023 Dmitry Tantsur - 1.5.29-7 +- Avoid setup.py build_sphinx (#2221967) + +* Thu Jun 15 2023 Python Maint - 1.5.29-6 +- Rebuilt for Python 3.12 + +* Fri Jan 20 2023 Fedora Release Engineering - 1.5.29-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 1.5.29-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Thu Jun 16 2022 Python Maint - 1.5.29-3 +- Rebuilt for Python 3.11 + +* Fri Jan 21 2022 Fedora Release Engineering - 1.5.29-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Mon Aug 09 2021 Joel Capitao - 1.5.29-1 +- Update to 1.5.29. + +* Fri Jul 23 2021 Fedora Release Engineering - 1.5.19-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri Jun 04 2021 Python Maint - 1.5.19-3 +- Rebuilt for Python 3.10 + +* Wed Jan 27 2021 Fedora Release Engineering - 1.5.19-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Nov 06 2020 Joel Capitao - 1.5.19-1 - Updated to 1.5.19.