1 |
%define version 1.4.0 |
2 |
%define release 11 |
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 |
Patch3: smeserver-dovecot-1.4.0-allow_plaintext.patch |
16 |
Patch4: smeserver-dovecot-1.4.0-imapd_pem_perm.patch |
17 |
|
18 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
19 |
BuildArchitectures: noarch |
20 |
BuildRequires: e-smith-devtools |
21 |
|
22 |
Requires: e-smith-base >= 5.2.0 |
23 |
Requires: dovecot >= 2.0.9 |
24 |
|
25 |
Provides: e-smith-imap |
26 |
Obsoletes: e-smith-imap |
27 |
Obsoletes: e-smith-ssl-imap |
28 |
Obsoletes: e-smith-wu-imap |
29 |
Obsoletes: imap |
30 |
Obsoletes: m4 <= 1.4.5 |
31 |
Obsoletes: mailfront <= 1.10 |
32 |
Obsoletes: stunnel <= 4.15 |
33 |
Obsoletes: stunnel-tls <= 3.22 |
34 |
Obsoletes: words <= 3.0 |
35 |
|
36 |
%description |
37 |
Configure the dovecot IMAP server with sieve scripts support, |
38 |
quota, ACL, extended logging, master user |
39 |
|
40 |
%changelog |
41 |
* Sat May 18 2013 Daniel Berteaud <daniel@firewall-services.com> - 1.4.0-11.sme |
42 |
- Fix permissions on imapd.pem as it's used by pop3s [SME: 7570] |
43 |
|
44 |
* Wed Apr 24 2013 Daniel Berteaud <daniel@firewall-services.com> - 1.4.0-10.sme |
45 |
- Do not obsolete bglibs, it's required for cvm [SME: 7509] |
46 |
|
47 |
* Tue Apr 16 2013 Daniel Berteaud <daniel@firewall-services.com> - 1.4.0-9.sme |
48 |
- Allow plaintext (unless explicitly disabled) [SME: 7549] |
49 |
|
50 |
* Wed Apr 10 2013 Daniel Berteaud <daniel@firewall-services.com> - 1.4.0-8.sme |
51 |
- Do not obsolete cvm, it's still needed for qpsmtpd [SME: 7509] |
52 |
|
53 |
* Thu Feb 28 2013 Shad L. Lords <slords@mail.com> - 1.4.0-7.sme |
54 |
- Obsolete another el5 required by requires [SME: 7273] |
55 |
|
56 |
* Thu Feb 28 2013 Shad L. Lords <slords@mail.com> - 1.4.0-6.sme |
57 |
- Fix Obsolete el5 mailfront version [SME: 7273] |
58 |
|
59 |
* Thu Feb 28 2013 Shad L. Lords <slords@mail.com> - 1.4.0-5.sme |
60 |
- Obsolete el5 packages that were required by old requires [SME: 7273] |
61 |
|
62 |
* Thu Feb 28 2013 Shad L. Lords <slords@mail.com> - 1.4.0-4.sme |
63 |
- Obsolete older requires that are no longer needed [SME: 7273] |
64 |
|
65 |
* Thu Feb 28 2013 Shad L. Lords <slords@mail.com> - 1.4.0-3.sme |
66 |
- Remove requires for packages no longer needed [SME: 7405] |
67 |
|
68 |
* Thu Feb 28 2013 Daniel Berteaud <daniel@firewall-services.com> - 1.4.0-2.sme |
69 |
- remove the IMAP acl and Sieve support [SME: 7405] |
70 |
- remove obsolete changelog (used in my previous buildsys) |
71 |
|
72 |
* Tue Feb 26 2013 Daniel Berteaud <daniel@firewall-services.com> - 0.1.1-1 |
73 |
- store sharedmailbox dict file in /home/e-smith/db/dovecot |
74 |
|
75 |
* Tue Feb 12 2013 Daniel Berteaud <daniel@firewall-services.com> - 0.1.0-1 |
76 |
- Pass the recipient variable to dovcot-lda |
77 |
|
78 |
* Tue Nov 29 2011 Daniel Berteaud <daniel@firewall-services.com> - 0.1 |
79 |
- initial release |
80 |
|
81 |
%prep |
82 |
%setup -q -n %{name}-%{version} |
83 |
%patch1 -p1 |
84 |
%patch2 -p1 |
85 |
%patch3 -p1 |
86 |
%patch4 -p1 |
87 |
|
88 |
%build |
89 |
perl createlinks |
90 |
|
91 |
%install |
92 |
/bin/rm -rf $RPM_BUILD_ROOT |
93 |
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
94 |
/bin/rm -f %{name}-%{version}-filelist |
95 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
96 |
--file /var/service/dovecot/run 'attr(0755,root,root)' \ |
97 |
--file /var/service/dovecot/log/run 'attr(0755,root,root)' \ |
98 |
--file /var/service/dovecot/control/1 'attr(0755,root,root)' \ |
99 |
--dir /var/log/dovecot 'attr(0750,smelog,smelog)' \ |
100 |
> %{name}-%{version}-filelist |
101 |
|
102 |
%files -f %{name}-%{version}-filelist |
103 |
%defattr(-,root,root) |
104 |
|
105 |
%clean |
106 |
rm -rf $RPM_BUILD_ROOT |
107 |
|
108 |
%pre |
109 |
|
110 |
%post |
111 |
|
112 |
%preun |
113 |
|