From 4e26ca1a45f59b3d0d2f792508322860a4356137 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Jun 18 2015 20:25:14 +0000 Subject: [PATCH 1/17] - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild --- diff --git a/python-pyghmi.spec b/python-pyghmi.spec index 743ca40..7390b89 100644 --- a/python-pyghmi.spec +++ b/python-pyghmi.spec @@ -2,7 +2,7 @@ Name: python-%{sname} Version: 0.5.9 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Python General Hardware Management Initiative (IPMI and others) License: ASL 2.0 @@ -45,6 +45,9 @@ rm -rf {test-,}requirements.txt %changelog +* Thu Jun 18 2015 Fedora Release Engineering - 0.5.9-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + * Sat Jun 07 2014 Fedora Release Engineering - 0.5.9-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild From 8c7132570e83df675dea5c920c09c5698542a5aa Mon Sep 17 00:00:00 2001 From: Lucas Alvares Gomes Date: Sep 25 2015 13:44:33 +0000 Subject: [PATCH 2/17] New upstream release: pyghmi 0.8.0 --- diff --git a/.gitignore b/.gitignore index 5289b12..4930c44 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /pyghmi-0.5.9.tar.gz +/pyghmi-0.8.0.tar.gz diff --git a/python-pyghmi.spec b/python-pyghmi.spec index 7390b89..64bfebe 100644 --- a/python-pyghmi.spec +++ b/python-pyghmi.spec @@ -1,8 +1,8 @@ %global sname pyghmi Name: python-%{sname} -Version: 0.5.9 -Release: 3%{?dist} +Version: 0.8.0 +Release: 1%{?dist} Summary: Python General Hardware Management Initiative (IPMI and others) License: ASL 2.0 @@ -42,9 +42,15 @@ rm -rf {test-,}requirements.txt %doc README LICENSE %{python2_sitelib}/pyghmi %{python2_sitelib}/*.egg-info +%{_bindir}/pyghmicons +%{_bindir}/pyghmiutil +%{_bindir}/virshbmc %changelog +* Fri Sep 25 2015 Lucas Alvares Gomes - 0.8.0-1 +- Rebased to 0.8.0 + * Thu Jun 18 2015 Fedora Release Engineering - 0.5.9-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild diff --git a/sources b/sources index c56f3b9..5405e63 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -7b9e2df6a0dc7737da2cd80605764961 pyghmi-0.5.9.tar.gz +7a21a83042270916b340f9fd450b2f39 pyghmi-0.8.0.tar.gz From a512e9cc358e8a7c20554e0420bc3595fc477b64 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Feb 04 2016 20:36:32 +0000 Subject: [PATCH 3/17] - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild --- diff --git a/python-pyghmi.spec b/python-pyghmi.spec index 64bfebe..34f4353 100644 --- a/python-pyghmi.spec +++ b/python-pyghmi.spec @@ -2,7 +2,7 @@ Name: python-%{sname} Version: 0.8.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Python General Hardware Management Initiative (IPMI and others) License: ASL 2.0 @@ -48,6 +48,9 @@ rm -rf {test-,}requirements.txt %changelog +* Thu Feb 04 2016 Fedora Release Engineering - 0.8.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + * Fri Sep 25 2015 Lucas Alvares Gomes - 0.8.0-1 - Rebased to 0.8.0 From 18c6f57794774c62a6f35ec72929231a37241640 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Jul 19 2016 11:09:37 +0000 Subject: [PATCH 4/17] - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages --- diff --git a/python-pyghmi.spec b/python-pyghmi.spec index 34f4353..e16ffdb 100644 --- a/python-pyghmi.spec +++ b/python-pyghmi.spec @@ -2,7 +2,7 @@ Name: python-%{sname} Version: 0.8.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Python General Hardware Management Initiative (IPMI and others) License: ASL 2.0 @@ -48,6 +48,9 @@ rm -rf {test-,}requirements.txt %changelog +* Tue Jul 19 2016 Fedora Release Engineering - 0.8.0-3 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + * Thu Feb 04 2016 Fedora Release Engineering - 0.8.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild From 787fdf1052c4a025dd7233e7072195ff22a1792b Mon Sep 17 00:00:00 2001 From: Lucas Alvares Gomes Date: Nov 07 2016 17:16:57 +0000 Subject: [PATCH 5/17] New upstream release: pyghmi 1.0.12 --- diff --git a/.gitignore b/.gitignore index 4930c44..90df379 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /pyghmi-0.5.9.tar.gz /pyghmi-0.8.0.tar.gz +/pyghmi-1.0.12.tar.gz diff --git a/python-pyghmi.spec b/python-pyghmi.spec index e16ffdb..045ef4d 100644 --- a/python-pyghmi.spec +++ b/python-pyghmi.spec @@ -1,13 +1,13 @@ %global sname pyghmi Name: python-%{sname} -Version: 0.8.0 -Release: 3%{?dist} +Version: 1.0.12 +Release: 1%{?dist} Summary: Python General Hardware Management Initiative (IPMI and others) License: ASL 2.0 URL: https://github.com/stackforge/pyghmi -Source0: http://pypi.python.org/packages/source/p/%{sname}/%{sname}-%{version}.tar.gz +Source0: http://tarballs.openstack.org/%{sname}/%{sname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel @@ -48,6 +48,9 @@ rm -rf {test-,}requirements.txt %changelog +* Mon Nov 07 2016 Lucas Alvares Gomes - 1.0.12-1 +- Rebased to 1.0.12 + * Tue Jul 19 2016 Fedora Release Engineering - 0.8.0-3 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages diff --git a/sources b/sources index 5405e63..dd995e3 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -7a21a83042270916b340f9fd450b2f39 pyghmi-0.8.0.tar.gz +38c309f40c6dc8dae9fc68390ad5d9a9 pyghmi-1.0.12.tar.gz From 4c119e294a6ff1ef53369371a1958bf1a0cf6093 Mon Sep 17 00:00:00 2001 From: Haikel Guemar Date: Nov 07 2016 17:31:50 +0000 Subject: [PATCH 6/17] Add missing BR: python-setuptools --- diff --git a/python-pyghmi.spec b/python-pyghmi.spec index 045ef4d..479e05a 100644 --- a/python-pyghmi.spec +++ b/python-pyghmi.spec @@ -11,6 +11,7 @@ Source0: http://tarballs.openstack.org/%{sname}/%{sname}-%{version}.tar.g BuildArch: noarch BuildRequires: python2-devel +BuildRequires: python-setuptools BuildRequires: python-pbr Requires: python-crypto >= 2.6 From 47ff9fb2a106e7d388c5a839f52d2362a0882677 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Feb 11 2017 10:05:51 +0000 Subject: [PATCH 7/17] - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild --- diff --git a/python-pyghmi.spec b/python-pyghmi.spec index 479e05a..72c327b 100644 --- a/python-pyghmi.spec +++ b/python-pyghmi.spec @@ -2,7 +2,7 @@ Name: python-%{sname} Version: 1.0.12 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Python General Hardware Management Initiative (IPMI and others) License: ASL 2.0 @@ -49,6 +49,9 @@ rm -rf {test-,}requirements.txt %changelog +* Sat Feb 11 2017 Fedora Release Engineering - 1.0.12-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + * Mon Nov 07 2016 Lucas Alvares Gomes - 1.0.12-1 - Rebased to 1.0.12 From 2ff89d7f97462046668252d296dc17ee06f701a0 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Jul 27 2017 11:26:40 +0000 Subject: [PATCH 8/17] - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild --- diff --git a/python-pyghmi.spec b/python-pyghmi.spec index 72c327b..840a50b 100644 --- a/python-pyghmi.spec +++ b/python-pyghmi.spec @@ -2,7 +2,7 @@ Name: python-%{sname} Version: 1.0.12 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Python General Hardware Management Initiative (IPMI and others) License: ASL 2.0 @@ -49,6 +49,9 @@ rm -rf {test-,}requirements.txt %changelog +* Thu Jul 27 2017 Fedora Release Engineering - 1.0.12-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + * Sat Feb 11 2017 Fedora Release Engineering - 1.0.12-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild From 2ca0bc78e7fd801ac03703ea038290db386b9dc9 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Aug 19 2017 13:42:13 +0000 Subject: [PATCH 9/17] Python 2 binary package renamed to python2-pyghmi --- diff --git a/python-pyghmi.spec b/python-pyghmi.spec index 840a50b..7628cca 100644 --- a/python-pyghmi.spec +++ b/python-pyghmi.spec @@ -2,7 +2,7 @@ Name: python-%{sname} Version: 1.0.12 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Python General Hardware Management Initiative (IPMI and others) License: ASL 2.0 @@ -14,11 +14,18 @@ BuildRequires: python2-devel BuildRequires: python-setuptools BuildRequires: python-pbr -Requires: python-crypto >= 2.6 +%global _description\ +This is a pure python implementation of the IPMI protocol.\ + -%description -This is a pure python implementation of the IPMI protocol. +%description %_description +%package -n python2-%{sname} +Summary: %summary +Requires: python-crypto >= 2.6 +%{?python_provide:%python_provide python2-%{sname}} + +%description -n python2-%{sname} %_description %prep %setup -q -n %{sname}-%{version} @@ -39,7 +46,7 @@ rm -rf {test-,}requirements.txt %{__python2} setup.py install --skip-build --root %{buildroot} -%files +%files -n python2-%{sname} %doc README LICENSE %{python2_sitelib}/pyghmi %{python2_sitelib}/*.egg-info @@ -49,6 +56,10 @@ rm -rf {test-,}requirements.txt %changelog +* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 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 - 1.0.12-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild From f94a375028a294fcb76a7454fefee78910e42936 Mon Sep 17 00:00:00 2001 From: Haikel Guemar Date: Oct 05 2017 19:03:09 +0000 Subject: [PATCH 10/17] Upstream 1.0.22 --- diff --git a/python-pyghmi.spec b/python-pyghmi.spec index 7628cca..37ed790 100644 --- a/python-pyghmi.spec +++ b/python-pyghmi.spec @@ -1,8 +1,8 @@ %global sname pyghmi Name: python-%{sname} -Version: 1.0.12 -Release: 4%{?dist} +Version: 1.0.22 +Release: 1%{?dist} Summary: Python General Hardware Management Initiative (IPMI and others) License: ASL 2.0 @@ -56,6 +56,9 @@ rm -rf {test-,}requirements.txt %changelog +* Thu Oct 5 2017 Haïkel Guémar - 1.0.22-1 +- Upstream 1.0.22 + * Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 1.0.12-4 - Python 2 binary package renamed to python2-pyghmi See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 From d3651a2104e6e8673bd257d3c9d65156fb779c96 Mon Sep 17 00:00:00 2001 From: Haikel Guemar Date: Oct 05 2017 19:11:49 +0000 Subject: [PATCH 11/17] Upload 1.0.22 sources --- diff --git a/.gitignore b/.gitignore index 90df379..d708040 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +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 diff --git a/sources b/sources index dd995e3..c6f49db 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -38c309f40c6dc8dae9fc68390ad5d9a9 pyghmi-1.0.12.tar.gz +SHA512 (pyghmi-1.0.22.tar.gz) = 9e3bc6b5f33d5496d7e58d2ea558d20d45a7690d493f2d1ad56fdd5570279a38e8934d8425c3d3207d8001da85a9a0b1319463b802fa9f121db7448aa919bddc From a3f7644c4563f5d6f6f07632e86458e56d0f4257 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Feb 09 2018 10:04:34 +0000 Subject: [PATCH 12/17] - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- diff --git a/python-pyghmi.spec b/python-pyghmi.spec index 37ed790..624adbb 100644 --- a/python-pyghmi.spec +++ b/python-pyghmi.spec @@ -2,7 +2,7 @@ Name: python-%{sname} Version: 1.0.22 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Python General Hardware Management Initiative (IPMI and others) License: ASL 2.0 @@ -56,6 +56,9 @@ rm -rf {test-,}requirements.txt %changelog +* Fri Feb 09 2018 Fedora Release Engineering - 1.0.22-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + * Thu Oct 5 2017 Haïkel Guémar - 1.0.22-1 - Upstream 1.0.22 From c28f53527ac48e949971da2e18b414f83cf32638 Mon Sep 17 00:00:00 2001 From: Iryna Shcherbina Date: Feb 09 2018 13:45:21 +0000 Subject: [PATCH 13/17] Update Python 2 dependency declarations to new packaging standards --- diff --git a/python-pyghmi.spec b/python-pyghmi.spec index 624adbb..9ef8580 100644 --- a/python-pyghmi.spec +++ b/python-pyghmi.spec @@ -2,7 +2,7 @@ Name: python-%{sname} Version: 1.0.22 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Python General Hardware Management Initiative (IPMI and others) License: ASL 2.0 @@ -11,8 +11,8 @@ Source0: http://tarballs.openstack.org/%{sname}/%{sname}-%{version}.tar.g BuildArch: noarch BuildRequires: python2-devel -BuildRequires: python-setuptools -BuildRequires: python-pbr +BuildRequires: python2-setuptools +BuildRequires: python2-pbr %global _description\ This is a pure python implementation of the IPMI protocol.\ @@ -22,7 +22,7 @@ This is a pure python implementation of the IPMI protocol.\ %package -n python2-%{sname} Summary: %summary -Requires: python-crypto >= 2.6 +Requires: python2-crypto >= 2.6 %{?python_provide:%python_provide python2-%{sname}} %description -n python2-%{sname} %_description @@ -56,6 +56,10 @@ rm -rf {test-,}requirements.txt %changelog +* Fri Feb 09 2018 Iryna Shcherbina - 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 - 1.0.22-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild From f0effa0c0fc4578986e3374934a94306ed825ebe Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Jul 14 2018 01:35:21 +0000 Subject: [PATCH 14/17] - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- diff --git a/python-pyghmi.spec b/python-pyghmi.spec index 9ef8580..81f01d8 100644 --- a/python-pyghmi.spec +++ b/python-pyghmi.spec @@ -2,7 +2,7 @@ Name: python-%{sname} Version: 1.0.22 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Python General Hardware Management Initiative (IPMI and others) License: ASL 2.0 @@ -56,6 +56,9 @@ rm -rf {test-,}requirements.txt %changelog +* Sat Jul 14 2018 Fedora Release Engineering - 1.0.22-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + * Fri Feb 09 2018 Iryna Shcherbina - 1.0.22-3 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) From 7f209907ab4862c708676fb8b80a07534184df4f Mon Sep 17 00:00:00 2001 From: Xavier Bachelot Date: Oct 21 2019 12:53:39 +0000 Subject: [PATCH 15/17] Update epel7 branch to latest 1.0.x release Also: - Add Python3 build - Cleanup spec --- diff --git a/python-pyghmi.spec b/python-pyghmi.spec index 81f01d8..0a88a1f 100644 --- a/python-pyghmi.spec +++ b/python-pyghmi.spec @@ -1,31 +1,79 @@ +%global with_python3 1 %global sname pyghmi +%global common_summary Python General Hardware Management Initiative (IPMI and others) -Name: python-%{sname} -Version: 1.0.22 -Release: 4%{?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 +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: python2-setuptools BuildRequires: python2-pbr +BuildRequires: python2-crypto >= 2.6 -%global _description\ -This is a pure python implementation of the IPMI protocol.\ +Requires: python2-crypto >= 2.6 +%description -n python2-%{sname} +%{common_desc} -%description %_description +%package -n python2-%{sname}-tests +Summary: %{common_desc_tests} +Requires: python2-%{sname} = %{version}-%{release} -%package -n python2-%{sname} -Summary: %summary -Requires: python2-crypto >= 2.6 -%{?python_provide:%python_provide python2-%{sname}} +%description -n python2-%{sname}-tests +%{common_desc_tests} + +%if 0%{?with_python3} +%package -n python3-%{sname} +Summary: %{common_summary} +%{?python_provide:%python_provide python3-%{sname}} -%description -n python2-%{sname} %_description +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python36-pbr +BuildRequires: python36-crypto >= 2.6 + +Requires: python36-crypto >= 2.6 + +%description -n python3-%{sname} +%{common_desc} + +%package -n python3-%{sname}-tests +Summary: %{common_desc_tests} +Requires: python3-%{sname} = %{version}-%{release} + +%description -n python3-%{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} @@ -39,23 +87,76 @@ rm -rf {test-,}requirements.txt %build -%{__python2} setup.py build +%if 0%{?with_python3} +%py3_build +%endif # with_python3 +%py2_build -%install -%{__python2} setup.py install --skip-build --root %{buildroot} +# generate html docs +%{__python2} setup.py build_sphinx -b 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 +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 python3-%{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 python3-%{sname}-tests +%license LICENSE +%{python3_sitelib}/%{sname}/tests +%endif # with_python3 %files -n python2-%{sname} -%doc README LICENSE -%{python2_sitelib}/pyghmi -%{python2_sitelib}/*.egg-info +%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 - 1.0.44-1 +- Update to 1.0.44. +- Add python3 build. +- Spec clean up. + * Sat Jul 14 2018 Fedora Release Engineering - 1.0.22-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild From 3ded426eb1d5cc18a8576fa938053f4348e9f5bc Mon Sep 17 00:00:00 2001 From: Xavier Bachelot Date: Oct 21 2019 13:13:40 +0000 Subject: [PATCH 16/17] Fix perms on README.md --- diff --git a/python-pyghmi.spec b/python-pyghmi.spec index 0a88a1f..5e57a31 100644 --- a/python-pyghmi.spec +++ b/python-pyghmi.spec @@ -85,6 +85,8 @@ rm -rf %{sname}.egg-info # to distutils requires_dist config rm -rf {test-,}requirements.txt +# Fix perms +chmod a-x README.md %build %if 0%{?with_python3} From c2a42ecad829820cddaf47d218bdd8485455f014 Mon Sep 17 00:00:00 2001 From: Xavier Bachelot Date: Nov 19 2019 10:29:53 +0000 Subject: [PATCH 17/17] Use %{python3_pkgversion} instead of python3 --- diff --git a/python-pyghmi.spec b/python-pyghmi.spec index 5e57a31..a88f91c 100644 --- a/python-pyghmi.spec +++ b/python-pyghmi.spec @@ -44,25 +44,25 @@ Requires: python2-%{sname} = %{version}-%{release} %{common_desc_tests} %if 0%{?with_python3} -%package -n python3-%{sname} +%package -n python%{python3_pkgversion}-%{sname} Summary: %{common_summary} -%{?python_provide:%python_provide python3-%{sname}} +%{?python_provide:%python_provide python%{python3_pkgversion}-%{sname}} -BuildRequires: python3-devel -BuildRequires: python3-setuptools -BuildRequires: python36-pbr -BuildRequires: python36-crypto >= 2.6 +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-setuptools +BuildRequires: python%{python3_pkgversion}-pbr +BuildRequires: python%{python3_pkgversion}-crypto >= 2.6 -Requires: python36-crypto >= 2.6 +Requires: python%{python3_pkgversion}-crypto >= 2.6 -%description -n python3-%{sname} +%description -n python%{python3_pkgversion}-%{sname} %{common_desc} -%package -n python3-%{sname}-tests +%package -n python%{python3_pkgversion}-%{sname}-tests Summary: %{common_desc_tests} -Requires: python3-%{sname} = %{version}-%{release} +Requires: python%{python3_pkgversion}-%{sname} = %{version}-%{release} -%description -n python3-%{sname}-tests +%description -n python%{python3_pkgversion}-%{sname}-tests %{common_desc_tests} %endif # with_python3 @@ -119,7 +119,7 @@ popd %py2_install %if 0%{?with_python3} -%files -n python3-%{sname} +%files -n python%{python3_pkgversion}-%{sname} %license LICENSE %{_bindir}/pyghmicons-%{python3_version} %{_bindir}/pyghmicons-3 @@ -131,7 +131,7 @@ popd %{python3_sitelib}/%{sname}-*.egg-info %exclude %{python3_sitelib}/%{sname}/tests -%files -n python3-%{sname}-tests +%files -n python%{python3_pkgversion}-%{sname}-tests %license LICENSE %{python3_sitelib}/%{sname}/tests %endif # with_python3