import CS python3.12-semantic_version-2.10.0-2.el8

This commit is contained in:
eabdullin 2024-04-01 08:03:47 +00:00
commit 38cf553cbf
3 changed files with 66 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
SOURCES/python-semanticversion-2.10.0.tar.gz

View File

@ -0,0 +1 @@
ab1c55dead22473b0beaa76d3eb790f1abdb4381 SOURCES/python-semanticversion-2.10.0.tar.gz

View File

@ -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 <mhroncok@redhat.com> - 2.10.0-2
- Rebuilt for timestamp .pyc invalidation mode
* Thu Oct 19 2023 Tomáš Hrnčiar <thrnciar@redhat.com> - 2.10.0-2
- Initial package
- Fedora contributions by:
Davide Cavalca <dcavalca@fedoraproject.org>
Dennis Gilmore <dennis@ausil.us>
Haikel Guemar <hguemar@fedoraproject.org>
Igor Gnatenko <ignatenkobrain@fedoraproject.org>
Javier Pena <jpena@redhat.com>
Miro Hrončok <miro@hroncok.cz>
Petr Viktorin <pviktori@redhat.com>