Blame python-pylev.spec

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
3752c3d
Release:        2%{?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
3752c3d
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
3752c3d
3752c3d
3752c3d
%changelog
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