Cleaned up spec, added conditionals to build on el again.
This commit is contained in:
parent
889c0badad
commit
60768d6148
@ -69,7 +69,7 @@ Summary: Spam filter for email which can be invoked from mail delivery agents
|
|||||||
Name: spamassassin
|
Name: spamassassin
|
||||||
Version: 3.4.0
|
Version: 3.4.0
|
||||||
#Release: 0.8.%{prerev}%{?dist}
|
#Release: 0.8.%{prerev}%{?dist}
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
Group: Applications/Internet
|
Group: Applications/Internet
|
||||||
URL: http://spamassassin.apache.org/
|
URL: http://spamassassin.apache.org/
|
||||||
@ -92,6 +92,7 @@ Source13: README.RHEL.Fedora
|
|||||||
%if %{use_systemd}
|
%if %{use_systemd}
|
||||||
Source14: spamassassin.service
|
Source14: spamassassin.service
|
||||||
%endif
|
%endif
|
||||||
|
Source15: spamassassin.sysconfig.el
|
||||||
# Patches 0-99 are RH specific
|
# Patches 0-99 are RH specific
|
||||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1055593
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1055593
|
||||||
# Switch to using gnupg2 instead of gnupg1
|
# Switch to using gnupg2 instead of gnupg1
|
||||||
@ -203,7 +204,11 @@ mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
|
|||||||
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/cron.d
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/cron.d
|
||||||
install -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/mail/spamassassin/local.cf
|
install -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/mail/spamassassin/local.cf
|
||||||
|
%if %{use_systemd}
|
||||||
install -m644 %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/spamassassin
|
install -m644 %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/spamassassin
|
||||||
|
%else
|
||||||
|
install -m644 %{SOURCE15} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/spamassassin
|
||||||
|
%endif
|
||||||
|
|
||||||
install -m 0644 %{SOURCE3} %buildroot/etc/mail/spamassassin
|
install -m 0644 %{SOURCE3} %buildroot/etc/mail/spamassassin
|
||||||
install -m 0644 %{SOURCE4} %buildroot/etc/mail/spamassassin
|
install -m 0644 %{SOURCE4} %buildroot/etc/mail/spamassassin
|
||||||
@ -365,6 +370,9 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Mar 19 2014 Kevin Fenzi <kevin@scrye.com> 3.4.0-3
|
||||||
|
- Cleaned up spec, added conditionals to build on el again.
|
||||||
|
|
||||||
* Sun Feb 16 2014 Kevin Fenzi <kevin@scrye.com> 3.4.0-2
|
* Sun Feb 16 2014 Kevin Fenzi <kevin@scrye.com> 3.4.0-2
|
||||||
- Simplify systemd unit file. Thanks misc. Fixes bug #1065762
|
- Simplify systemd unit file. Thanks misc. Fixes bug #1065762
|
||||||
|
|
||||||
|
2
spamassassin.sysconfig.el
Normal file
2
spamassassin.sysconfig.el
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Options to spamd
|
||||||
|
SPAMDOPTIONS="-d -c -m5 -H"
|
Loading…
Reference in New Issue
Block a user