spambayes-vl.spec 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. ##%define __python python%(python -c 'import sys;print(sys.version[0:3])')
  2. ##%define python_sitelib %(python -c 'from distutils.sysconfig import get_python_lib; print get_python_lib(0)')
  3. ##%define python_sitearch %(python -c 'from distutils.sysconfig import get_python_lib; print get_python_lib(1)')
  4. Summary: Spam classification system
  5. Summary(ja): スパムフィルタ・システム
  6. Name: spambayes
  7. Group: Applications/Internet
  8. Version: 1.0.4
  9. Release: 4%{?_dist_release}
  10. URL: http://spambayes.sourceforge.net/
  11. License: PSF (Python Software Foundation) - see LICENSE
  12. BuildArch: noarch
  13. Source0: spambayes-%{version}.tar.gz
  14. Source1: SplitterForU.py
  15. Patch0: spambayes-1.0.4.ProxyUI-iso2022jp.patch
  16. Patch1: spambayes-1.0.4.PyMeldLite-iso2022jp.patch
  17. Patch2: spambayes-1.0.4.tokenizer-iso2022jp.patch
  18. Patch3: spambayes-1.0.4.Dibbler-iso2022jp.patch
  19. Patch4: spambayes-1.0.4.ImapUI-RFC2060.patch
  20. Patch5: spambayes-1.0.4.classifier.patch
  21. #Prereq: python
  22. Requires: python >= 2.2
  23. BuildRequires: python-devel
  24. Packager: <owa>
  25. Vendor: Project Vine
  26. Distribution: Vine Linux
  27. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  28. %description
  29. SpamBayes is a tool used to segregate unwanted mail (spam) from the mail you
  30. want (ham). Before SpamBayes can be your spam filter of choice you need to
  31. train it on representative samples of email you receive. After it's been
  32. trained, you use SpamBayes to classify new mail according to its spamminess
  33. and hamminess qualities.
  34. %description -l ja
  35. SpamBayes は迷惑メール(spam)を、必要なメール(ham)から区別するための道具です。
  36. SpamBayes をスパムフィルタとして使うには、過去に受け取ったメールを使ってトレ
  37. ーニングする必要があります。一旦、教え込んでしまえば、新しいメールをスパム度
  38. や、優良度をもとに分類するために使用できます。
  39. %prep
  40. %setup -q
  41. %patch0 -p1 -b .ProxyUI-iso2022jp
  42. %patch1 -p1 -b .PyMeldLite-iso2022jp
  43. %patch2 -p1 -b .tokenizer-iso2022jp
  44. %patch3 -p1 -b .Dibbler-iso2022jp
  45. %patch4 -p1 -b .ImapUI-RFC2060
  46. %patch5 -p1 -b .classifier
  47. %build
  48. python setup.py build
  49. %install
  50. rm -rf $RPM_BUILD_ROOT
  51. mkdir -p $RPM_BUILD_ROOT/%{python_sitelib}/spambayes
  52. python setup.py install --prefix=$RPM_BUILD_ROOT/usr
  53. install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/%{python_sitelib}/spambayes
  54. %clean
  55. rm -rf $RPM_BUILD_ROOT
  56. %files
  57. %defattr(-, root, root)
  58. %{python_sitelib}/spambayes
  59. %{python_sitelib}/spambayes-%{version}-py%{pyver}.egg-info
  60. %{_bindir}/*
  61. %defattr(-, root, root, 755)
  62. %doc *.txt PKG-INFO
  63. %changelog
  64. * Wed Feb 03 2010 Shu KONNO <owa@bg.wakwak.com> 1.0.4-4
  65. - rebuilt with python-2.6.4
  66. * Fri Aug 07 2009 Shu KONNO <owa@bg.wakwak.com> - 1.0.4-3
  67. - added BR: python-devel
  68. - dropt local macros
  69. * Sun Jul 20 2008 Shu KONNO <owa@bg.wakwak.com> 1.0.4-2vl5
  70. - rebuilt with python-2.5.2
  71. * Sat Jun 14 2008 Shu KONNO <owa@bg.wakwak.com> 1.0.4-1vl5
  72. - applied new versioning policy and spec in utf-8
  73. - added python_sitelib macro
  74. * Tue Oct 31 2006 Shu KONNO <owa@bg.wakwak.com> 1.0.4-0vl4
  75. - updated Patch2: spambayes-1.0.4.tokenizer-iso2022jp.patch
  76. - added Patch5: spambayes-1.0.4.classifier.patch
  77. * Sat May 20 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.4-0vl3
  78. - changed Group to Applications/Internet
  79. * Sun Sep 11 2005 Shu KONNO <owa@bg.wakwak.com> 1.0.4-0vl2
  80. - released new spambayes package
  81. - added Source1: SplitterForU.py
  82. - added Patch0: spambayes-1.0.4.ProxyUI-iso2022jp.patch
  83. - added Patch1: spambayes-1.0.4.PyMeldLite-iso2022jp.patch
  84. - added Patch2: spambayes-1.0.4.tokenizer-iso2022jp.patch
  85. - added Patch3: spambayes-1.0.4.Dibbler-iso2022jp.patch
  86. - added Patch4: spambayes-1.0.4.ImapUI-RFC2060.patch