Accepting request 485740 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/485740
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-snowballstemmer?expand=0&rev=2
This commit is contained in:
Dominique Leuenberger 2017-04-19 16:07:39 +00:00 committed by Git OBS Bridge
commit eea24b1274
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 Thu Apr 23 11:13:43 UTC 2015 - mcihar@suse.cz

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-snowballstemmer # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -16,6 +16,7 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-snowballstemmer Name: python-snowballstemmer
Version: 1.2.0 Version: 1.2.0
Release: 0 Release: 0
@ -24,13 +25,12 @@ License: BSD-2-Clause
Group: Development/Languages/Python Group: Development/Languages/Python
Url: https://github.com/shibukawa/snowball_py Url: https://github.com/shibukawa/snowball_py
Source: https://pypi.python.org/packages/source/s/snowballstemmer/snowballstemmer-%{version}.tar.gz 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 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 BuildArch: noarch
%endif
%python_subpackages
%description %description
This package provides 16 stemmer algorithms (15 + Poerter English This package provides 16 stemmer algorithms (15 + Poerter English
@ -46,12 +46,12 @@ accelerate.
%setup -q -n snowballstemmer-%{version} %setup -q -n snowballstemmer-%{version}
%build %build
python setup.py build %python_build
%install %install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} %python_install
%files %files %{python_files}
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{python_sitelib}/* %{python_sitelib}/*
%doc README.rst LICENSE.rst %doc README.rst LICENSE.rst