/[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.6 by vip-ire, Fri Jul 10 14:26:18 2015 UTC Revision 1.12 by jcrisp, Wed Nov 25 15:24:27 2020 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.4
5  Release: 60%{?dist}  Release: 1%{?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}.r1873061.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    
# Line 42  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 72  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 138  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    test -z "$PERL5LIB" && export PERL5LIB=%{buildroot}%{perl_vendorarch}:%{buildroot}%{perl_vendorlib} || \
147      export PERL5LIB="$PERL5LIB":%{buildroot}%{perl_vendorarch}:%{buildroot}%{perl_vendorlib}
148  test -z "$CFLAGS" && export CFLAGS="%{optflags}"  test -z "$CFLAGS" && export CFLAGS="%{optflags}"
149  %{__perl} Makefile.PL 'PREFIX=%{_perl_buildroot}%{_prefix}' INSTALLDIRS=vendor ENABLE_SSL=yes  %{__perl} Makefile.PL 'PREFIX=%{_perl_buildroot}%{_prefix}' INSTALLDIRS=vendor ENABLE_SSL=yes
150  %{__perl} -pi -e 's/^\tLD_RUN_PATH=[^\s]+\s*/\t/' Makefile  %{__perl} -pi -e 's/^\tLD_RUN_PATH=[^\s]+\s*/\t/' Makefile
151  %{__make} OPTIMIZE="$RPM_OPT_FLAGS"  %{__make} OPTIMIZE="$RPM_OPT_FLAGS"
152  %if %{?_without_check:0}%{!?_without_check:1}  %if %{?_without_check:0}%{!?_without_check:1}
153  %{__make} test ||:  %{__make} test || :
154  %endif  %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 185  popd Line 187  popd
187    
188  install -p -m 0644 %{SOURCE20} %{buildroot}%{_datadir}/spamassassin/99_bogus-virus-warnings.cf  install -p -m 0644 %{SOURCE20} %{buildroot}%{_datadir}/spamassassin/99_bogus-virus-warnings.cf
189    
190  install -p -m 0644 %{SOURCE60} %{buildroot}%{_datadir}/spamassassin/sought.rules.yerp.org-key.txt  #install -p -m 0644 %{SOURCE60} %{buildroot}%{_datadir}/spamassassin/sought.rules.yerp.org-key.txt
191  install -p -m 0644 %{SOURCE50} %{buildroot}%{_datadir}/spamassassin/release-spamassassin.org-key.txt  install -p -m 0644 %{SOURCE50} %{buildroot}%{_datadir}/spamassassin/release-spamassassin.org-key.txt
192  install -p -m 0644 %{SOURCE40} %{buildroot}%{_datadir}/spamassassin/updates.spamassassin.org-key.txt  install -p -m 0644 %{SOURCE40} %{buildroot}%{_datadir}/spamassassin/updates.spamassassin.org-key.txt
193  #install -p -m 0644 %{SOURCE30} %{buildroot}%{_datadir}/spamassassin/saupdates.openprotect.com-key.txt  #install -p -m 0644 %{SOURCE30} %{buildroot}%{_datadir}/spamassassin/saupdates.openprotect.com-key.txt
# Line 199  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 244  done Line 246  done
246  sa-update --import %{_datadir}/spamassassin/release-spamassassin.org-key.txt  sa-update --import %{_datadir}/spamassassin/release-spamassassin.org-key.txt
247  sa-update --import %{_datadir}/spamassassin/updates.spamassassin.org-key.txt  sa-update --import %{_datadir}/spamassassin/updates.spamassassin.org-key.txt
248  #sa-update --import %{_datadir}/spamassassin/saupdates.openprotect.com-key.txt  #sa-update --import %{_datadir}/spamassassin/saupdates.openprotect.com-key.txt
249  sa-update --import %{_datadir}/spamassassin/sought.rules.yerp.org-key.txt  #sa-update --import %{_datadir}/spamassassin/sought.rules.yerp.org-key.txt
250    
251  %postun  %postun
252  if [ "$1" -ge "1" ]; then  if [ "$1" -ge "1" ]; then
# Line 259  fi Line 261  fi
261  exit 0  exit 0
262    
263  %changelog  %changelog
264    * Mon Jan 07 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 3.4.2-2.sme
265    - Obsolete sought.rules.yerp.org references [SME:10597]
266    - Comment out sought.rules.yerp.org in channels
267    
268    * Wed Dec 12 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 3.4.2-1.sme
269    - update to 3.4.2 [SME: 10597]
270    
271    * Tue Jun 19 2018 Jean-Philipe Pialasse <tests@pialasse.com> 3.4.1-2.sme
272    - add build require perl(Net::DNS::Nameserver)  and import dependencies [SME: 10597]
273    
274    * Wed Jan 6 2016 Daniel Berteaud <daniel@firewall-services.com> - 3.4.1-1.sme
275    - Update to 3.4.1 [SME: 9153]
276    
277  * Fri Jul 10 2015 Daniel Berteaud <daniel@firewall-services.com> - 3.3.2-60.sme  * Fri Jul 10 2015 Daniel Berteaud <daniel@firewall-services.com> - 3.3.2-60.sme
278  - Expand atrpms macro and remove BuildReq on atrpms-rpm-config [SME: 8980]  - Expand atrpms macro and remove BuildReq on atrpms-rpm-config [SME: 8980]
279    


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