python-pykf-vl.spec 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. %define python_platlib %(python -c 'from distutils.sysconfig import get_python_lib; print get_python_lib(1)')
  2. Name: python-pykf
  3. Version: 0.3.4
  4. Release: 5%{?_dist_release}
  5. License: BSD like
  6. URL: http://www.gembook.jp/tsum/page.pys?wiki=PyKf
  7. Source0: http://www.gembook.jp/html/download/pykf-%{version}.tgz
  8. BuildRequires: python-devel
  9. BuildRequires: nkf
  10. Requires(pre): nkf
  11. Requires: python >= 2.3
  12. Prefix: %{_prefix}
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. Distribution: Vine Linux
  15. Vendor: Project Vine
  16. Packager: owa
  17. #----------------------------------------------------------------------
  18. Summary: Python kanji-code module
  19. Summary(ja): Python 漢字コード変換モジュール
  20. Group: Development/Libraries
  21. %description
  22. pykf is a japanese code exchange filter for python.
  23. %description -l ja
  24. pykf は ShiftJIS, EUC-JP, JISコードを相互に変換するためのモジュールです.
  25. %prep
  26. %setup -n pykf-%{version}
  27. nkf -e readme.sjis > readme.euc
  28. %build
  29. python setup.py build
  30. %install
  31. python setup.py install --root=$RPM_BUILD_ROOT
  32. %clean
  33. rm -rf $RPM_BUILD_ROOT
  34. %files
  35. %defattr(-,root,root)
  36. %{python_platlib}/*.so
  37. %{python_platlib}/*.egg-info
  38. %doc readme.euc
  39. %changelog
  40. * Sun May 15 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.3.4-5
  41. - add BuildRequires: python-devel, nkf
  42. * Mon May 02 2011 Shu KONNO <owa@bg.wakwak.com> 0.3.4-4
  43. - rebuilt
  44. * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 0.3.4-3
  45. - rebuild with python-2.6
  46. * Sun Jul 20 2008 Shu KONNO <owa@bg.wakwak.com> python-pykf-0.3.4-2vl5
  47. - rebuilt with python-2.5.2
  48. * Thu Jul 17 2008 Shu KONNO <owa@bg.wakwak.com> python-pykf-0.3.4-1vl5
  49. - applied new versioning policy and spec in utf-8
  50. - added python_platlib macro
  51. * Sat May 28 2005 Shu KONNO <owa@bg.wakwak.com> python-pykf-0.3.4-0vl1
  52. - changed spec for vine seed
  53. - updated pykf to 0.3.4
  54. * Mon Mar 21 2005 Shu KONNO <owa@bg.wakwak.com> python-pykf-0.3.3-uvl3
  55. - rebuild with python 2.4
  56. * Mon Apr 19 2004 Shu KONNO <owa@bg.wakwak.com> python-pykf-0.3.3-uvl2
  57. - rebuild with python-2.3.3-0vl1
  58. * Sat Feb 28 2004 Shu KONNO <owa@bg.wakwak.com> python2.3-pykf-0.3.3-uvl1
  59. - renamed
  60. * Sat Sep 6 2003 Shu KONNO <owa@bg.wakwak.com> python-pykf-0.3.3
  61. - modified
  62. * Sat Apr 19 2003 Shu KONNO <owa@bg.wakwak.com> python-pykf-0.3.0-1
  63. - created