spambayes-vl.spec 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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: 6%{?_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. * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.4-6
  65. - rebuild with python-2.7.2
  66. * Thu Apr 28 2011 Shu KONNO <owa@bg.wakwak.com> 1.0.4-5
  67. - rebuilt with python-2.6.6
  68. * Wed Feb 03 2010 Shu KONNO <owa@bg.wakwak.com> 1.0.4-4
  69. - rebuilt with python-2.6.4
  70. * Fri Aug 07 2009 Shu KONNO <owa@bg.wakwak.com> - 1.0.4-3
  71. - added BR: python-devel
  72. - dropt local macros
  73. * Sun Jul 20 2008 Shu KONNO <owa@bg.wakwak.com> 1.0.4-2vl5
  74. - rebuilt with python-2.5.2
  75. * Sat Jun 14 2008 Shu KONNO <owa@bg.wakwak.com> 1.0.4-1vl5
  76. - applied new versioning policy and spec in utf-8
  77. - added python_sitelib macro
  78. * Tue Oct 31 2006 Shu KONNO <owa@bg.wakwak.com> 1.0.4-0vl4
  79. - updated Patch2: spambayes-1.0.4.tokenizer-iso2022jp.patch
  80. - added Patch5: spambayes-1.0.4.classifier.patch
  81. * Sat May 20 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.4-0vl3
  82. - changed Group to Applications/Internet
  83. * Sun Sep 11 2005 Shu KONNO <owa@bg.wakwak.com> 1.0.4-0vl2
  84. - released new spambayes package
  85. - added Source1: SplitterForU.py
  86. - added Patch0: spambayes-1.0.4.ProxyUI-iso2022jp.patch
  87. - added Patch1: spambayes-1.0.4.PyMeldLite-iso2022jp.patch
  88. - added Patch2: spambayes-1.0.4.tokenizer-iso2022jp.patch
  89. - added Patch3: spambayes-1.0.4.Dibbler-iso2022jp.patch
  90. - added Patch4: spambayes-1.0.4.ImapUI-RFC2060.patch