From fd9b3e8491c58f1fd1f1755313d18828c4358707 Mon Sep 17 00:00:00 2001 From: Yatin Karel Date: Sep 15 2021 12:45:39 +0000 Subject: Import python-semantic_version-2.8.4-7.el9 in CloudSIG xena --- diff --git a/.python-semantic_version.metadata b/.python-semantic_version.metadata index 39b7fa4..0080130 100644 --- a/.python-semantic_version.metadata +++ b/.python-semantic_version.metadata @@ -1 +1 @@ -6c7ee39e97a5ef1f61bc2be08e41ae3e80856908 SOURCES/semantic_version-2.6.0.tar.gz +a653abc899b5edf56d5d535293039c3854b91b99 SOURCES/semantic_version-2.8.4.tar.gz diff --git a/SPECS/python-semantic_version.spec b/SPECS/python-semantic_version.spec index 09f13a1..c99c723 100644 --- a/SPECS/python-semantic_version.spec +++ b/SPECS/python-semantic_version.spec @@ -1,20 +1,8 @@ %global pypi_name semantic_version -%if 0%{?rhel} && 0%{?rhel} <= 7 -%bcond_with python3 -%else -%bcond_without python3 -%endif - -%if 0%{?rhel} > 7 -# Disable python2 build by default -%bcond_with python2 -%else -%bcond_without python2 -%endif Name: python-%{pypi_name} -Version: 2.6.0 -Release: 5%{?dist} +Version: 2.8.4 +Release: 7%{?dist} Summary: Library implementing the 'SemVer' scheme License: BSD @@ -22,33 +10,12 @@ URL: https://github.com/rbarrois/python-semanticversion Source0: %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch -Patch1: 0001-Fix-django-tests.patch - %global _description \ This small python library provides a few tools to handle semantic versioning\ in Python. %description %{_description} -%if %{with python2} -%package -n python2-%{pypi_name} -Summary: %{summary} -BuildRequires: python2-devel -%if 0%{?rhel} && 0%{?rhel} <= 7 -BuildRequires: python-setuptools -%else -BuildRequires: python2-setuptools -%endif -#BuildRequires: python2-django -%{?python_provide:%python_provide python2-%{pypi_name}} -Provides: python-semantic-version - -%description -n python2-%{pypi_name} %{_description} - -Python 2 version. -%endif # with python2 - -%if 0%{?with_python3} %package -n python3-%{pypi_name} Summary: %{summary} BuildRequires: python3-devel @@ -59,17 +26,17 @@ BuildRequires: python3-setuptools %description -n python3-%{pypi_name} %{_description} Python 3 version -%endif %package doc Summary: Documentation for python-%{pypi_name} BuildRequires: python3-sphinx +BuildRequires: python3-sphinx_rtd_theme %description doc %{summary}. %prep -%autosetup -p1 -n python-semanticversion-%{version} +%autosetup -n semantic_version-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info # documentation builds due to broken symlink @@ -77,62 +44,84 @@ rm -rf %{pypi_name}.egg-info rm docs/credits.rst %build -%if %{with python2} -%py2_build -%endif # with python2 -%if %{with python3} %py3_build -%endif # generate html docs -sphinx-build-3 docs html +sphinx-build-%{python3_version} docs html # remove the sphinx-build leftovers rm -rf html/.{doctrees,buildinfo} %install -%if %{with python2} -%py2_install -%endif # with python2 -%if %{with python3} %py3_install -%endif %check -%if %{with python2} -%{__python2} setup.py test -%endif # with python2 -%if %{with python3} -%{__python3} setup.py test -%endif - -%if %{with python2} -%files -n python2-%{pypi_name} -%license LICENSE -%doc README.rst ChangeLog -%{python2_sitelib}/%{pypi_name}/ -%{python2_sitelib}/%{pypi_name}-*.egg-info/ -%endif # with python2 +# Seems like it's just stuck in koji +#{__python3} setup.py test -%if %{with python3} %files -n python3-%{pypi_name} %license LICENSE %doc README.rst ChangeLog %{python3_sitelib}/%{pypi_name}/ %{python3_sitelib}/%{pypi_name}-*.egg-info/ -%endif %files doc %license LICENSE %doc html %changelog -* Wed Jul 18 2018 Brian C. Lane - 2.6.0-5 -- Enable tests -- Fix django test, it should be skipped when django is not installed - -* Wed Jul 18 2018 Charalampos Stratakis - 2.6.0-4 -- Conditionalize the python2 subpackage -- Use python3-sphinx for docs -- Remove django dependency +* Wed Jun 02 2021 Python Maint - 2.8.4-7 +- Rebuilt for Python 3.10 + +* Wed Jan 27 2021 Fedora Release Engineering - 2.8.4-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 2.8.4-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sun May 24 2020 Miro Hrončok - 2.8.4-4 +- Rebuilt for Python 3.9 + +* Thu Feb 20 2020 Javier Peña - 2.8.4-3 +- Add sphinx_rtd_theme as a buld dependency + +* Thu Feb 20 2020 Javier Peña - 2.8.4-2 +- Fix name in autosetup + +* Thu Feb 20 2020 Javier Peña - 2.8.4-1 +- Update to latest upstream version + +* Thu Jan 30 2020 Fedora Release Engineering - 2.6.0-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Oct 03 2019 Miro Hrončok - 2.6.0-13 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Sat Aug 17 2019 Miro Hrončok - 2.6.0-12 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 2.6.0-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Feb 02 2019 Fedora Release Engineering - 2.6.0-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Thu Jan 17 2019 Igor Gnatenko - 2.6.0-9 +- Drop python2 subpackage + +* Tue Jan 08 2019 Petr Viktorin - 2.6.0-8 +- Remove Fedora build dependency on a compatibility build of Django +- Use python3-sphinx on Fedora + +* Sat Jul 14 2018 Fedora Release Engineering - 2.6.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Mon Jun 18 2018 Miro Hrončok - 2.6.0-6 +- Rebuilt for Python 3.7 + +* Tue May 29 2018 Javier Peña - 2.6.0-5 +- Fix build due to Django dependency (bz#1556267) + +* Fri Feb 09 2018 Fedora Release Engineering - 2.6.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 2.6.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild