rpms/clement/F-9 clement.spec,1.22,1.23

Jean-Marc Pigeon jmrcpn at fedoraproject.org
Sun Apr 26 19:52:36 UTC 2009


Author: jmrcpn

Update of /cvs/pkgs/rpms/clement/F-9
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv8058/clement/F-9

Modified Files:
	clement.spec 
Log Message:
Updated clement-2.1.320


Index: clement.spec
===================================================================
RCS file: /cvs/pkgs/rpms/clement/F-9/clement.spec,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- clement.spec	21 Dec 2006 19:46:24 -0000	1.22
+++ clement.spec	26 Apr 2009 19:52:06 -0000	1.23
@@ -1,18 +1,42 @@
+#-----------------------------------------------------------
+#to define the revision numer
+%define revision %(R="$Revision$"; RR="${R##: }"; echo ${RR%% ?})
+%define rversion %(echo %{revision} | cut -d'.' -f1-2)
+%define subversion %(echo %{revision}| cut -d'.' -f4)
+#-----------------------------------------------------------
+#to define locmark according RPM builder
+%{?!mark:%define mark fedora}
+
+%if "%mark" == "fedora"
+%define locmark %{dist}
+%endif
+
+%if "%mark" == "safe"
+%define locmark .%{dist}.%{mark}
+%endif
+#-----------------------------------------------------------
+#Standard spec file
+#-----------------------------------------------------------
 Name: clement
-Version: 2.1
-Release: 241%{?dist}.1
+Version: %{rversion}.%{subversion}
+Release: 1%{?locmark}
 URL: http://www.clement.safe.ca
-License: GPL
+License: GPLv2
 Summary: An application to filter and manage E-mail traffic
 Group: System Environment/Daemons
-Source: ftp://ftp.safe.ca/pub/%{name}-%{version}/srctgz/%{name}-%{version}-241.tar.gz
+Source: ftp://ftp.safe.ca/pub/srctgz/%{name}-%{version}.tar.gz
+
 buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires: byacc
-BuildRequires: clamav-devel >= 0.87-1
 BuildRequires: openssl-devel,bzip2-devel,gmp-devel,glibc-devel,pam-devel
-Requires: clamav >= 0.87-1
-Requires: iptables
+%if "%mark" == "fedora"
+Requires: clamav-server
+%else
+Requires: clamd
+%endif
+Requires: perl-Crypt-PasswdMD5
+Requires: iptables, php
 Requires(post): chkconfig, initscripts
 Requires(preun): chkconfig, initscripts
 Requires(pre): /usr/sbin/useradd, /usr/sbin/groupadd
@@ -20,8 +44,7 @@
 %description
 Clement is an email firewall. Its purpose is to filter all email, 
 rejecting viruses and unwelcome messages at the SMTP protocol level 
-(and avoids bouncing to forged originators).  Dubious emails are 
-centrally quarantined.
+(and avoids bouncing to forged originators).
 
 Clement extracts "email sending contexts" and can use a remote mentor 
 process to further analyze message context while still connected to the 
@@ -32,12 +55,25 @@
 %setup -q
 
 %build
-%{__make} %{?_smp_mflags}
+%{?_smp_mflags:%define _smp_mflags -j `/usr/bin/getconf _NPROCESSORS_ONLN`}
+%{__make} OPTIMIZE_FLAGS="$RPM_OPT_FLAGS" -s %{?_smp_mflags} prod
 
 %install
 %{__rm} -rf %{buildroot}
 %{__make} install DESTDIR=%{buildroot}
 
+%if "%mark" == "safe"
+install -dm 755 %{buildroot}/%{_sysconfdir}/yum.repos.d
+cat > %{buildroot}/%{_sysconfdir}/yum.repos.d/%{name}.repo << !EOT
+[clement]
+name=SAFE clement "An SMTP firewall" - Released Updates
+baseurl=ftp://ftp.safe.ca/pub/linux/%{ddist}/\$releasever/%{name}/\$basearch/
+enabled=1
+gpgcheck=1
+gpgkey=ftp://ftp.safe.ca/gpgkey/RPM-GPG-KEY-SAFE-CLEMENT-2006
+!EOT
+%endif
+
 %clean 
 %{__rm} -rf %{buildroot}
 
@@ -55,7 +91,7 @@
 %pre 
 if [ "$1" = 1 ]; then
   /usr/sbin/groupadd -r %{name} 2>/dev/null || :
-  /usr/sbin/useradd -r -M -d /var/spool/%{name}-%{version} \
+  /usr/sbin/useradd -r -M -d /var/spool/%{name}-%{rversion} \
         -g %{name} -c "Clement daemon" \
         -s /sbin/nologin %{name} 2>/dev/null || :
   fi
@@ -66,9 +102,9 @@
     %{_initrddir}/%{name} stop 2>/dev/null || :
     fi
   export APPNAME=%{name}
-  %{_usr}/lib/%{name}-%{version}/support/remove.sh \
-    %{_sysconfdir}/pki/%{name}-%{version}/%{name}.pem \
-    %{_sysconfdir}/%{name}-%{version}/config.done 2>/dev/null || :
+  %{_usr}/lib/%{name}-%{rversion}/support/remove.sh \
+    %{_sysconfdir}/pki/%{name}-%{rversion}/%{name}.pem \
+    %{_sysconfdir}/%{name}-%{rversion}/config.done 2>/dev/null || :
   /sbin/chkconfig --del %{name} 2>/dev/null || :
   (
   /bin/echo -n "$APPNAME has been removed on "; date
@@ -77,39 +113,193 @@
   /bin/echo "these files _may_ be removed too, but that they could"
   /bin/echo "contain valuable data and admin should be careful"
   /bin/echo "when removing them."
-  ) > %{_var}/spool/%{name}-%{version}/README-%{name}-removed
+  ) > %{_var}/spool/%{name}-%{rversion}/README-%{name}-removed
   fi
 
 
 %files
 %defattr(-,root,root,-)
 %{_sysconfdir}/cron.daily/%{name}
-%{_usr}/lib/%{name}-%{version}/
-%{_datadir}/%{name}-%{version}/
+%{_usr}/lib/%{name}-%{rversion}/
+%{_datadir}/%{name}-%{rversion}/
 %{_bindir}/pibsmtp
 %{_bindir}/clrquar
 %{_bindir}/clxtract
 
 %attr(-,%{name},%{name}) %{_bindir}/%{name}
-%attr(-,%{name},%{name}) %{_var}/spool/%{name}-%{version}/
-%attr(-,%{name},%{name}) %{_var}/crash/%{name}-%{version}/
-%attr(-,%{name},%{name}) %{_var}/lock/%{name}-%{version}/
+%attr(-,%{name},%{name}) %{_var}/spool/%{name}-%{rversion}/
+%attr(-,%{name},%{name}) %{_var}/crash/%{name}-%{rversion}/
+%attr(-,%{name},%{name}) %{_var}/lock/%{name}-%{rversion}/
 
-%doc %{name}-%{version}-*.build_date
+%doc %{name}-%{version}.build_date
 %doc doc/*.txt Changes FAQ LICENCE README
 
 %attr(0755,root,root) %{_initrddir}/%{name}
-%attr(-,%{name},%{name}) %config(noreplace) %{_sysconfdir}/%{name}-%{version}/
-# No, no, no.  Touch the following line, you die. -- FESCo (bug #220497)
-%exclude %config(noreplace) %{_sysconfdir}/yum.repos.d/%{name}.repo
+%attr(-,%{name},%{name}) %config(noreplace) %{_sysconfdir}/%{name}-%{rversion}/
 %config(noreplace) %{_sysconfdir}/sysconfig/%{name}
-%config(noreplace) %{_sysconfdir}/pki/%{name}-%{version}/trusted.pem
+%config(noreplace) %{_sysconfdir}/pki/%{name}-%{rversion}/trusted.pem
 %config(noreplace) %{_sysconfdir}/httpd/conf/%{name}.conf
+%if "%mark" == "safe"
+%config(noreplace) %{_sysconfdir}/yum.repos.d/%{name}.repo
+%endif
 
 
 %changelog
-* Thu Dec 21 2006 Rex Dieter <rdieter at fedoraproject.org> 2.1-241.1
-- %%exclude yum.repos.d/* (bug #220497)
+* Sun Apr 26 2009 Jean-Marc Pigeon <jmp at safe.ca> 2.1.320-1
+- Improvement
+   * Spec file update to require clamav-server under 
+     fedora release while requiring clamd otherwise.
+
+* Fri Apr 24 2009 Jean-Marc Pigeon <jmp at safe.ca> 2.1.318-1
+- Improvement
+   * Spec file update to generate clement.repo file
+   * resolving asprintf warning
+   * adding Copyright Notice to PHP and "C" files
+
+* Tue Apr 21 2009 Jean-Marc Pigeon <jmp at safe.ca> 2.1.315-2
+- Improvement
+    * fine tuning spec file
+    * using clamd-0.95.2 to detect virus.
+
+* Sun Apr 19 2009 Jean-Marc Pigeon <jmp at safe.ca> 2.1.314
+- Improvement
+    * Adjusting Spec file to included within Fedora
+      extra packages (version release numbering).
+
+* Sun Mar 1 2009 Jean-Marc Pigeon <jmp at safe.ca> 2.1-312
+- Bug Fix for Clement and its WEB interface.
+    * Aliases where too limited in number, cause By a line lenght
+      hard-coded both in WEB and gesque.c
+
+* Fri Feb 23 2009 Jean-Marc Pigeon <jmp at safe.ca> 2.1-311
+- Improvement
+    * rcpt <postmaster> without domain qualification is
+      now accepted and routed to domain which own
+      the local interface.
+      Reverse Address MUST be set properly.
+
+* Fri Feb 23 2009 Jean-Marc Pigeon <jmp at safe.ca> 2.1-310
+- Improvement
+    * Clement is accepting user 'post,aster' and 'abuse'
+      regardless mentor stat of mind regarding the originator.
+      according:
+      Network Working Group             J. Klensin
+      Request for Comments: 5321        October 2008
+      as interpreted by rfc-ignorant.org
+
+* Fri Feb 06 2009 Jean-Marc Pigeon <jmp at safe.ca> 2.1-309
+- Improvement
+    * Clement is using clamav-0.94.2 now
+
+* Sat Jun 14 2008 Jean-Marc Pigeon <jmp at safe.ca> 2.1-290
+- Improvement
+    * Clement is using clamav-0.93.1 now
+
+* Tue May 27 2008 Jean-Marc Pigeon <jmp at safe.ca> 2.1-289
+- Marker
+    * Production Marker
+
+* Wed May 14 2008 Jean-Marc Pigeon <jmp at safe.ca> 2.1-288
+- Improvement
+    * adjustement within clement/shell/daily.sh to
+      avoid cron warning.
+
+* Sat May 03 2008 Jean-Marc Pigeon <jmp at safe.ca> 2.1-287
+- Improvement
+    * Compiled with clamav-0.93 libraries
+
+* Sun Apr 06 2008 Jean-Marc Pigeon <jmp at safe.ca> 2.1-280
+- Improvement
+    * Rejecting to big email received if one of
+      recipient can't accept it
+
+* Fri Jan 30 2008 Jean-Marc Pigeon <jmp at safe.ca> 2.1-277
+- Improvement
+    * added a shell script to remove old mail pending
+      within mails/domain.name/user.name/{new,cur}
+      clement's directory
+
+* Fri Dec 21 2007 Jean-Marc Pigeon <jmp at safe.ca> 2.1-275
+- Improvement
+    * clement require now php rather than php-cli
+
+* Tue Dec 18 2007 Jean-Marc Pigeon <jmp at safe.ca> 2.1-274
+- Improvement
+    * Using Clamav-0.92
+
+* Sat Dec  1 2007 Jean-Marc Pigeon <jmp at safe.ca> 2.1-273
+- Improvement
+   * web log show the server origin information when
+     and E-mail is rejected or delayed.
+
+* Mon Nov 19 2007 Jean-Marc Pigeon <jmp at safe.ca> 2.1-270
+- Bug-Fix:
+   * Properly receiving E-mail contents if E-mail
+     lines are very long and splited by '\r' instead
+     of '\n'
+- Improvement
+   * Scanning E-mail for Spam (spamassassin) only
+     if E-mail is smaller than 500K
+
+* Sat Oct 27 2007 Jean-Marc Pigeon <jmp at safe.ca> 2.1-269
+- Bug-Fix:
+   * Removing Debug trace about WEBGOOD from source
+
+* Fri Oct 26 2007 Jean-Marc Pigeon <jmp at safe.ca> 2.1-268
+- Improvement
+   * Insert domain definition witin configuration file
+     (clement.conf) to set reference to goodmail website.
+
+* Sun Aug 26 2007 Jean-Marc Pigeon <jmp at safe.ca> 2.1-266
+-Bug-Fix:
+   * "CRLF" was not transmitted in the E-mail data-part,
+      causing trouble with FirstClass  server.
+
+* Fri Aug 24 2007 Jean-Marc Pigeon <jmp at safe.ca> 2.1-264
+-Improvement:
+   * A new process "virus scanner" is now dedicated
+     to detect virus, previously each clement iteration
+     was doing it. This reduce memory consumption
+     a lot
+
+* Thu Aug 22 2007 Jean-Marc Pigeon <jmp at safe.ca> 2.1-258
+-Bug-Fix:
+   * Closed numeros Memory Leak.
+
+* Thu Jul 19 2007 Jean-Marc Pigeon <jmp at safe.ca> 2.1-256
+-Bug-Fix:
+   * Do not use CL_DB_PHISHING_URLS flag to scan E-mail
+     for viruses.
+
+* Fri Jun 15 2007 Jean-Marc Pigeon <jmp at safe.ca> 2.1-253
+-Bug-Fix:
+   * Clement was not handling very long line (above 5K)
+     coming from some remote SMTP client in E-mail data 
+     part. (RFC 2821 say line 1000 bytes long at max 
+     for data-part, does it?)
+
+* Mon Apr 19 2007 Jean-Marc Pigeon <jmp at safe.ca> 2.1-251
+-Improvement:
+   * Initshell (/etc/rc.d/init.d/clement) do check
+     if freshclam is up and running anymore. clamav
+     signatures library are back refresh via a daemon.
+
+* Mon Apr 18 2007 Jean-Marc Pigeon <jmp at safe.ca> 2.1-250
+-Improvement:
+   * Initshell (/etc/rc.d/init.d/clement) do not check
+     if freshclam is up and running anymore. clamav
+     signatures library is now updated via a cron
+     process.
+
+* Mon Apr 17 2007 Jean-Marc Pigeon <jmp at safe.ca> 2.1-248
+-Improvement:
+   * Quarantined E-mail are now embedded within a
+     MIME part in a new E-mail.
+
+* Mon Mar 12 2007 Jean-Marc Pigeon <jmp at safe.ca> 2.1-243
+-Improvement:
+    * added a delay on RSET command reply (answer was
+      to quick for Outlook to follow).
 
 * Mon Nov 27 2006 Jean-Marc Pigeon <jmp at safe.ca> 2.1-241
 - Marker:




More information about the fedora-extras-commits mailing list