/[smeserver]/rpms/spamassassin/sme9/spamassassin.spec
ViewVC logotype

Diff of /rpms/spamassassin/sme9/spamassassin.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.5 by vip-ire, Fri Jul 10 06:21:33 2015 UTC Revision 1.9 by jpp, Wed Jun 20 03:34:41 2018 UTC
# Line 1  Line 1 
1  %define pkgname Mail-SpamAssassin  %define pkgname Mail-SpamAssassin
2    
3  Name: spamassassin  Name: spamassassin
4  Version: 3.3.2  Version: 3.4.1
5  Release: 59%{?dist}  Release: 2%{?dist}
6  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
7  License: Apache  License: Apache
8  Group: Applications/Internet  Group: Applications/Internet
9  URL: http://spamassassin.apache.org/  URL: http://spamassassin.apache.org/
10  Source0: http://www.apache.org/dist/spamassassin/source/Mail-SpamAssassin-%{version}.tar.bz2  Source0: http://www.apache.org/dist/spamassassin/source/Mail-SpamAssassin-%{version}.tar.bz2
11  Source1: http://www.apache.org/dist/spamassassin/source/Mail-SpamAssassin-rules-%{version}-r1104058.tar.gz  Source1: http://www.apache.org/dist/spamassassin/source/Mail-SpamAssassin-rules-%{version}.r1675274.tgz
12  Source2: redhat_local3.cf  Source2: redhat_local3.cf
13  Source3: spamassassin-default.rc  Source3: spamassassin-default.rc
14  Source4: spamassassin-spamc.rc  Source4: spamassassin-spamc.rc
# Line 25  Source50: http://www.apache.org/dist/spa Line 25  Source50: http://www.apache.org/dist/spa
25  #Source60: http://yerp.org/rules/GPG.KEY  #Source60: http://yerp.org/rules/GPG.KEY
26  Source60: GPG-sought.KEY  Source60: GPG-sought.KEY
27  Patch0: Mail-SpamAssassin-3.0.0-krb5.patch  Patch0: Mail-SpamAssassin-3.0.0-krb5.patch
 #Patch1: sa-1027163-for-3.3.diff  
 Patch1000: Mail-SpamAssassin-3.3.2-update_RegistrarBoundaries.patch  
28  Buildroot: %{_tmppath}/%{name}-root  Buildroot: %{_tmppath}/%{name}-root
29  Requires(pre): /sbin/chkconfig /sbin/service  Requires(pre): /sbin/chkconfig /sbin/service
30    
 BuildRequires: atrpms-rpm-config  
31  BuildRequires: openssl-devel, krb5-devel  BuildRequires: openssl-devel, krb5-devel
32  BuildRequires: autoconf  BuildRequires: autoconf
33  BuildRequires: perl >= 2:5.8.1  BuildRequires: perl >= 2:5.8.1
# Line 43  BuildRequires: perl(HTML::Parser) >= 3.4 Line 40  BuildRequires: perl(HTML::Parser) >= 3.4
40  BuildRequires: perl(Archive::Tar) >= 1.23  BuildRequires: perl(Archive::Tar) >= 1.23
41  BuildRequires: perl(Mail::DKIM) >= 0.37  BuildRequires: perl(Mail::DKIM) >= 0.37
42  BuildRequires: perl(Net::DNS) >= 0.58  BuildRequires: perl(Net::DNS) >= 0.58
43  BuildRequires: perl(NetAddr::IP)  BuildRequires: perl(NetAddr::IP) >= 4.010
44  BuildRequires: perl(Sys::Hostname)  BuildRequires: perl(Sys::Hostname)
45  BuildRequires: perl(Time::HiRes)  BuildRequires: perl(Time::HiRes)
46  BuildRequires: perl(Time::Local)  BuildRequires: perl(Time::Local)
# Line 73  BuildRequires: mod_perl Line 70  BuildRequires: mod_perl
70  BuildRequires: %{_bindir}/dccproc  BuildRequires: %{_bindir}/dccproc
71  BuildRequires: %{_bindir}/pyzor  BuildRequires: %{_bindir}/pyzor
72    
73    ##JPP
74    BuildRequires: perl(Net::DNS::Nameserver)
75    
76  ###  ###
77  Requires: perl(Digest::SHA)  Requires: perl(Digest::SHA)
78  Requires: perl(File::Spec) >= 0.8  Requires: perl(File::Spec) >= 0.8
# Line 139  To filter spam for all users, add that l Line 139  To filter spam for all users, add that l
139  %prep  %prep
140  %setup -q -n %{pkgname}-%{version}  %setup -q -n %{pkgname}-%{version}
141  %patch0 -p1 -b .krb5  %patch0 -p1 -b .krb5
 #patch1 -p0 -b .goto  
 %patch1000 -p1  
