python-chardet-vl.spec 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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.0.1
  6. Release: 4%{?_dist_release}
  7. Summary: Character encoding auto-detection in Python
  8. Summary(ja): Python で文字エンコーディングを自動検出
  9. Group: Development/Languages
  10. License: LGPLv2
  11. URL: http://chardet.feedparser.org
  12. Source0: http://chardet.feedparser.org/download/python2-chardet-%{version}.tgz
  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 python2-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. %{python_sitelib}/*
  35. %changelog
  36. * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.1-4
  37. - rebuild with python-2.7.2
  38. * Wed Sep 29 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.0.1-3
  39. - rebuilt with rpm-4.8.1 for pkg-config
  40. * Sat Feb 6 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.0.1-2
  41. - rebuilt with python-2.6.4
  42. * Mon Nov 23 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.0.1-1
  43. - new upstream release
  44. - fixed Japanese summary
  45. * Mon Sep 21 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.0.1-1
  46. - initial build for VineSeed
  47. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
  48. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  49. * Mon Aug 04 2008 Kushal Das <kushal@fedoraproject.org> 1.0.1-1
  50. - Initial release