python-pykf-vl.spec 2.1 KB

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