%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %define pyver %(python -c 'import sys ; print sys.version[:3]') Summary: A collaborative, networked system to detect and block spam. Name: pyzor Version: 1.0.0 Release: 5 License: GPL Group: Networking/Mail URL: http://pyzor.sourceforge.net/ Source0: http://prdownloads.sourceforge.net/pyzor/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildArchitectures: noarch BuildRequires: python-devel >= 2.2.1 BuildRequires: python-setuptools #Requires: %{python_libdir} %description Pyzor is a collaborative, networked system to detect and block spam using identifying digests of messages. Pyzor initially started out to be merely a Python implementation of Razor, but due to the protocol and the fact that Razor's server is not Open Source or software libre, I decided to impelement Pyzor with a new protocol and release the entire system as Open Source and software libre. %prep %setup -q %build python setup.py build %install python setup.py install -O1 --skip-build --root=%{buildroot} install -d -m 755 %{buildroot}/etc/pyzor %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %{python_sitelib}/pyzor* %license COPYING %doc config/ README.rst THANKS /etc/pyzor/ /usr/bin/pyzor* %changelog * Mon Aug 3 2015 Scott R. Shinn - 0.7.0-5 - Update to 1.0.0 * Mon Nov 2 2009 Scott R. Shinn - 0.5.0-1 - Update to 0.5.0 * Mon Apr 30 2007 Scott R. Shinn - bump to -11 to overrid FC5/6 extras version * Wed Apr 18 2007 Scott R. Shinn - bump to -10 to override a FC4 extras naming convention - added patch-pyzor-unknowntype - added patch-pyzor-handle_unknown_encodings - added patch-pyzor-debian-mbox * Mon Feb 20 2006 Scott R. Shinn - import into ART * Thu Feb 16 2006 Axel Thimm - Fix digest TypeError bug. * Wed Feb 9 2005 Axel Thimm - Fix python burn in (Jens Dreger ). * Fri May 2 2003 Axel Thimm - Initial build.