1 |
# $Id: smeserver-mailstats.spec,v 1.6 2015/06/14 20:58:21 stephdl Exp $ |
2 |
# Authority: brianread |
3 |
# Name: Brian Read |
4 |
|
5 |
Summary: Daily mail statistics for SME Server |
6 |
%define name smeserver-mailstats |
7 |
Name: %{name} |
8 |
%define version 1.0 |
9 |
%define release 6 |
10 |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
12 |
License: GPL |
13 |
Group: SME/addon |
14 |
Source: %{name}-%{version}.tgz |
15 |
Patch0: smeserver-mailstats-1.0-auth_cvm_unix_local.patch |
16 |
Patch1: smeserver-mailstats-1.0-spamfilter.patch |
17 |
Patch2: smeserver-mailstats-1.0-random-cron_and_spamfilter-stats-7-update.patch |
18 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
19 |
BuildArchitectures: noarch |
20 |
Requires: smeserver-release => 8.0 |
21 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
22 |
|
23 |
%description |
24 |
A script that via cron.d e-mails mail statistics to admin on a daily basis. |
25 |
See http://www.contribs.org/bugzilla/show_bug.cgi?id=819 |
26 |
|
27 |
%changelog |
28 |
* Sun Jun 14 2015 stephane de labrusse <stephdl@de-labrusse.fr> 1.0-6 |
29 |
- added a random cron job |
30 |
- spamfilter-stats-7-update |
31 |
- code done by Brian Read <brianr@bjsystems.co.uk> and John Crisp <jcrisp@safeandsoundit.co.uk> |
32 |
|
33 |
* Mon Sep 23 2013 JP Pialasse <tests@pialasse.com> 1.1-4.sme |
34 |
- uninitialized value in sprintf [SME: 4747] |
35 |
- patch smeserver-mailstats-1.0-spamfilter.patch |
36 |
|
37 |
* Sun Sep 09 2012 JP Pialasse <tests@pialasse.com> 1.1-2.sme |
38 |
- fix Unexpected failure string in log file: auth::auth_cvm_unix_local see [SME 7089] |
39 |
|
40 |
* Sat May 26 2012 Brian J read <brianr@bjsystems.co.uk> 1.0-1.sme |
41 |
- Initial version |
42 |
|
43 |
%prep |
44 |
%setup |
45 |
%patch0 -p1 |
46 |
%patch1 -p1 |
47 |
%patch2 -p1 |
48 |
|
49 |
%build |
50 |
perl createlinks |
51 |
|
52 |
%install |
53 |
/bin/rm -rf $RPM_BUILD_ROOT |
54 |
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
55 |
/bin/rm -f %{name}-%{version}-filelist |
56 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
57 |
|
58 |
%clean |
59 |
/bin/rm -rf $RPM_BUILD_ROOT |
60 |
|
61 |
%files -f %{name}-%{version}-filelist |
62 |
%defattr(-,root,root) |