From 2d8c8228c146579fdc4f553bdb7286a814b37670 Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Wed, 10 Jan 2024 03:49:32 +0300 Subject: [PATCH] import python-multilib-1.2-11.el9 --- .gitignore | 1 + .python-multilib.metadata | 1 + SPECS/python-multilib.spec | 165 +++++++++++++++++++++++++++++++++++++ 3 files changed, 167 insertions(+) create mode 100644 .gitignore create mode 100644 .python-multilib.metadata create mode 100644 SPECS/python-multilib.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0078676 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/python-multilib-1.2.tar.bz2 diff --git a/.python-multilib.metadata b/.python-multilib.metadata new file mode 100644 index 0000000..405d9b7 --- /dev/null +++ b/.python-multilib.metadata @@ -0,0 +1 @@ +45ecc17c1a6d16e6d82162ea65c1e1a885f805de SOURCES/python-multilib-1.2.tar.bz2 diff --git a/SPECS/python-multilib.spec b/SPECS/python-multilib.spec new file mode 100644 index 0000000..0617893 --- /dev/null +++ b/SPECS/python-multilib.spec @@ -0,0 +1,165 @@ +%if 0%{?rhel} && 0%{?rhel} < 9 +%bcond_without python2 +%else +%bcond_with python2 +%endif + +Name: python-multilib +Version: 1.2 +Release: 11%{?dist} +Summary: A module for determining if a package is multilib or not +License: GPLv2 +URL: https://pagure.io/releng/python-multilib +Source0: https://releases.pagure.org/releng/python-multilib/%{name}-%{version}.tar.bz2 + +BuildArch: noarch + + +%global _description \ +A Python module that supports several multilib "methods" useful for \ +determining if a 32-bit package should be included with its 64-bit analogue \ +in a compose. + +%description %{_description} + +%package conf +Summary: Configuration files for %{name} + +%description conf +This package provides the configuration files for %{name}. + +%if 0%{?with_python2} +%package -n python2-multilib +Summary: %{summary} +%{?python_provide:%python_provide python2-multilib} +BuildRequires: python2-devel +%if 0%{?fedora} || 0%{?rhel} >= 8 +BuildRequires: python2-setuptools +BuildRequires: python2-six +Requires: python2-six +%else +BuildRequires: python-setuptools +BuildRequires: python-six +Requires: python-six +%endif +Requires: python2 +Requires: %{name}-conf = %{version}-%{release} + +%description -n python2-multilib %{_description} +%endif + +%package -n python%{python3_pkgversion}-multilib +Summary: %{summary} +%{?python_provide:%python_provide python%{python3_pkgversion}-multilib} +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-setuptools +BuildRequires: python%{python3_pkgversion}-six +Requires: python%{python3_pkgversion}-six +Requires: python%{python3_pkgversion} +Requires: %{name}-conf = %{version}-%{release} + +%description -n python%{python3_pkgversion}-multilib %{_description} + + +%prep +%setup -q + +%build +%if 0%{?with_python2} +%py2_build +%endif +%py3_build + +%install +%if 0%{?with_python2} +%py2_install +%endif +%py3_install + +%check +# testing requires complete composes available locally, which no buildsystem +# would ever want included in a build root +#{__python2} setup.py test +#{__python3} setup.py test + +%files conf +%config(noreplace) %{_sysconfdir}/multilib.conf + +%if 0%{?with_python2} +%files -n python2-multilib +%license LICENSE +%doc README.md +%{python2_sitelib}/* +%endif + +%files -n python%{python3_pkgversion}-multilib +%license LICENSE +%doc README.md +%{python3_sitelib}/* + + +%changelog +* Wed Jan 10 2024 MSVSphere Packaging Team - 1.2-11 +- Rebuilt for MSVSphere 9.3 + +* Tue Sep 27 2022 Lubomír Sedlář - 1.2-11 +- Disable python2 package for EPEL 9 + +* Tue Jun 11 2019 Miro Hrončok - 1.2-10 +- Disable python2 package again (rhbz#1687417) + +* Wed Mar 27 2019 Lubomír Sedlář - 1.2-9 +- Enable python2- subpackage again (rhbz#1692588) + +* Mon Mar 11 2019 Lubomír Sedlář - 1.2-8 +- Disable python2 package on F >= 31 + +* Sat Feb 02 2019 Fedora Release Engineering - 1.2-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Jul 14 2018 Fedora Release Engineering - 1.2-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Mon Jun 18 2018 Miro Hrončok - 1.2-5 +- Rebuilt for Python 3.7 + +* Fri Feb 09 2018 Fedora Release Engineering - 1.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 1.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Thu Apr 20 2017 Lubomír Sedlář - 1.2-2 +- Update requires for epel builds + +* Thu Mar 02 2017 Lubomír Sedlář - 1.2-1 +- New upstream version with support for DNF package objects +- Updated URL to point to new upstream on Pagure.io + +* Sat Feb 11 2017 Fedora Release Engineering - 1.1-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Dec 19 2016 Miro Hrončok - 1.1-7 +- Rebuild for Python 3.6 + +* Tue Jul 19 2016 Fedora Release Engineering - 1.1-6 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Wed Jun 29 2016 Jay Greguske - 1.1-5 +- Package up for Fedora rawhide + +* Sun May 01 2016 Neal Gompa - 1.1-3 +- Port to Python 3 and enable its subpackage +- Split config file to its own subpackage + +* Thu Apr 07 2016 Dennis Gilmore - 1.1-2 +- setup to make python3 down the road. +- spec and srpm named python-multilib +- fix license + +* Tue Jul 21 2009 Jay Greguske - 1.1-1 +- consider dependencies in multilib testing +- fix a couple import errors + +* Tue Jul 21 2009 Jay Greguske - 1.0-1 +- Initial RPM release