14
0

- 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:
Jan Matejek
2017-06-29 15:02:35 +00:00
committed by Git OBS Bridge
parent 7b596cdc1b
commit 20cd537549
4 changed files with 34 additions and 15 deletions

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Thu Jun 29 14:59:41 UTC 2017 - jmatejek@suse.com
- convert to singlespec
- enable tests
- update to 1.6
* support more number formats
* many bugs fixed
* extended test suite
-------------------------------------------------------------------
Fri Sep 23 10:11:07 UTC 2016 - jengelh@inai.de

View File

@@ -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}/*

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3e33f1d3e15fb5fe68518ed8a41d0f3247703f3a8d53864005529441c5ddc9d9
size 274077

3
python-stdnum-1.6.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:157a0aef01b1e846ddd11252dc516637da6b3347e32f0130825b7fae1d8b4655
size 399518