rpms/spambayes/FC-5 spambayes-1.0.4-py25.patch, NONE, 1.1 spambayes.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Christopher Stone (xulchris) fedora-extras-commits at redhat.com
Mon Apr 30 00:35:41 UTC 2007


Author: xulchris

Update of /cvs/extras/rpms/spambayes/FC-5
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv28201/FC-5

Modified Files:
	.cvsignore sources 
Added Files:
	spambayes-1.0.4-py25.patch spambayes.spec 
Log Message:


spambayes-1.0.4-py25.patch:

--- NEW FILE spambayes-1.0.4-py25.patch ---
--- spambayes/Corpus.py~	2007-04-05 13:19:35.000000000 -0700
+++ spambayes/Corpus.py	2007-04-05 13:20:03.000000000 -0700
@@ -1,5 +1,7 @@
 #! /usr/bin/env python
 
+from __future__ import generators
+
 '''Corpus.py - Spambayes corpus management framework.
 
 Classes:
@@ -79,8 +81,6 @@
 __author__ = "Tim Stone <tim at fourstonesExpressions.com>"
 __credits__ = "Richie Hindle, Tim Peters, all the spambayes contributors."
 
-from __future__ import generators
-
 try:
     True, False
 except NameError:
--- spambayes/FileCorpus.py~	2007-04-05 13:19:40.000000000 -0700
+++ spambayes/FileCorpus.py	2007-04-05 13:20:15.000000000 -0700
@@ -1,5 +1,7 @@
 #! /usr/bin/env python
 
+from __future__ import generators
+
 """FileCorpus.py - Corpus composed of file system artifacts
 
 Classes:
@@ -82,8 +84,6 @@
 __author__ = "Tim Stone <tim at fourstonesExpressions.com>"
 __credits__ = "Richie Hindle, Tim Peters, all the spambayes contributors."
 
-from __future__ import generators
-
 from spambayes import Corpus
 from spambayes import message
 from spambayes import storage
--- spambayes/message.py~	2007-04-05 13:19:44.000000000 -0700
+++ spambayes/message.py	2007-04-05 13:20:26.000000000 -0700
@@ -1,5 +1,7 @@
 #! /usr/bin/env python
 
+from __future__ import generators
+
 """message.py - Core Spambayes classes.
 
 Classes:
@@ -75,8 +77,6 @@
 __author__ = "Tim Stone <tim at fourstonesExpressions.com>"
 __credits__ = "Mark Hammond, Tony Meyer, all the spambayes contributors."
 
-from __future__ import generators
-
 try:
     True, False
 except NameError:


--- NEW FILE spambayes.spec ---
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

Name:           spambayes
Version:        1.0.4
Release:        4%{?dist}
Summary:        Bayesian anti-spam filter

Group:          Development/Languages
License:        Python Software Foundation License
URL:            http://spambayes.sourceforge.net
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Patch0:         %{name}-1.0.4-py25.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:      noarch
BuildRequires:  python-devel

%description
SpamBayes will attempt to classify incoming email messages as 'spam', 'ham'
(good, non-spam email) or 'unsure'. This means you can have spam or unsure
messages automatically filed away in a different mail folder, where it won't
interrupt your email reading. First SpamBayes must be trained by each user to
identify spam and ham. Essentially, you show SpamBayes a pile of email that
you like (ham) and a pile you don't like (spam). SpamBayes will then analyze
the piles for clues as to what makes the spam and ham different. For example;
different words, differences in the mailer headers and content style.  The
system then uses these clues to examine new messages.


%prep
%setup -q
%patch0 -p0 -b .py25~

# Fix rpmlint warnings
chmod -x *.txt

# remove shell bangs
pushd %{name}
for file in $(find . -type f -name "*.py"); do
  cp $file $file.orig
  grep -v -e "^\#\!" $file.orig > $file
  rm -f $file.orig
done
popd


%build
%{__python} setup.py build


%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT

 
%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc *.txt
%{python_sitelib}/*
%{_bindir}/*
%exclude %{_bindir}/*.pyo
%exclude %{_bindir}/*.pyc


%changelog
* Fri Apr 27 2007 Christopher Stone <chris.stone at gmail.com> 1.0.4-4
- Remove python from package name

* Thu Apr 05 2007 Christopher Stone <chris.stone at gmail.com> 1.0.4-3
- Add patch to fix python2.5 errors

* Thu Apr 05 2007 Christopher Stone <chris.stone at gmail.com> 1.0.4-2
- %%exclude pyo and pyc files from %%{_bindir}
- Add scriptlet to remove shebangs

* Sat Mar 31 2007 Christopher Stone <chris.stone at gmail.com> 1.0.4-1
- Initial Fedora release


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/spambayes/FC-5/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	29 Apr 2007 22:18:13 -0000	1.1
+++ .cvsignore	30 Apr 2007 00:35:06 -0000	1.2
@@ -0,0 +1 @@
+spambayes-1.0.4.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/spambayes/FC-5/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	29 Apr 2007 22:18:13 -0000	1.1
+++ sources	30 Apr 2007 00:35:06 -0000	1.2
@@ -0,0 +1 @@
+78c33e79888d410711ff3c7dd7e98d79  spambayes-1.0.4.tar.gz




More information about the scm-commits mailing list