python-Levenshtein-vl.spec 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # Basic Information
  2. Name: python-Levenshtein
  3. Version: 0.11.2
  4. Release: 1%{?_dist_release}
  5. License: GPL
  6. Group: Development/Libraries
  7. URL: http://github.com/ztane/python-Levenshtein
  8. Source0: %{name}-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. Vendor: Project Vine
  11. Distribution: Vine Linux
  12. Packager: yasumichi
  13. Summary: Python extension for computing string edit distances and similarities.
  14. Summary(ja): 文字列の編集距離と類似点を計算するための Python 拡張
  15. # Dependency
  16. Requires: python
  17. BuildRequires: python-devel
  18. BuildRequires: python-setuptools
  19. %description
  20. The Levenshtein Python C extension module contains functions for fast
  21. computation of
  22. * Levenshtein (edit) distance, and edit operations
  23. * string similarity
  24. * approximate median strings, and generally string averaging
  25. * string sequence and set similarity
  26. It supports both normal and Unicode strings.
  27. #%%description -l ja
  28. %prep
  29. %setup -q -n python-Levenshtein-0.11.2
  30. %build
  31. %{__python} setup.py build
  32. %install
  33. %{__rm} -rf ${RPM_BUILD_ROOT}
  34. %{__python} setup.py install --root=${RPM_BUILD_ROOT}
  35. %clean
  36. %{__rm} -rf ${RPM_BUILD_ROOT}
  37. %files
  38. %defattr(-,root,root)
  39. %doc COPYING NEWS
  40. %{python_sitearch}/Levenshtein.so
  41. %{python_sitearch}/python_Levenshtein-%{version}-py%{pyver}.egg-info
  42. %changelog
  43. * Tue Jul 29 2014 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.11.2-1
  44. - initial build for Vine Linux