[spambayes/epel7] Update to 1.1b1
Christopher Meng
cicku at fedoraproject.org
Thu Feb 27 04:26:42 UTC 2014
commit 0fd69a2c2540c3b158e4873252f4e5f98e922c2a
Author: Christopher Meng <i at cicku.me>
Date: Thu Feb 27 12:26:20 2014 +0800
Update to 1.1b1
.gitignore | 1 +
sources | 2 +-
spambayes.spec | 33 ++++++++++++++++++---------------
3 files changed, 20 insertions(+), 16 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index dfe1462..771072e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/spambayes-1.1a6.tar.gz
+/spambayes-1.1b1.tar.gz
diff --git a/sources b/sources
index 926321a..283ea71 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-d06ed6d097911ddc8db31b4e9663df4b spambayes-1.1a6.tar.gz
+ce8defe6bb0da7f7acdde84e37ef57dd spambayes-1.1b1.tar.gz
diff --git a/spambayes.spec b/spambayes.spec
index 6206694..a47a3e6 100644
--- a/spambayes.spec
+++ b/spambayes.spec
@@ -1,17 +1,14 @@
-%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
-%global pre a6
+%global pre b1
Name: spambayes
Version: 1.1
-Release: 0.7.%{pre}%{?dist}
-Summary: Bayesian anti-spam filter
-Group: Development/Languages
+Release: 0.8.%{pre}%{?dist}
+Summary: Bayesian anti-spam classifier written in Python
License: Python
URL: http://spambayes.sourceforge.net
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}%{pre}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
BuildArch: noarch
-BuildRequires: python-devel
+BuildRequires: python2-devel
%if 0%{?fedora} >= 8
BuildRequires: python-setuptools-devel
%else
@@ -37,11 +34,10 @@ system then uses these clues to examine new messages.
chmod -c -x *.txt
%build
-%{__python} -c 'import setuptools; execfile("setup.py")' build
+%{__python2} setup.py build
%install
-rm -rf %{buildroot}
-%{__python} -c 'import setuptools; execfile("setup.py")' install --skip-build --root %{buildroot}
+%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
# Add exec permission for modules that can be run directly
for f in %{buildroot}%{python_sitelib}/spambayes/*.py; do
@@ -49,18 +45,25 @@ for f in %{buildroot}%{python_sitelib}/spambayes/*.py; do
chmod -c +x $f
fi
done
-
-%clean
-rm -rf %{buildroot}
+
+%check
+# Tests require plotmtv installed which is impossible for Fedora.
+# And plotmtv is abandoned already.
+#cd testtools && chmod +x dotest.sh && ./dotest.sh
%files
-%defattr(-,root,root,-)
%doc *.txt
-%{python_sitelib}/spambayes*
+%{python2_sitelib}/spambayes*
%{_bindir}/core_server.py
%{_bindir}/sb_*.py
%changelog
+* Wed Feb 26 2014 Christopher Meng <rpm at cicku.me> - 1.1-0.8.b1
+- Update to 1.1b1
+
+* Sun Aug 04 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.1-0.7.a6
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
+
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.1-0.7.a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
More information about the scm-commits
mailing list