File python-python-stdnum.spec of Package python-python-stdnum

# spec file for package python-python-stdnum
# Copyright (c) 2017 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

%define modname python-stdnum
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:           python-%{modname}
Version:        1.6
Release:        0
Summary:        Python module to handle standardized numbers and codes
License:        LGPL-2.0+
Group:          Development/Languages/Python
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module nose}
BuildRequires:  %{python_module setuptools}
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
Suggests:       python-PySimpleSOAP
Suggests:       python-suds
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

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.

%setup -q -n %{modname}-%{version}


%fdupes %{buildroot}%{_prefix}

export LANG=en_US.UTF-8
%python_exec -m nose

%files %{python_files}

openSUSE Build Service is sponsored by