Blame SPECS/python3.11-semantic_version.spec

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