commit 53c22d2649196008ab4cb32302add3b2e14480bd
Author: Bojan Smojver <bojan(a)rexursive.com>
Date: Wed Oct 1 12:59:54 2014 +1000
Fix bug #1138206.
pypolicyd-spf.spec | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/pypolicyd-spf.spec b/pypolicyd-spf.spec
index 15971ec..cf9ef95 100644
--- a/pypolicyd-spf.spec
+++ b/pypolicyd-spf.spec
@@ -1,6 +1,6 @@
Name: pypolicyd-spf
Version: 1.3.1
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: SPF Policy Server for Postfix (Python implementation)
License: ASL 2.0
@@ -29,11 +29,13 @@ range of requirements.
%install
-rm -rf $RPM_BUILD_ROOT
+%{__rm} -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
# We want the binary in Postfix libexec directory
-mkdir -p $RPM_BUILD_ROOT%{_libexecdir}/postfix
-mv $RPM_BUILD_ROOT%{_bindir}/policyd-spf $RPM_BUILD_ROOT%{_libexecdir}/postfix
+%{__mkdir_p} $RPM_BUILD_ROOT%{_libexecdir}/postfix
+%{__mv} $RPM_BUILD_ROOT%{_bindir}/policyd-spf $RPM_BUILD_ROOT%{_libexecdir}/postfix
+%{__sed} -i -e 's/^HELO_reject = SPF_Not_Pass$/HELO_reject = Fail/' \
+ $RPM_BUILD_ROOT%{_sysconfdir}/python-policyd-spf/policyd-spf.conf
%files
%doc README README.per_user_whitelisting CHANGES COPYING
@@ -47,6 +49,9 @@ mv $RPM_BUILD_ROOT%{_bindir}/policyd-spf $RPM_BUILD_ROOT%{_libexecdir}/postfix
%changelog
+* Wed Oct 1 2014 Bojan Smojver <bojan(a)rexursive.com> 1.3.1-2
+- fix bug #1138206
+
* Fri Sep 5 2014 Bojan Smojver <bojan(a)rexursive.com> 1.3.1-1
- bump up to 1.3.1