From 177d392648b2d4a75b60e0003b3d0d270f3dbc7c8c9b9e6c8bdb0c81acb8ebeb Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Wed, 5 Jul 2017 05:06:16 +0000 Subject: [PATCH] Accepting request 508202 from home:alois:branches:devel:languages:python OBS-URL: https://build.opensuse.org/request/show/508202 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-inflect?expand=0&rev=2 --- python-inflect.changes | 6 ++++++ python-inflect.spec | 28 ++++++++++++++++------------ 2 files changed, 22 insertions(+), 12 deletions(-) diff --git a/python-inflect.changes b/python-inflect.changes index b7414fb..9427b06 100644 --- a/python-inflect.changes +++ b/python-inflect.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jul 4 18:37:00 UTC 2017 - aloisio@gmx.com + +- Converted to singlespec +- Enabled tests + ------------------------------------------------------------------- Tue Aug 2 13:24:18 UTC 2016 - sor.alexei@meowr.ru diff --git a/python-inflect.spec b/python-inflect.spec index 94f0d4e..22e2976 100644 --- a/python-inflect.spec +++ b/python-inflect.spec @@ -1,7 +1,7 @@ # # spec file for package python-inflect # -# 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,37 +16,41 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-inflect Version: 0.2.5 Release: 0 -Summary: Correctly generate plurals, singular nouns, ordinals, indefinite articles; convert numbers to words +Summary: Methods for working on numbers and nouns License: AGPL-3.0 Group: Development/Languages/Python Url: https://github.com/pwdyson/inflect.py Source0: https://files.pythonhosted.org/packages/source/i/inflect/inflect-%{version}.tar.gz +BuildRequires: %{python_module base} +BuildRequires: %{python_module nose} BuildRequires: fdupes -BuildRequires: python-devel -%if 0%{?suse_version} >= 1120 -BuildArch: noarch -%else +BuildRequires: python-rpm-macros BuildRoot: %{_tmppath}/%{name}-%{version}-build -%py_requires -%endif +BuildArch: noarch +%python_subpackages %description Correctly generate plurals, singular nouns, ordinals, indefinite articles; convert numbers to words. %prep %setup -q -n inflect-%{version} +rm -rf inflect.egg-info %build -python2 setup.py build +%python_build %install -python2 setup.py install --prefix=%{_prefix} --root=%{buildroot} -%fdupes %{buildroot} +%python_install +%python_exec %fdupes -s %{buildroot}%{$python_sitelib} -%files +%check +%python_expand PYTHONPATH=build/lib %{_bindir}/nosetests + +%files %{python_files} %defattr(-,root,root,-) %doc CHANGES.txt COPYING.txt README.rst %{python_sitelib}/*