|
|
f2d778 |
%global __python3 /usr/bin/python3.11
|
|
|
f2d778 |
%global python3_pkgversion 3.11
|
|
|
f2d778 |
|
|
|
f2d778 |
%global pypi_name semantic_version
|
|
|
f2d778 |
|
|
|
f2d778 |
Name: python%{python3_pkgversion}-%{pypi_name}
|
|
|
f2d778 |
Version: 2.8.4
|
|
|
f2d778 |
Release: 1%{?dist}
|
|
|
f2d778 |
Summary: Library implementing the 'SemVer' scheme
|
|
|
f2d778 |
|
|
|
f2d778 |
License: BSD
|
|
|
f2d778 |
URL: https://github.com/rbarrois/python-semanticversion
|
|
|
f2d778 |
Source0: %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
|
|
|
f2d778 |
BuildArch: noarch
|
|
|
f2d778 |
|
|
|
f2d778 |
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
f2d778 |
BuildRequires: python%{python3_pkgversion}-rpm-macros
|
|
|
f2d778 |
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
f2d778 |
|
|
|
f2d778 |
%global _description \
|
|
|
f2d778 |
This small python library provides a few tools to handle semantic versioning\
|
|
|
f2d778 |
in Python.
|
|
|
f2d778 |
|
|
|
f2d778 |
%description %{_description}
|
|
|
f2d778 |
|
|
|
f2d778 |
%prep
|
|
|
f2d778 |
%autosetup -n semantic_version-%{version}
|
|
|
f2d778 |
# Remove bundled egg-info
|
|
|
f2d778 |
rm -rf %{pypi_name}.egg-info
|
|
|
f2d778 |
# documentation builds due to broken symlink
|
|
|
f2d778 |
# https://github.com/rbarrois/python-semanticversion/issues/20
|
|
|
f2d778 |
rm docs/credits.rst
|
|
|
f2d778 |
|
|
|
f2d778 |
%build
|
|
|
f2d778 |
%py3_build
|
|
|
f2d778 |
|
|
|
f2d778 |
%install
|
|
|
f2d778 |
%py3_install
|
|
|
f2d778 |
|
|
|
f2d778 |
%check
|
|
|
f2d778 |
# Seems like it's just stuck in koji
|
|
|
f2d778 |
#{__python3} setup.py test
|
|
|
f2d778 |
|
|
|
f2d778 |
%files -n python%{python3_pkgversion}-%{pypi_name}
|
|
|
f2d778 |
%license LICENSE
|
|
|
f2d778 |
%doc README.rst ChangeLog
|
|
|
f2d778 |
%{python3_sitelib}/%{pypi_name}/
|
|
|
f2d778 |
%{python3_sitelib}/%{pypi_name}-*.egg-info/
|
|
|
f2d778 |
|
|
|
f2d778 |
|
|
|
f2d778 |
%changelog
|
|
|
f2d778 |
* Fri Nov 11 2022 Charalampos Stratakis <cstratak@redhat.com> - 2.8.4-1
|
|
|
f2d778 |
- Initial package
|
|
|
f2d778 |
- Fedora contributions by:
|
|
|
f2d778 |
Davide Cavalca <dcavalca@fedoraproject.org>
|
|
|
f2d778 |
Dennis Gilmore <dennis@ausil.us>
|
|
|
f2d778 |
Haikel Guemar <hguemar@fedoraproject.org>
|
|
|
f2d778 |
Igor Gnatenko <ignatenkobrain@fedoraproject.org>
|
|
|
f2d778 |
Javier Pena <jpena@redhat.com>
|
|
|
f2d778 |
Miro HronĨok <miro@hroncok.cz>
|
|
|
f2d778 |
Petr Viktorin <pviktori@redhat.com>
|