From 43656b1999084d18f09912a6ba3408f7b662a74e Mon Sep 17 00:00:00 2001 From: Kaleb S. KEITHLEY Date: Sep 08 2021 15:29:27 +0000 Subject: first build for c9s --- diff --git a/SPECS/python-argh.spec b/SPECS/python-argh.spec index 1f6be47..2eadac2 100644 --- a/SPECS/python-argh.spec +++ b/SPECS/python-argh.spec @@ -1,16 +1,3 @@ -%if 0%{?fedora} || 0%{?rhel} >= 8 -%bcond_without python3 -%else # 0#{?fedora} || 0#{?rhel} >= 8 -%bcond_with python3 -%endif # 0#{?fedora} || 0#{?rhel} >= 8 - -%if 0%{?rhel} > 7 -# Disable python2 build by default -%bcond_with python2 -%else -%bcond_without python2 -%endif - %global pypi_name argh %global global_sum Unobtrusive argparse wrapper with natural syntax %global global_desc \ @@ -24,12 +11,12 @@ tool; %{name} just makes it easy to use. Name: python-%{pypi_name} Version: 0.26.1 -Release: 8%{?dist} +Release: 21%{?dist} Summary: %{global_sum} License: LGPLv3+ URL: https://pypi.python.org/pypi/%{pypi_name} -Source0: https://files.pythonhosted.org/packages/source/a/%{pypi_name}/%{pypi_name}-%{version}.tar.gz +Source0: %{pypi_source} Source1: https://www.gnu.org/licenses/lgpl-3.0.txt Source2: https://www.gnu.org/licenses/gpl-3.0.txt @@ -37,35 +24,12 @@ Source2: https://www.gnu.org/licenses/gpl-3.0.txt Patch0001: python-argh-0.26.1-fix-testsuite.patch BuildArch: noarch +BuildRequires: glibc-langpack-en %description %{global_desc} -%if %{with python2} -%package -n python2-%{pypi_name} -Summary: %{global_sum} - -BuildRequires: python2-devel -BuildRequires: python2-mock -%if %{with python3} -BuildRequires: python2-pytest -%else # with python3 -BuildRequires: pytest -%endif # with python3 -BuildRequires: python2-setuptools -%if 0%{?rhel} && 0%{?rhel} <= 6 -BuildRequires: python-argparse -Requires: python-argparse -%endif - -%{?python_provide:%python_provide python2-%{pypi_name}} - -%description -n python2-%{pypi_name} -%{global_desc} -%endif # with python2 - -%if %{with python3} %package -n python3-%{pypi_name} Summary: %{global_sum} @@ -78,7 +42,6 @@ BuildRequires: python3-setuptools %description -n python3-%{pypi_name} %{global_desc} -%endif # with python3 %prep @@ -89,54 +52,67 @@ BuildRequires: python3-setuptools %build -%if %{with python2} -%py2_build -%endif # with python2 -%if %{with python3} %py3_build -%endif # with python3 %install -%if %{with python3} %py3_install -%endif # with python3 -%if %{with python2} -%py2_install -%endif # with python2 %check -# tests need UTF-8 encoding -LANG="en_US.UTF-8" -LC_CTYPE="en_US.UTF-8" -export LANG LC_CTYPE -%if %{with python2} -%{__python2} setup.py test -%endif # with python2 -%if %{with python3} %{__python3} setup.py test -%endif # with python3 - -%if %{with python2} -%files -n python2-%{pypi_name} -%doc README.rst -%license COPYING gpl-3.0.txt -%{python2_sitelib}/* -%endif # with python2 -%if %{with python3} %files -n python3-%{pypi_name} %doc README.rst %license COPYING gpl-3.0.txt -%{python3_sitelib}/* -%endif # with python3 +%{python3_sitelib}/argh*/ %changelog -* Fri Jun 08 2018 Charalampos Stratakis - 0.26.1-8 -- Conditionalize the python2 subpackage +* Fri Jul 23 2021 Fedora Release Engineering - 0.26.1-21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri Jun 04 2021 Python Maint - 0.26.1-20 +- Rebuilt for Python 3.10 + +* Wed Jan 27 2021 Fedora Release Engineering - 0.26.1-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 0.26.1-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sun May 24 2020 Miro Hrončok - 0.26.1-17 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 0.26.1-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Oct 03 2019 Miro Hrončok - 0.26.1-15 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Sat Aug 17 2019 Miro Hrončok - 0.26.1-14 +- Rebuilt for Python 3.8 + +* Wed Jul 24 2019 Miro Hrončok - 0.26.1-13 +- Drop python2-argh + +* Sat Feb 02 2019 Fedora Release Engineering - 0.26.1-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sun Nov 18 2018 Zbigniew Jędrzejewski-Szmek - 0.26.1-11 +- Add BR:glibc-langpack-en + See https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot + +* Fri Jul 13 2018 Fedora Release Engineering - 0.26.1-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Mon Jun 18 2018 Miro Hrončok - 0.26.1-9 +- Rebuilt for Python 3.7 + +* Wed Feb 21 2018 Iryna Shcherbina - 0.26.1-8 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Fri Feb 09 2018 Fedora Release Engineering - 0.26.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild