python-chardet-vl.spec 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. # sitelib for noarch packages, sitearch for others (remove the unneeded one)
  2. %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
  3. %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
  4. Name: python-chardet
  5. Version: 2.2.1
  6. Release: 1%{?_dist_release}
  7. Summary: Character encoding auto-detection in Python
  8. Summary(ja): Python で文字エンコーディングを自動検出
  9. Group: Development/Languages
  10. License: LGPLv2
  11. URL: https://pypi.python.org/pypi/chardet
  12. Source0: https://pypi.python.org/packages/source/c/chardet/chardet-%{version}.tar.gz
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. BuildArch: noarch
  15. BuildRequires: python-devel, python-setuptools
  16. Vendor: Project Vine
  17. Distribution: Vine Linux
  18. %description
  19. Character encoding auto-detection in Python. As
  20. smart as your browser. Open source.
  21. %prep
  22. %setup -q -n chardet-%{version}
  23. %build
  24. # Remove CFLAGS=... for noarch packages (unneeded)
  25. %{__python} setup.py build
  26. %install
  27. rm -rf $RPM_BUILD_ROOT
  28. %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
  29. %clean
  30. rm -rf $RPM_BUILD_ROOT
  31. %files
  32. %defattr(-,root,root,-)
  33. %doc LICENSE
  34. # For noarch packages: sitelib
  35. %{_bindir}/chardetect
  36. %{python_sitelib}/*
  37. %changelog
  38. * Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2.1-1
  39. - new upstream release
  40. * Sun Apr 28 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.1.1-1
  41. - new upstream release
  42. - changed Source0 and URL
  43. * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.1-4
  44. - rebuild with python-2.7.2
  45. * Wed Sep 29 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.0.1-3
  46. - rebuilt with rpm-4.8.1 for pkg-config
  47. * Sat Feb 6 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.0.1-2
  48. - rebuilt with python-2.6.4
  49. * Mon Nov 23 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.0.1-1
  50. - new upstream release
  51. - fixed Japanese summary
  52. * Mon Sep 21 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.0.1-1
  53. - initial build for VineSeed
  54. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
  55. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  56. * Mon Aug 04 2008 Kushal Das <kushal@fedoraproject.org> 1.0.1-1
  57. - Initial release