代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/python-num2words 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# 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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。