Accepting request 485736 from devel:languages:python:singlespec

- Fix python_module macro definition

- update for multipython build

OBS-URL: https://build.opensuse.org/request/show/485736
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-snowballstemmer?expand=0&rev=4
This commit is contained in:
Thomas Bechtold 2017-04-05 05:44:14 +00:00 committed by Git OBS Bridge
parent aad96f33ce
commit 8a3c40952d
2 changed files with 19 additions and 9 deletions

View File

@ -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

View File

@ -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