python-chardet-vl.spec 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. %global pypi_name chardet
  2. Name: python-chardet
  3. Version: 3.0.4
  4. Release: 2%{?_dist_release}
  5. Summary: Character encoding auto-detection in Python
  6. Summary(ja): Python で文字エンコーディングを自動検出
  7. Group: programming
  8. Vendor: Project Vine
  9. Distribution: Vine Linux
  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-rpm-macros
  16. BuildRequires: python-devel, python-setuptools, python2-rpm-macros
  17. BuildRequires: python3-devel, python3-setuptools, python3-rpm-macros
  18. %description
  19. Character encoding auto-detection in Python. As
  20. smart as your browser. Open source.
  21. %package -n python3-%{pypi_name}
  22. Summary: Character encoding auto-detection in Python 3
  23. Summary(ja): Python で文字エンコーディングを自動検出
  24. Group: programming
  25. %description -n python3-%{pypi_name}
  26. Character encoding auto-detection in Python. As
  27. smart as your browser. Open source.
  28. %prep
  29. %setup -q -n chardet-%{version}
  30. sed -ie '1d' %{pypi_name}/cli/chardetect.py
  31. %build
  32. %py2_build
  33. %py3_build
  34. %install
  35. rm -rf $RPM_BUILD_ROOT
  36. %py2_install
  37. mv $RPM_BUILD_ROOT%{_bindir}/{,python2-}chardetect
  38. %py3_install
  39. %clean
  40. rm -rf $RPM_BUILD_ROOT
  41. %files
  42. %defattr(-,root,root,-)
  43. %{!?_licensedir:%global license %%doc}
  44. %license LICENSE
  45. %doc README.rst
  46. # For noarch packages: sitelib
  47. %{_bindir}/python2-chardetect
  48. %{python_sitelib}/*
  49. %files -n python3-%{pypi_name}
  50. %{!?_licensedir:%global license %%doc}
  51. %license LICENSE
  52. %doc README.rst
  53. %{python3_sitelib}/*
  54. %{_bindir}/chardetect
  55. %changelog
  56. * Sat Aug 15 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.0.4-2
  57. - rebuilt with python-3.8.
  58. * Wed Nov 28 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.0.4-1
  59. - new upstream release.
  60. - added python3 support.
  61. * Wed May 06 2015 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.3.0-1
  62. - new upstream release
  63. * Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2.1-1
  64. - new upstream release
  65. * Sun Apr 28 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.1.1-1
  66. - new upstream release
  67. - changed Source0 and URL
  68. * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.1-4
  69. - rebuild with python-2.7.2
  70. * Wed Sep 29 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.0.1-3
  71. - rebuilt with rpm-4.8.1 for pkg-config
  72. * Sat Feb 6 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.0.1-2
  73. - rebuilt with python-2.6.4
  74. * Mon Nov 23 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.0.1-1
  75. - new upstream release
  76. - fixed Japanese summary
  77. * Mon Sep 21 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.0.1-1
  78. - initial build for VineSeed
  79. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
  80. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  81. * Mon Aug 04 2008 Kushal Das <kushal@fedoraproject.org> 1.0.1-1
  82. - Initial release