From 38cf553cbfd8e76a9a2d63621abc17a499fe80f8 Mon Sep 17 00:00:00 2001 From: eabdullin Date: Mon, 1 Apr 2024 08:03:47 +0000 Subject: [PATCH] import CS python3.12-semantic_version-2.10.0-2.el8 --- .gitignore | 1 + .python3.12-semantic_version.metadata | 1 + SPECS/python3.12-semantic_version.spec | 64 ++++++++++++++++++++++++++ 3 files changed, 66 insertions(+) create mode 100644 .gitignore create mode 100644 .python3.12-semantic_version.metadata create mode 100644 SPECS/python3.12-semantic_version.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e07f163 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/python-semanticversion-2.10.0.tar.gz diff --git a/.python3.12-semantic_version.metadata b/.python3.12-semantic_version.metadata new file mode 100644 index 0000000..73e6bc5 --- /dev/null +++ b/.python3.12-semantic_version.metadata @@ -0,0 +1 @@ +ab1c55dead22473b0beaa76d3eb790f1abdb4381 SOURCES/python-semanticversion-2.10.0.tar.gz diff --git a/SPECS/python3.12-semantic_version.spec b/SPECS/python3.12-semantic_version.spec new file mode 100644 index 0000000..7e972e8 --- /dev/null +++ b/SPECS/python3.12-semantic_version.spec @@ -0,0 +1,64 @@ +%global __python3 /usr/bin/python3.12 +%global python3_pkgversion 3.12 + +%global pypi_name semantic_version +%global srcname python-semanticversion + +Name: python%{python3_pkgversion}-%{pypi_name} +Version: 2.10.0 +Release: 2%{?dist} +Summary: Library implementing the 'SemVer' scheme + +License: BSD +URL: https://github.com/rbarrois/python-semanticversion +Source: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz + +BuildArch: noarch +BuildRequires: make +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-rpm-macros +BuildRequires: python%{python3_pkgversion}-setuptools +BuildRequires: python%{python3_pkgversion}-pytest +BuildRequires: sed + +%global _description %{expand: +This small python library provides a few tools to handle semantic versioning in +Python.} + +%description %{_description} + +%prep +%autosetup -p1 -n %{srcname}-%{version} + +# Drop unnecessary dependency +sed -i '/zest\.releaser\[recommended\]/d' setup.cfg + +%build +%py3_build + +%install +%py3_install + +%check +%pytest + +%files -n python%{python3_pkgversion}-%{pypi_name} +%license LICENSE +%doc README.rst ChangeLog CREDITS +%{python3_sitelib}/%{pypi_name}/ +%{python3_sitelib}/%{pypi_name}-*.egg-info/ + +%changelog +* Tue Jan 23 2024 Miro Hrončok - 2.10.0-2 +- Rebuilt for timestamp .pyc invalidation mode + +* Thu Oct 19 2023 Tomáš Hrnčiar - 2.10.0-2 +- Initial package +- Fedora contributions by: + Davide Cavalca + Dennis Gilmore + Haikel Guemar + Igor Gnatenko + Javier Pena + Miro Hrončok + Petr Viktorin