14
0
Files
python-python-stdnum/python-python-stdnum.spec
Tomáš Chvátal 95eb397b93 Accepting request 693729 from home:pgajdos
- version update to 1.11
  * Add modules for the following number formats:
    - DNI (Documento Nacional de Identidad, Argentinian national identity nr.)
    - VNR, SVNR, VSNR (Versicherungsnummer, Austrian social security number)
    - NI (Número de identidad, Cuban identity card numbers)
    - AMKA (Αριθμός Μητρώου Κοινωνικής Ασφάλισης, Greek social security number)
    - Asmens kodas (Lithuanian, personal numbers)
    - MAC address (Media Access Control address)
    - IDNO (Moldavian company identification number)
    - CURP (Clave Única de Registro de Población, Mexican personal ID)
    - Fødselsnummer (Norwegian birth number, the national identity number) (thanks Ilya Vihtinsky)
    - New Zealand bank account number
    - Personnummer (Swedish personal identity number) (thanks Ilya Vihtinsky)
  * Code style improvements
  * Change Dominican Republic DGII check URL to HTTPS (thanks Gustavo Valverde)
  * Support Ecuadorian Cedula and RUC of foreigners (thanks Christopher Ormaza)
  * Add format() function for Argentinian CUIT number (thanks Mario Puntin)
  * Support passing formatted numbers to all get_birth_date() and similar functions
  * Handle Dominican Republic DGII lookup returning multiple entities (thanks Andrés R)

OBS-URL: https://build.opensuse.org/request/show/693729
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-stdnum?expand=0&rev=11
2019-04-15 09:49:52 +00:00

65 lines
2.0 KiB
RPMSpec

#
# spec file for package python-python-stdnum
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define modname python-stdnum
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-%{modname}
Version: 1.11
Release: 0
Summary: Python module to handle standardized numbers and codes
License: LGPL-2.0-or-later
Group: Development/Languages/Python
URL: http://arthurdejong.org/python-stdnum/
Source: https://files.pythonhosted.org/packages/source/p/python-stdnum/%{modname}-%{version}.tar.gz
BuildRequires: %{python_module nose}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Suggests: python-PySimpleSOAP
Suggests: python-suds
BuildArch: noarch
%python_subpackages
%description
This library offers functions for parsing, validating and reformatting
standard numbers and codes in various formats.
Apart from the validate() function, modules generally provide extra
parsing, validation, formatting or conversion functions.
%prep
%setup -q -n %{modname}-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export LANG=en_US.UTF-8
%python_exec -m nose
%files %{python_files}
%license COPYING
%doc NEWS ChangeLog README
%{python_sitelib}/*
%changelog