diff --git a/num2words-0.5.10.tar.gz b/num2words-0.5.10.tar.gz new file mode 100644 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..eaca8390bd042599176daf4cb68ea8c86a24b1ea --- /dev/null +++ b/python-num2words.spec @@ -0,0 +1,61 @@ +# Currently disabled because the BR isn't available in Fedora +%bcond_with tests + +%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: 2%{?dist} +Summary: Module to convert numbers to words + +License: LGPLv2+ +URL: https://github.com/savoirfairelinux/num2words +Source0: %{pypi_source} + +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?.?.egg-info