python-pykf-vl.spec 2.0 KB

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