From 20cd53754931d96f05bc7b5d688f962835962532e56cbbaf5f665891c10fbc68 Mon Sep 17 00:00:00 2001 From: Jan Matejek Date: Thu, 29 Jun 2017 15:02:35 +0000 Subject: [PATCH] - 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 --- python-python-stdnum.changes | 10 ++++++++++ python-python-stdnum.spec | 33 +++++++++++++++++++++------------ python-stdnum-1.3.tar.gz | 3 --- python-stdnum-1.6.tar.gz | 3 +++ 4 files changed, 34 insertions(+), 15 deletions(-) delete mode 100644 python-stdnum-1.3.tar.gz create mode 100644 python-stdnum-1.6.tar.gz diff --git a/python-python-stdnum.changes b/python-python-stdnum.changes index 27b612e..5a32081 100644 --- a/python-python-stdnum.changes +++ b/python-python-stdnum.changes @@ -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 diff --git a/python-python-stdnum.spec b/python-python-stdnum.spec index 4deeb3b..8006d79 100644 --- a/python-python-stdnum.spec +++ b/python-python-stdnum.spec @@ -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}/* diff --git a/python-stdnum-1.3.tar.gz b/python-stdnum-1.3.tar.gz deleted file mode 100644 index 3a70b87..0000000 --- a/python-stdnum-1.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3e33f1d3e15fb5fe68518ed8a41d0f3247703f3a8d53864005529441c5ddc9d9 -size 274077 diff --git a/python-stdnum-1.6.tar.gz b/python-stdnum-1.6.tar.gz new file mode 100644 index 0000000..c44cf3b --- /dev/null +++ b/python-stdnum-1.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:157a0aef01b1e846ddd11252dc516637da6b3347e32f0130825b7fae1d8b4655 +size 399518