142    
143  %build  %build
144  (cd spamc; autoconf)  (cd spamc; autoconf)
145  %define _perl_buildroot %{nil}  %define _perl_buildroot %{nil}
146  %perl_configure ENABLE_SSL=yes  test -z "$PERL5LIB" && export PERL5LIB=%{buildroot}%{perl_vendorarch}:%{buildroot}%{perl_vendorlib} || \
147  %perl_make    export PERL5LIB="$PERL5LIB":%{buildroot}%{perl_vendorarch}:%{buildroot}%{perl_vendorlib}
148  %perl_makecheck || :  test -z "$CFLAGS" && export CFLAGS="%{optflags}"
149    %{__perl} Makefile.PL 'PREFIX=%{_perl_buildroot}%{_prefix}' INSTALLDIRS=vendor ENABLE_SSL=yes
150    %{__perl} -pi -e 's/^\tLD_RUN_PATH=[^\s]+\s*/\t/' Makefile
151    %{__make} OPTIMIZE="$RPM_OPT_FLAGS"
152    %if %{?_without_check:0}%{!?_without_check:1}
153    %{__make} test || :
154    %endif
155  mv spamd/README spamd/README.spamd  mv spamd/README spamd/README.spamd
156    
157  %install  %install
158  rm -rf %{buildroot}  rm -rf %{buildroot}
159  %perl_makeinstall DESTDIR=%{buildroot}  %{__make} install DESTDIR_REDIRECT=%{buildroot} DESTDIR=%{buildroot}
160    find %{buildroot} \( -name .packlist -or -name perllocal.pod -or \( -name '*.bs' -a -empty \) \) -exec rm -f {} \;
161  install -d %{buildroot}/%{_initrddir}  install -d %{buildroot}/%{_initrddir}
162  install -p -m 0755 spamd/redhat-rc-script.sh %{buildroot}/%{_initrddir}/spamassassin  install -p -m 0755 spamd/redhat-rc-script.sh %{buildroot}/%{_initrddir}/spamassassin
163    
# Line 196  mkdir -p %{buildroot}/var/lib/spamassass Line 201  mkdir -p %{buildroot}/var/lib/spamassass
201    
202  %{perl_vendorlib}/Mail/SpamAssassin.pm  %{perl_vendorlib}/Mail/SpamAssassin.pm
203  %{perl_vendorlib}/Mail/SpamAssassin  %{perl_vendorlib}/Mail/SpamAssassin
204  %{perl_man3dir}/Mail::SpamAssassin*.3pm*  %{_mandir}/man3/Mail::SpamAssassin*.3pm*
205  %{perl_man1dir}/sa-awl.1*  %{_mandir}/man1/sa-awl.1*
206  %{perl_vendorlib}/spamassassin-run.pod  %{perl_vendorlib}/spamassassin-run.pod
207  %{_datadir}/spamassassin  %{_datadir}/spamassassin
208    
# Line 256  fi Line 261  fi
261  exit 0  exit 0
262    
263  %changelog  %changelog
264    * Tue Jun 19 2018 Jean-Philipe Pialasse <tests@pialasse.com> 3.4.1-2.sme
265    - add build require perl(Net::DNS::Nameserver)  and import dependencies [SME: 10597]
266    
267    * Wed Jan 6 2016 Daniel Berteaud <daniel@firewall-services.com> - 3.4.1-1.sme
268    - Update to 3.4.1 [SME: 9153]
269    
270    * Fri Jul 10 2015 Daniel Berteaud <daniel@firewall-services.com> - 3.3.2-60.sme
271    - Expand atrpms macro and remove BuildReq on atrpms-rpm-config [SME: 8980]
272    
273  * Fri Jul 10 2015 Daniel Berteaud <daniel@firewall-services.com> - 3.3.2-59.sme  * Fri Jul 10 2015 Daniel Berteaud <daniel@firewall-services.com> - 3.3.2-59.sme
274  - Add atrpms-rpm-config to the BUildReq so it can build [SME: 8980]  - Add atrpms-rpm-config to the BUildReq so it can build [SME: 8980]
275    


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed