3752c3d
%global pypi_name pylev
3752c3d
3752c3d
%{?python_enable_dependency_generator}
3752c3d
3752c3d
%global common_description %{expand:
3752c3d
A pure Python Levenshtein implementation that’s not freaking GPL’d.
3752c3d
3752c3d
Based off the Wikipedia code samples at
3752c3d
https://en.wikipedia.org/wiki/Levenshtein_distance.}
3752c3d
3752c3d
Name:           python-%{pypi_name}
3752c3d
Summary:        Liberally licensed, pure Python Levenshtein implementation
3752c3d
Version:        1.3.0
6e18b6a
Release:        9%{?dist}
3752c3d
License:        BSD
3752c3d
3752c3d
URL:            http://github.com/toastdriven/pylev
3752c3d
Source0:        %{pypi_source}
3752c3d
3752c3d
# Include LICENSE file from upstream repository
3752c3d
Source1:        https://raw.githubusercontent.com/toastdriven/pylev/master/LICENSE
3752c3d
3752c3d
BuildArch:      noarch
3752c3d
 
3752c3d
BuildRequires:  python3-devel
3752c3d
BuildRequires:  python3dist(setuptools)
3752c3d
3752c3d
%description %{common_description}
3752c3d
3752c3d
3752c3d
%package -n     python3-%{pypi_name}
3752c3d
Summary:        %{summary}
3752c3d
%{?python_provide:%python_provide python3-%{pypi_name}}
3752c3d
3752c3d
%description -n python3-%{pypi_name} %{common_description}
3752c3d
3752c3d
3752c3d
%prep
3752c3d
%autosetup -n %{pypi_name}-%{version}
3752c3d
3752c3d
# Remove bundled egg-info
3752c3d
rm -rf %{pypi_name}.egg-info
3752c3d
3752c3d
cp %{SOURCE1} .
3752c3d
3752c3d
3752c3d
%build
3752c3d
%py3_build
3752c3d
3752c3d
3752c3d
%install
3752c3d
%py3_install
3752c3d
3752c3d
3752c3d
%files -n python3-%{pypi_name}
3752c3d
%doc README.rst
3752c3d
%license LICENSE
3752c3d
3752c3d
%{python3_sitelib}/__pycache__/*
3752c3d
%{python3_sitelib}/%{pypi_name}.py
5ddfa40
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
3752c3d
3752c3d
3752c3d
%changelog
6e18b6a
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-9
6e18b6a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
6e18b6a
b9ca761
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-8
b9ca761
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
b9ca761
fdfc0f1
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.3.0-7
fdfc0f1
- Rebuilt for Python 3.9
fdfc0f1
d8ad391
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-6
d8ad391
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
d8ad391
624d6f5
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.3.0-5
624d6f5
- Rebuilt for Python 3.8.0rc1 (#1748018)
624d6f5
a20ad4e
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.3.0-4
a20ad4e
- Rebuilt for Python 3.8
a20ad4e
19ff3c2
* Tue Aug 13 2019 Fabio Valentini <decathorpe@gmail.com> - 1.3.0-3
19ff3c2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
19ff3c2
3752c3d
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-2
3752c3d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
3752c3d
3752c3d
* Wed Dec 19 2018 Fabio Valentini <decathorpe@gmail.com> - 1.3.0-1
3752c3d
- Initial package.
3752c3d