Update for merge review - bug 226426
This commit is contained in:
parent
622bb50bb8
commit
ee88cf2acb
@ -1,20 +1,47 @@
|
|||||||
# OPTION: perl-Archive-Tar (FC2+, RHEL4.6+)
|
# OVERRIDE RHEL VERSION HERE, RHEL BUILDSYSTEM DOESN'T HAVE DIST TAG
|
||||||
%define option_archive_tar 1
|
#%%define rhel 4
|
||||||
# OPTION: SSL and IPv6 (FC6+, RHEL5+)
|
|
||||||
%define option_ssl 1
|
|
||||||
# OPTION: Split perl-devel (FC7+)
|
|
||||||
%define perl_devel 1
|
|
||||||
|
|
||||||
# DEPRECATED OPTION: Old krb5.h location (RHEL3 and old FC)
|
# Define Variables that must exist
|
||||||
%define option_old_krb5 0
|
%{?!rhel:%define rhel 0}
|
||||||
|
%{?!fedora:%define fedora 0}
|
||||||
|
|
||||||
|
# Map RHEL to Fedora version
|
||||||
|
%if 0%{?rhel} == 4
|
||||||
|
%define fedora 3
|
||||||
|
%define dist .el4
|
||||||
|
%endif
|
||||||
|
%if 0%{?rhel} == 5
|
||||||
|
%define fedora 6
|
||||||
|
%define dist .el5
|
||||||
|
%endif
|
||||||
|
|
||||||
|
# Define variables to use in conditionals
|
||||||
|
%define option_archive_tar 0
|
||||||
|
%define option_ssl 0
|
||||||
|
%define perl_devel 0
|
||||||
|
|
||||||
|
# perl-Archive-Tar (FC2+, RHEL4.6+)
|
||||||
|
%if 0%{?fedora} > 1
|
||||||
|
%define option_archive_tar 1
|
||||||
|
%endif
|
||||||
|
|
||||||
|
# SSL and IPv6 (FC6+, RHEL5+)
|
||||||
|
%if 0%{?fedora} > 5
|
||||||
|
%define option_ssl 1
|
||||||
|
%endif
|
||||||
|
|
||||||
|
# Split perl-devel (FC7+)
|
||||||
|
%if 0%{?fedora} > 6
|
||||||
|
%define perl_devel 1
|
||||||
|
%endif
|
||||||
|
|
||||||
%define real_name Mail-SpamAssassin
|
%define real_name Mail-SpamAssassin
|
||||||
%{!?perl_vendorlib: %define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)}
|
%{!?perl_vendorlib: %define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)}
|
||||||
|
|
||||||
Summary: Spam filter for email which can be invoked from mail delivery agents.
|
Summary: Spam filter for email which can be invoked from mail delivery agents
|
||||||
Name: spamassassin
|
Name: spamassassin
|
||||||
Version: 3.2.5
|
Version: 3.2.5
|
||||||
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/
|
||||||
@ -34,7 +61,6 @@ Source10: spamassassin-helper.sh
|
|||||||
# end of patches
|
# end of patches
|
||||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||||
Buildroot: %{_tmppath}/%{name}-root
|
Buildroot: %{_tmppath}/%{name}-root
|
||||||
Prefix: %{_prefix}
|
|
||||||
Requires: /sbin/chkconfig /sbin/service
|
Requires: /sbin/chkconfig /sbin/service
|
||||||
Requires(post): diffutils
|
Requires(post): diffutils
|
||||||
|
|
||||||
@ -99,15 +125,14 @@ To filter spam for all users, add that line to /etc/procmailrc
|
|||||||
%build
|
%build
|
||||||
export CFLAGS="$RPM_OPT_FLAGS"
|
export CFLAGS="$RPM_OPT_FLAGS"
|
||||||
%{__perl} Makefile.PL DESTDIR=$RPM_BUILD_ROOT/ SYSCONFDIR=%{_sysconfdir} INSTALLDIRS=vendor ENABLE_SSL=yes < /dev/null
|
%{__perl} Makefile.PL DESTDIR=$RPM_BUILD_ROOT/ SYSCONFDIR=%{_sysconfdir} INSTALLDIRS=vendor ENABLE_SSL=yes < /dev/null
|
||||||
|
%{__make} OPTIMIZE="$RPM_OPT_FLAGS" %{?_smp_mflags}
|
||||||
%{__make} %{?option_old_krb5:SSLCFLAGS=-DSPAMC_SSL\ -I/usr/kerberos/include} OPTIMIZE="$RPM_OPT_FLAGS"
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
%makeinstall PREFIX=%buildroot/%{prefix} \
|
%makeinstall PREFIX=%buildroot/%{prefix} \
|
||||||
INSTALLMAN1DIR=%buildroot/%{_mandir}/man1 \
|
INSTALLMAN1DIR=%buildroot/%{_mandir}/man1 \
|
||||||
INSTALLMAN3DIR=%buildroot/%{_mandir}/man3 \
|
INSTALLMAN3DIR=%buildroot/%{_mandir}/man3 \
|
||||||
LOCAL_RULES_DIR=%{buildroot}/etc/mail/spamassassin
|
LOCAL_RULES_DIR=%{buildroot}/etc/mail/spamassassin
|
||||||
chmod 755 %buildroot/%{_bindir}/* # allow stripping
|
chmod 755 %buildroot/%{_bindir}/* # allow stripping
|
||||||
install -d %buildroot/%{_initrddir}
|
install -d %buildroot/%{_initrddir}
|
||||||
install -m 0755 spamd/redhat-rc-script.sh %buildroot/%{_initrddir}/spamassassin
|
install -m 0755 spamd/redhat-rc-script.sh %buildroot/%{_initrddir}/spamassassin
|
||||||
@ -121,9 +146,11 @@ install -m644 %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/spamassassin
|
|||||||
|
|
||||||
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
|
||||||
|
# installed mode 755 as it's executed by users.
|
||||||
install -m 0755 %{SOURCE10} %buildroot/etc/mail/spamassassin
|
install -m 0755 %{SOURCE10} %buildroot/etc/mail/spamassassin
|
||||||
install -m 0644 %{SOURCE6} %buildroot/etc/logrotate.d/sa-update
|
install -m 0644 %{SOURCE6} %buildroot/etc/logrotate.d/sa-update
|
||||||
install -m 0600 %{SOURCE7} %buildroot/etc/cron.d/sa-update
|
install -m 0644 %{SOURCE7} %buildroot/etc/cron.d/sa-update
|
||||||
|
# installed mode 744 as non root users can't run it, but can read it.
|
||||||
install -m 0744 %{SOURCE8} %buildroot%{_datadir}/spamassassin/sa-update.cron
|
install -m 0744 %{SOURCE8} %buildroot%{_datadir}/spamassassin/sa-update.cron
|
||||||
|
|
||||||
[ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
|
[ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
|
||||||
@ -149,14 +176,14 @@ mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/spamassassin
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc LICENSE NOTICE CREDITS Changes README TRADEMARK UPGRADE
|
%doc LICENSE NOTICE CREDITS Changes README TRADEMARK UPGRADE
|
||||||
%doc USAGE sample-nonspam.txt sample-spam.txt
|
%doc USAGE sample-nonspam.txt sample-spam.txt
|
||||||
%config %{_initrddir}/spamassassin
|
%{_initrddir}/spamassassin
|
||||||
%config(noreplace) %{_sysconfdir}/mail/spamassassin
|
%config(noreplace) %{_sysconfdir}/mail/spamassassin
|
||||||
%config(noreplace) %{_sysconfdir}/sysconfig/spamassassin
|
%config(noreplace) %{_sysconfdir}/sysconfig/spamassassin
|
||||||
%config(noreplace) %{_sysconfdir}/cron.d/sa-update
|
%config(noreplace) %{_sysconfdir}/cron.d/sa-update
|
||||||
%dir %{_datadir}/spamassassin
|
%dir %{_datadir}/spamassassin
|
||||||
%dir %{_localstatedir}/run/spamassassin
|
%dir %{_localstatedir}/run/spamassassin
|
||||||
%dir %{_localstatedir}/lib/spamassassin
|
%dir %{_localstatedir}/lib/spamassassin
|
||||||
%{_sysconfdir}/logrotate.d/sa-update
|
%config(noreplace) %{_sysconfdir}/logrotate.d/sa-update
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
@ -195,6 +222,9 @@ fi
|
|||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Dec 15 2008 Kevin Fenzi <kevin@tummy.com> - 3.2.5-3
|
||||||
|
- Update for merge review - bug 226426
|
||||||
|
|
||||||
* Thu Sep 4 2008 Tom "spot" Callaway <tcallawa@redhat.com> 3.2.5-2
|
* Thu Sep 4 2008 Tom "spot" Callaway <tcallawa@redhat.com> 3.2.5-2
|
||||||
- fix license tag
|
- fix license tag
|
||||||
|
|
||||||
@ -539,7 +569,7 @@ exit 0
|
|||||||
- fix SIGCHLD handling
|
- fix SIGCHLD handling
|
||||||
|
|
||||||
* Mon Feb 10 2003 Bill Nottingham <notting@redhat.com>
|
* Mon Feb 10 2003 Bill Nottingham <notting@redhat.com>
|
||||||
- move condrestart to %postun
|
- move condrestart to %%postun
|
||||||
|
|
||||||
* Sun Feb 2 2003 Chip Turner <cturner@redhat.com>
|
* Sun Feb 2 2003 Chip Turner <cturner@redhat.com>
|
||||||
- update to 2.44
|
- update to 2.44
|
||||||
@ -577,7 +607,7 @@ exit 0
|
|||||||
- automated release bump and build
|
- automated release bump and build
|
||||||
|
|
||||||
* Thu Jul 18 2002 Chip Turner <cturner@redhat.com>
|
* Thu Jul 18 2002 Chip Turner <cturner@redhat.com>
|
||||||
- better control of service level, improvement in %post script.
|
- better control of service level, improvement in %%post script.
|
||||||
- (contribs from schirmer@taytron.net)
|
- (contribs from schirmer@taytron.net)
|
||||||
|
|
||||||
* Fri Jun 28 2002 Chip Turner <cturner@redhat.com>
|
* Fri Jun 28 2002 Chip Turner <cturner@redhat.com>
|
||||||
|
Loading…
Reference in New Issue
Block a user