commit a620321dbb2935d3a99c29b4b7966dab627cbbaf
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 e05db7e..d6cc3d1 100644
--- a/pypolicyd-spf.spec
+++ b/pypolicyd-spf.spec
@@ -5,7 +5,7 @@
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
@@ -34,11 +34,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
@@ -52,6 +54,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