You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
1.9 KiB
68 lines
1.9 KiB
%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 Apr 02 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 2.10.0-2
|
|
- Initial build for MSVSphere 9.3
|
|
|
|
* 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>
|