rpms/spambayes/FC-6 spambayes.spec,1.1,1.2

Christopher Stone (xulchris) fedora-extras-commits at redhat.com
Wed Oct 17 12:57:44 UTC 2007


Author: xulchris

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

Modified Files:
	spambayes.spec 
Log Message:
provide eggs


Index: spambayes.spec
===================================================================
RCS file: /cvs/extras/rpms/spambayes/FC-6/spambayes.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- spambayes.spec	30 Apr 2007 00:34:02 -0000	1.1
+++ spambayes.spec	17 Oct 2007 12:57:11 -0000	1.2
@@ -2,11 +2,11 @@
 
 Name:           spambayes
 Version:        1.0.4
-Release:        4%{?dist}
+Release:        5%{?dist}
 Summary:        Bayesian anti-spam filter
 
 Group:          Development/Languages
-License:        Python Software Foundation License
+License:        Python
 URL:            http://spambayes.sourceforge.net
 Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
 Patch0:         %{name}-1.0.4-py25.patch
@@ -15,6 +15,12 @@
 BuildArch:      noarch
 BuildRequires:  python-devel
 
+%if 0%{?fedora} >= 8
+BuildRequires: python-setuptools-devel
+%else
+BuildRequires: python-setuptools
+%endif
+
 %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
@@ -45,12 +51,12 @@
 
 
 %build
-%{__python} setup.py build
+CFLAGS="$RPM_OPT_FLAGS" %{__python} -c 'import setuptools; execfile("setup.py")' build
 
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+%{__python} -c 'import setuptools; execfile("setup.py")' install --skip-build --root $RPM_BUILD_ROOT
 
  
 %clean
@@ -67,6 +73,9 @@
 
 
 %changelog
+* Wed Oct 17 2007 Christopher Stone <chris.stone at gmail.com> 1.0.4-5
+- Providing Eggs for non-setuptools packages (bz#325041)
+
 * Fri Apr 27 2007 Christopher Stone <chris.stone at gmail.com> 1.0.4-4
 - Remove python from package name
 




More information about the fedora-extras-commits mailing list