forked from pool/python-Levenshtein
Accepting request 507380 from devel:languages:python
- convert to singlespec - drop *.c and *.h from installed package OBS-URL: https://build.opensuse.org/request/show/507380 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Levenshtein?expand=0&rev=9
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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}/*
|
||||
|
||||
Reference in New Issue
Block a user