Blame SPECS/python3.11-semantic_version.spec

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