diff --git a/python-snowballstemmer.changes b/python-snowballstemmer.changes index d8c64da..5de2732 100644 --- a/python-snowballstemmer.changes +++ b/python-snowballstemmer.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Wed Apr 5 05:35:38 UTC 2017 - tbechtold@suse.com + +- Fix python_module macro definition + +------------------------------------------------------------------- +Mon Dec 19 18:40:51 UTC 2016 - jmatejek@suse.com + +- update for multipython build + ------------------------------------------------------------------- Thu Apr 23 11:13:43 UTC 2015 - mcihar@suse.cz diff --git a/python-snowballstemmer.spec b/python-snowballstemmer.spec index 0ab0ab1..e4b1a18 100644 --- a/python-snowballstemmer.spec +++ b/python-snowballstemmer.spec @@ -1,7 +1,7 @@ # # spec file for package python-snowballstemmer # -# Copyright (c) 2015 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,6 +16,7 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-snowballstemmer Version: 1.2.0 Release: 0 @@ -24,13 +25,12 @@ License: BSD-2-Clause Group: Development/Languages/Python Url: https://github.com/shibukawa/snowball_py Source: https://pypi.python.org/packages/source/s/snowballstemmer/snowballstemmer-%{version}.tar.gz -BuildRequires: python-devel +BuildRequires: %{python_module devel} +BuildRequires: python-rpm-macros BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else BuildArch: noarch -%endif + +%python_subpackages %description This package provides 16 stemmer algorithms (15 + Poerter English @@ -46,12 +46,12 @@ accelerate. %setup -q -n snowballstemmer-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install -%files +%files %{python_files} %defattr(-,root,root,-) %{python_sitelib}/* %doc README.rst LICENSE.rst