forked from pool/python-python-stdnum
- convert to singlespec
- enable tests - update to 1.6 * support more number formats * many bugs fixed * extended test suite OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-stdnum?expand=0&rev=5
This commit is contained in:
committed by
Git OBS Bridge
parent
7b596cdc1b
commit
20cd537549
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-python-stdnum
|
||||
#
|
||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# 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
|
||||
@@ -16,22 +16,26 @@
|
||||
#
|
||||
|
||||
|
||||
%define base_name python-stdnum
|
||||
|
||||
Name: python-%{base_name}
|
||||
Version: 1.3
|
||||
%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
|
||||
Url: http://arthurdejong.org/python-stdnum/
|
||||
Source: https://files.pythonhosted.org/packages/21/9b/5ff5aeb1f41a23cbbfec6b4a7852c9fec6c904c34bba0b5f905da1702809/%{base_name}-%{version}.tar.gz
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-setuptools
|
||||
Source: https://files.pythonhosted.org/packages/source/p/python-stdnum/%{modname}-%{version}.tar.gz
|
||||
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
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
This library offers functions for parsing, validating and reformatting
|
||||
@@ -41,15 +45,20 @@ Apart from the validate() function, modules generally provide extra
|
||||
parsing, validation, formatting or conversion functions.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{base_name}-%{version}
|
||||
%setup -q -n %{modname}-%{version}
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%python_install
|
||||
%fdupes %{buildroot}%{_prefix}
|
||||
|
||||
%files
|
||||
%check
|
||||
export LANG=en_US.UTF-8
|
||||
%python_exec -m nose
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc NEWS ChangeLog README COPYING
|
||||
%{python_sitelib}/*
|
||||
|
Reference in New Issue
Block a user