Sophie

Sophie

distrib > Mageia > 9 > armv7hl > media > core-release-src > by-pkgid > d066bb91403d137c2e4b0466796b7cd3 > files > 2

python-num2words-0.5.12-1.mga9.src.rpm

%global srcname num2words

# test requires network connection to an outside server
%global with_check 1

Name:           python-%{srcname}
Version:        0.5.12
Release:        %mkrel 1
Summary:        Modules to convert numbers to words
Group:          Development/Python

License:        GPLv3+
URL:            https://pypi.python.org/pypi/num2words
Source0:        https://pypi.python.org/packages/source/n/%{srcname}/%{srcname}-%{version}.tar.gz
BuildArch:      noarch

%description
num2words is a library that converts numbers like 42 to words like forty-two.
It supports multiple languages and can even generate ordinal numbers like
forty-second (although this last feature is a bit buggy for some languages
at the moment).

%package -n python3-%{srcname}
Summary:        Modules to convert numbers to words
%{?python_provide:%python_provide python3-%{srcname}}
Provides:	num2words = %{version}-%{release}
BuildRequires: pyproject-rpm-macros
BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)
BuildRequires:	python3dist(docopt)
BuildRequires:	python3dist(delegator.py)

%description -n python3-%{srcname}
num2words is a library that converts numbers like 42 to words like forty-two.
It supports multiple languages and can even generate ordinal numbers like
forty-second (although this last feature is a bit buggy for some languages
at the moment).

%prep
%autosetup -n %{srcname}-%{version}

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files num2words

%if 0%{?with_check}
%check
%{__python3} setup.py test
%endif

%files -n python3-%{srcname} -f %{pyproject_files}
%license COPYING
%doc README.rst CHANGES.rst

%{_bindir}/num2words


%changelog
* Wed Sep 07 2022 neoclust <neoclust> 0.5.12-1.mga9
+ Revision: 1885104
- New version  0.5.12

* Sun Mar 27 2022 umeabot <umeabot> 0.5.10-5.mga9
+ Revision: 1828908
- Mageia 9 Mass Rebuild

* Wed Feb 23 2022 mrambo3501 <mrambo3501> 0.5.10-4.mga9
+ Revision: 1783647
- rebuild for python-3.10

* Sat Jun 26 2021 wally <wally> 0.5.10-3.mga9
+ Revision: 1733316
- Rebuild for python 3.9

* Sun Feb 16 2020 umeabot <umeabot> 0.5.10-2.mga8
+ Revision: 1532782
- Mageia 8 Mass Rebuild

* Tue Sep 17 2019 wally <wally> 0.5.10-1.mga8
+ Revision: 1443157
- new version 0.5.10
- drop python2 support

* Fri Apr 19 2019 wally <wally> 0.5.9-1.mga7
+ Revision: 1393598
- new version 0.5.9

* Tue Jan 08 2019 tv <tv> 0.5.6-3.mga7
+ Revision: 1352451
- rebuild with python 3.7

* Thu Sep 20 2018 umeabot <umeabot> 0.5.6-2.mga7
+ Revision: 1289486
- Mageia 7 Mass Rebuild

* Wed Jun 20 2018 joequant <joequant> 0.5.6-1.mga7
+ Revision: 1238396
- fix summary
- add sha1.lst
- initial checkin
- Created package structure for python-num2words.