Blame SPECS/python3.11-semantic_version.spec

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