# Created by pyp2rpm-3.3.4 %global pypi_name langdetect Name: python-%{pypi_name} Version: 1.0.8 Release: 1%{?dist} Summary: Language detection library ported from Google's language-detection License: MIT URL: https://github.com/Mimino666/langdetect Source0: %{pypi_source} BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(setuptools) BuildRequires: python3dist(six) %description langdetect [![Build Status]( of Nakatani Shuyo's [language-detection]( library (version from 03/03/2014) to Python. Installation $ pip install langdetectSupported Python versions 2.7, 3.4+. Languages langdetect supports 55 languages out of the box ([ISO 639-1 codes]( af, ar, bg, bn, ca, cs, cy, da, de, el, en, es, et, fa, fi, fr, gu, he, hi, hr, hu, id, it, ja, kn, ko, lt, lv, mk, ml, mr, ne,... %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} Requires: python3dist(six) %description -n python3-%{pypi_name} langdetect [![Build Status]( of Nakatani Shuyo's [language-detection]( library (version from 03/03/2014) to Python. Installation $ pip install langdetectSupported Python versions 2.7, 3.4+. Languages langdetect supports 55 languages out of the box ([ISO 639-1 codes]( af, ar, bg, bn, ca, cs, cy, da, de, el, en, es, et, fa, fi, fr, gu, he, hi, hr, hu, id, it, ja, kn, ko, lt, lv, mk, ml, mr, ne,... %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %py3_build %install %py3_install %check %{__python3} setup.py test %files -n python3-%{pypi_name} %license LICENSE %doc README.md %{python3_sitelib}/%{pypi_name} %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info %changelog * Wed Sep 30 2020 Itamar Reis Peixoto - 1.0.8-1 - Initial package.