15
0

- convert to singlespec

- drop *.c and *.h from installed package

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Levenshtein?expand=0&rev=14
This commit is contained in:
Jan Matejek
2017-06-30 13:38:38 +00:00
committed by Git OBS Bridge
parent ee4a2d7b1c
commit f4d0504572
2 changed files with 17 additions and 10 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Jun 30 13:37:49 UTC 2017 - jmatejek@suse.com
- convert to singlespec
- drop *.c and *.h from installed package
-------------------------------------------------------------------
Sun Dec 21 23:27:33 UTC 2014 - termim@gmail.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-Levenshtein
#
# Copyright (c) 2015 SUSE LINUX Products 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-Levenshtein
Version: 0.12.0
Release: 0
@@ -23,13 +24,12 @@ Summary: Python extension computing string distances and similarities
License: GPL-2.0+
Group: Development/Languages/Python
Url: https://github.com/ztane/python-Levenshtein/
Source0: https://pypi.python.org/packages/source/p/python-Levenshtein/python-Levenshtein-%{version}.tar.gz
BuildRequires: python-devel
BuildRequires: python-setuptools
Source0: https://files.pythonhosted.org/packages/source/p/python-Levenshtein/python-Levenshtein-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%endif
%python_subpackages
%description
The Levenshtein Python C extension module contains functions for fast
@@ -46,12 +46,13 @@ It supports both normal and Unicode strings.
%setup -q
%build
python setup.py build
%python_build
%install
python setup.py install --prefix="%{_prefix}" --root=%{buildroot}
%python_install
rm -v %{buildroot}%{_libdir}/python*/*/Levenshtein/_levenshtein.{c,h}
%files
%files %{python_files}
%defattr(-,root,root)
%doc HISTORY.txt README.rst
%{python_sitearch}/*