%global _empty_manifest_terminate_build 0 Name: python-kanjize Version: 1.3.0 Release: 1 Summary: Easy converter between Kanji-Number and Integer License: MIT URL: https://github.com/nagataaaas/kanjize Source0: https://mirrors.aliyun.com/pypi/web/packages/67/ee/752db6baf513cf4ea6d6079924454b93a825315e959b26cf9ff0fba2cfe7/kanjize-1.3.0.tar.gz BuildArch: noarch %description Powered by [Yamato Nagata](https://twitter.com/514YJ) [GitHub](https://github.com/nagataaaas/Kanjize) Can Convert Number up to 10 ** 72 - 1 ```python from kanjize import int2kanji, kanji2int, Number print(int2kanji(58076099)) # 五千八百七万六千九十九 print(kanji2int("五千八百七万六千九十九")) # 58076099 print(kanji2int("223兆4千億4256万6千")) # 223400042566000 print(kanji2int("223兆4000億4256万6000")) # 223400042566000 print(int2kanji(223400042566000, style="mixed", kanji_thousand=False)) # 223兆4000億4256万6000 print(int2kanji(223400042566000, style="mixed")) # 223兆4千億4256万6千 print((Number.from_kanji("223兆4千億4256万6千") * Number(2.3)).to_kanji(style="mixed")) # 446兆8千億8513万2千 ``` %package -n python3-kanjize Summary: Easy converter between Kanji-Number and Integer Provides: python-kanjize BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-kanjize Powered by [Yamato Nagata](https://twitter.com/514YJ) [GitHub](https://github.com/nagataaaas/Kanjize) Can Convert Number up to 10 ** 72 - 1 ```python from kanjize import int2kanji, kanji2int, Number print(int2kanji(58076099)) # 五千八百七万六千九十九 print(kanji2int("五千八百七万六千九十九")) # 58076099 print(kanji2int("223兆4千億4256万6千")) # 223400042566000 print(kanji2int("223兆4000億4256万6000")) # 223400042566000 print(int2kanji(223400042566000, style="mixed", kanji_thousand=False)) # 223兆4000億4256万6000 print(int2kanji(223400042566000, style="mixed")) # 223兆4千億4256万6千 print((Number.from_kanji("223兆4千億4256万6千") * Number(2.3)).to_kanji(style="mixed")) # 446兆8千億8513万2千 ``` %package help Summary: Development documents and examples for kanjize Provides: python3-kanjize-doc %description help Powered by [Yamato Nagata](https://twitter.com/514YJ) [GitHub](https://github.com/nagataaaas/Kanjize) Can Convert Number up to 10 ** 72 - 1 ```python from kanjize import int2kanji, kanji2int, Number print(int2kanji(58076099)) # 五千八百七万六千九十九 print(kanji2int("五千八百七万六千九十九")) # 58076099 print(kanji2int("223兆4千億4256万6千")) # 223400042566000 print(kanji2int("223兆4000億4256万6000")) # 223400042566000 print(int2kanji(223400042566000, style="mixed", kanji_thousand=False)) # 223兆4000億4256万6000 print(int2kanji(223400042566000, style="mixed")) # 223兆4千億4256万6千 print((Number.from_kanji("223兆4千億4256万6千") * Number(2.3)).to_kanji(style="mixed")) # 446兆8千億8513万2千 ``` %prep %autosetup -n kanjize-1.3.0 %build %py3_build %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-kanjize -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Thu Jun 08 2023 Python_Bot - 1.3.0-1 - Package Spec generated