From 9118364164a714745428d51da2b81840ec1cff65 Mon Sep 17 00:00:00 2001 From: Stuart Gathman Date: Tue, 16 Dec 2008 04:21:05 +0000 Subject: [PATCH] Fedora release --- miltermodule.c | 7 +++++-- pymilter.spec | 11 ++++++----- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/miltermodule.c b/miltermodule.c index cd5b397..d8f8845 100644 --- a/miltermodule.c +++ b/miltermodule.c @@ -35,6 +35,9 @@ $ python setup.py help libraries=["milter","smutil","resolv"] * $Log$ + * Revision 1.15 2008/12/13 20:29:56 customdesigned + * Split off milter applications. + * * Revision 1.14 2008/12/04 19:43:00 customdesigned * Doc updates. * @@ -1146,8 +1149,8 @@ milter_replacebody(PyObject *self, PyObject *args) { ctx = _find_context(self); if (ctx == NULL) return NULL; t = PyEval_SaveThread(); - return _thread_return(t,smfi_replacebody(ctx, bodyp, bodylen), - "cannot replace message body"); + return _thread_return(t,smfi_replacebody(ctx, + (unsigned char *)bodyp, bodylen), "cannot replace message body"); } static char milter_setpriv__doc__[] = diff --git a/pymilter.spec b/pymilter.spec index 2894252..fcac1cb 100644 --- a/pymilter.spec +++ b/pymilter.spec @@ -1,6 +1,7 @@ -%define __python python2.4 +%define __python python +#define __python python2.4 %define version 0.9.0 -%define release 1.el4 +%define release 1%{dist} %define libdir %{_libdir}/pymilter %define name pymilter %define redhat7 0 @@ -9,11 +10,11 @@ Summary: Python interface to sendmail milter API Name: %{name} Version: %{version} Release: %{release} -Source: %{name}-%{version}.tar.gz +Source: http://downloads.sf.net/pymilter/%{name}-%{version}.tar.gz #Patch: %{name}-%{version}.patch License: GPLv2+ Group: Development/Libraries -BuildRoot: %{_tmppath}/%{name}-buildroot +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root Vendor: Stuart D. Gathman Url: http://www.bmsi.com/python/milter.html Requires: %{__python} >= 2.4, sendmail >= 8.13 @@ -61,7 +62,7 @@ EOF %endif chmod a+x $RPM_BUILD_ROOT%{libdir}/start.sh %if !%{redhat7} -#grep '.pyc$' INSTALLED_FILES | sed -e 's/c$/o/' >>INSTALLED_FILES +grep '.pyc$' INSTALLED_FILES | sed -e 's/c$/o/' >>INSTALLED_FILES %endif # start.sh is used by spfmilter and milter, and could be used by