python-chardet-vl.spec 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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: 2%{?_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. * Sat Feb 6 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.0.1-2
  37. - rebuilt with python-2.6.4
  38. * Mon Nov 23 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.0.1-1
  39. - new upstream release
  40. - fixed Japanese summary
  41. * Mon Sep 21 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.0.1-1
  42. - initial build for VineSeed
  43. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
  44. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  45. * Mon Aug 04 2008 Kushal Das <kushal@fedoraproject.org> 1.0.1-1
  46. - Initial release