Blame SPECS/python3.11-semantic_version.spec

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