1 |
%define version 1.4.0 |
2 |
%define release 4 |
3 |
%define name smeserver-dovecot |
4 |
|
5 |
|
6 |
Summary: Dovecot IMAP server integration |
7 |
Name: %{name} |
8 |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
10 |
License: GPL |
11 |
Group: Networking/Daemons |
12 |
Source: %{name}-%{version}.tar.xz |
13 |
Patch1: smeserver-dovecot-1.4.0-remove_acl_and_sieve.patch |
14 |
Patch2: smeserver-dovecot-1.4.0-remove_obsolete_changelog.patch |
15 |
|
16 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
17 |
BuildArchitectures: noarch |
18 |
BuildRequires: e-smith-devtools |
19 |
|
20 |
Requires: e-smith-base >= 5.2.0 |
21 |
Requires: dovecot >= 2.0.9 |
22 |
|
23 |
Provides: e-smith-imap |
24 |
Obsoletes: e-smith-cvm-unix-local |
25 |
Obsoletes: e-smith-imap |
26 |
Obsoletes: e-smith-ssl-imap |
27 |
Obsoletes: e-smith-wu-imap |
28 |
Obsoletes: imap |
29 |
Obsoletes: mailfront |
30 |
Obsoletes: stunnel-tls |
31 |
|
32 |
%description |
33 |
Configure the dovecot IMAP server with sieve scripts support, |
34 |
quota, ACL, extended logging, master user |
35 |
|
36 |
%changelog |
37 |
* Thu Feb 28 2013 Shad L. Lords <slords@mail.com> - 1.4.0-4.sme |
38 |
- Obsolete older requires that are no longer needed [SME: 7273] |
39 |
|
40 |
* Thu Feb 28 2013 Shad L. Lords <slords@mail.com> - 1.4.0-3.sme |
41 |
- Remove requires for packages no longer needed [SME: 7405] |
42 |
|
43 |
* Thu Feb 28 2013 Daniel Berteaud <daniel@firewall-services.com> - 1.4.0-2.sme |
44 |
- remove the IMAP acl and Sieve support [SME: 7405] |
45 |
- remove obsolete changelog (used in my previous buildsys) |
46 |
|
47 |
* Tue Feb 26 2013 Daniel Berteaud <daniel@firewall-services.com> - 0.1.1-1 |
48 |
- store sharedmailbox dict file in /home/e-smith/db/dovecot |
49 |
|
50 |
* Tue Feb 12 2013 Daniel Berteaud <daniel@firewall-services.com> - 0.1.0-1 |
51 |
- Pass the recipient variable to dovcot-lda |
52 |
|
53 |
* Tue Nov 29 2011 Daniel Berteaud <daniel@firewall-services.com> - 0.1 |
54 |
- initial release |
55 |
|
56 |
%prep |
57 |
%setup -q -n %{name}-%{version} |
58 |
%patch1 -p1 |
59 |
%patch2 -p1 |
60 |
|
61 |
%build |
62 |
perl createlinks |
63 |
|
64 |
%install |
65 |
/bin/rm -rf $RPM_BUILD_ROOT |
66 |
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
67 |
/bin/rm -f %{name}-%{version}-filelist |
68 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
69 |
--file /var/service/dovecot/run 'attr(0755,root,root)' \ |
70 |
--file /var/service/dovecot/log/run 'attr(0755,root,root)' \ |
71 |
--file /var/service/dovecot/control/1 'attr(0755,root,root)' \ |
72 |
--dir /var/log/dovecot 'attr(0750,smelog,smelog)' \ |
73 |
> %{name}-%{version}-filelist |
74 |
|
75 |
%files -f %{name}-%{version}-filelist |
76 |
%defattr(-,root,root) |
77 |
|
78 |
%clean |
79 |
rm -rf $RPM_BUILD_ROOT |
80 |
|
81 |
%pre |
82 |
|
83 |
%post |
84 |
|
85 |
%preun |
86 |
|