diff --git a/num2words-0.5.10.tar.gz b/num2words-0.5.10.tar.gz new file mode 100755 index 0000000000000000000000000000000000000000..31e0c6fcfbec30f76ef3bba9d29a2d0ed218eec0 Binary files /dev/null and b/num2words-0.5.10.tar.gz differ diff --git a/python-num2words.spec b/python-num2words.spec new file mode 100644 index 0000000000000000000000000000000000000000..7f9ce81d2dae6eee674bcc345e049d6a4f230e84 --- /dev/null +++ b/python-num2words.spec @@ -0,0 +1,54 @@ +%global pypi_name num2words + +%global _description %{expand: +Convert numbers to words in multiple languages, it is a library that converts numbers like ``42`` to words like ``forty-two``. It supports multiple languages (English, French, Spanish, German and Lithuanian) and can even generate ordinal numbers like ``forty-second``.} + +Name: python-%{pypi_name} +Version: 0.5.10 +Release: 0 +Summary: Module to convert numbers to words +License: LGPL-2.1-only +URL: https://github.com/savoirfairelinux/num2words +Source: https://files.pythonhosted.org/packages/source/n/num2words/num2words-%{version}.tar.gz +BuildArch: noarch + +%description %_description +%{?python_enable_dependency_generator} +%package -n python3-%{pypi_name} + +Summary: Python 3 modules to convert numbers to words +BuildRequires: python3-setuptools +BuildRequires: python3-devel +%if %{with tests} +BuildRequires: %{py3_dist delegator.py} +%endif + +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} %_description + +%prep +%autosetup -n %{pypi_name}-%{version} + +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info + +%build +%py3_build + +%install +%py3_install + +%if %{with tests} +%check +%{__python3} setup.py test +%endif + +%files -n python3-%{pypi_name} +%doc README.rst +%license COPYING +%{_bindir}/%{pypi_name} +%{python3_sitelib}/%{pypi_name} +%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info + +%changelog