加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python-num2words.spec 1.44 KB
一键复制 编辑 原始数据 按行查看 历史
赵孝楠 提交于 2021-07-12 11:49 . publish spec
# 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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化