1 Star 0 Fork 2

OpenCloudOS Stream/python-inflect

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python-inflect.spec 2.73 KB
一键复制 编辑 原始数据 按行查看 历史
%global srcname inflect
Summary: Correctly generate plurals, ordinals, indefinite articles; convert numbers to words
Name: python-%{srcname}
Version: 5.6.2
Release: 3%{?dist}
License: MIT
URL: https://pypi.org/project/%{srcname}
Source0: %{pypi_source}
BuildRequires: python3-devel python3-setuptools python3-setuptools_scm
# test
BuildRequires: python3-nose python3-pytest python3-six
BuildArch: noarch
%description
The methods of the class 'engine' in module 'inflect.py' provide plural
inflections, singular noun inflections, "a"/"an" selection for English words,
and manipulation of numbers as words.
Plural forms of all nouns, most verbs, and some adjectives are provided. Where
appropriate, "classical" variants (for example: "brother" -> "brethren",
"dogma" -> "dogmata", etc.) are also provided.
Single forms of nouns are also provided. The gender of singular pronouns can be
chosen (for example "they" -> "it" or "she" or "he" or "they").
Pronunciation-based "a"/"an" selection is provided for all English words, and
most initialisms.
It is also possible to inflect numerals (1,2,3) to ordinals (1st, 2nd, 3rd) and
to English words ("one", "two", "three").
%package -n python3-%{srcname}
Summary: Correctly generate plurals, ordinals, indefinite articles; convert numbers to words
%description -n python3-%{srcname}
The methods of the class 'engine' in module 'inflect.py' provide plural
inflections, singular noun inflections, "a"/"an" selection for English words,
and manipulation of numbers as words.
Plural forms of all nouns, most verbs, and some adjectives are provided. Where
appropriate, "classical" variants (for example: "brother" -> "brethren",
"dogma" -> "dogmata", etc.) are also provided.
Single forms of nouns are also provided. The gender of singular pronouns can be
chosen (for example "they" -> "it" or "she" or "he" or "they").
Pronunciation-based "a"/"an" selection is provided for all English words, and
most initialisms.
It is also possible to inflect numerals (1,2,3) to ordinals (1st, 2nd, 3rd) and
to English words ("one", "two", "three").
%prep
%autosetup -n %{srcname}-%{version} -p1
%generate_buildrequires
%pyproject_buildrequires
%build
%pyproject_wheel
%install
%pyproject_install
%pyproject_save_files %{srcname}
%check
pytest
%files -n python3-%{srcname} -f %{pyproject_files}
%license LICENSE
%changelog
* Thu Sep 26 2024 OpenCloudOS Release Engineering <[email protected]> - 5.6.2-3
- Rebuilt for clarifying the packages requirement in BaseOS and AppStream
* Fri Aug 16 2024 OpenCloudOS Release Engineering <[email protected]> - 5.6.2-2
- Rebuilt for loongarch release
* Tue Jan 9 2024 Shuo Wang <[email protected]> - 5.6.2-1
- initial build
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/opencloudos-stream/python-inflect.git
[email protected]:opencloudos-stream/python-inflect.git
opencloudos-stream
python-inflect
python-inflect
master

搜索帮助