python-chardet-vl.spec 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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.1.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. %description
  17. Character encoding auto-detection in Python. As
  18. smart as your browser. Open source.
  19. %prep
  20. %setup -q -n chardet-%{version}
  21. %build
  22. # Remove CFLAGS=... for noarch packages (unneeded)
  23. %{__python} setup.py build
  24. %install
  25. rm -rf $RPM_BUILD_ROOT
  26. %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
  27. chmod -x COPYING
  28. %clean
  29. rm -rf $RPM_BUILD_ROOT
  30. %files
  31. %defattr(-,root,root,-)
  32. %doc COPYING
  33. # For noarch packages: sitelib
  34. %{_bindir}/chardetect.py
  35. %{python_sitelib}/*
  36. %changelog
  37. * Sun Apr 28 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.1.1-1
  38. - new upstream release
  39. - changed Source0 and URL
  40. * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.1-4
  41. - rebuild with python-2.7.2
  42. * Wed Sep 29 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.0.1-3
  43. - rebuilt with rpm-4.8.1 for pkg-config
  44. * Sat Feb 6 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.0.1-2
  45. - rebuilt with python-2.6.4
  46. * Mon Nov 23 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.0.1-1
  47. - new upstream release
  48. - fixed Japanese summary
  49. * Mon Sep 21 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.0.1-1
  50. - initial build for VineSeed
  51. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
  52. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  53. * Mon Aug 04 2008 Kushal Das <kushal@fedoraproject.org> 1.0.1-1
  54. - Initial release