1 Star 0 Fork 10

jin/python-num2words

forked from src-openEuler/python-num2words
Closed
 
Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
python-num2words.spec 2.58 KB
Copy Edit Raw Blame History
jin authored 2025-08-05 16:29 +08:00 . Update package to version 0.5.14
%global _empty_manifest_terminate_build 0
Name: python-num2words
Version: 0.5.14
Release: 1
Summary: Modules to convert numbers
License: LGPL-2.1-only
URL: https://github.com/savoirfairelinux/num2words
Source0: https://files.pythonhosted.org/packages/source/n/num2words/num2words-%{version}.tar.gz
BuildArch: noarch
%description
A library that converts numbers to words
%package -n python3-num2words
Summary: Modules to convert numbers to words. Easily extensible.
Provides: python-num2words = %{version}-%{release}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
Requires: python3-docopt
%description -n python3-num2words
A library that converts numbers to words
%package help
Summary: Development documents and examples for num2words
Provides: python3-num2words-doc
%description help
A library that converts numbers to words
%prep
%autosetup -n num2words-%{version}
%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-num2words -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Tue Aug 05 2025 jinshuaiyu <jinshuaiyu@kylinos.cn> - 0.5.14-1
- Update package to version 0.5.14
- Fixed a typo in PL
- Add catalan language support
* Thu Nov 28 2024 jinshuaiyu <jinshuaiyu@kylinos.cn> - 0.5.13-1
- Update package to version 0.5.13
- Fixed a typo in PL
- Run tests against Python 3.12
- Add catalan language support
* Wed Nov 16 2022 jiangxinyu <jiangxinyu@kylinos.cn> - 0.5.12-1
- Update package to version 0.5.12
* Mon May 9 2022 yaoxin <yaoxin30@h-partners.com> - 0.5.10-3
- License compliance rectification
* Tue Apr 19 2022 huangduirong <huangduirong@huawei.com> - 0.5.10-2
- Update License to LGPL-2.1
* Sat Jul 10 2021 Python_Bot <Python_Bot@openeuler.org> - 0.5.10-1
- Package Spec generated
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/all233/python-num2words.git
git@gitee.com:all233/python-num2words.git
all233
python-num2words
python-num2words
master

Search