1 |
%define version 1.4.0 |
%define version 1.4.0 |
2 |
%define release 1 |
%define release 8 |
3 |
%define name smeserver-dovecot |
%define name smeserver-dovecot |
4 |
|
|
5 |
|
|
10 |
License: GPL |
License: GPL |
11 |
Group: Networking/Daemons |
Group: Networking/Daemons |
12 |
Source: %{name}-%{version}.tar.xz |
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 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
17 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
19 |
|
|
20 |
Requires: e-smith-base >= 5.2.0 |
Requires: e-smith-base >= 5.2.0 |
21 |
Requires: dovecot >= 2.0.9 |
Requires: dovecot >= 2.0.9 |
|
Requires: dovecot-pigeonhole >= 2.0.9 |
|
|
Requires: acl |
|
22 |
|
|
23 |
Provides: e-smith-imap |
Provides: e-smith-imap |
24 |
Obsoletes: e-smith-imap |
Obsoletes: e-smith-imap |
25 |
|
Obsoletes: e-smith-ssl-imap |
26 |
|
Obsoletes: e-smith-wu-imap |
27 |
|
Obsoletes: imap |
28 |
|
Obsoletes: bglibs <= 1.102 |
29 |
|
Obsoletes: m4 <= 1.4.5 |
30 |
|
Obsoletes: mailfront <= 1.10 |
31 |
|
Obsoletes: stunnel <= 4.15 |
32 |
|
Obsoletes: stunnel-tls <= 3.22 |
33 |
|
Obsoletes: words <= 3.0 |
34 |
|
|
35 |
%description |
%description |
36 |
Configure the dovecot IMAP server with sieve scripts support, |
Configure the dovecot IMAP server with sieve scripts support, |
37 |
quota, ACL, extended logging, master user |
quota, ACL, extended logging, master user |
38 |
|
|
39 |
%changelog |
%changelog |
40 |
|
* Wed Apr 10 2013 Daniel Berteaud <daniel@firewall-services.com> - 1.4.0-8.sme |
41 |
|
- Do not obsolete cvm, it's still needed for qpsmtpd [SME: 7509] |
42 |
|
|
43 |
|
* Thu Feb 28 2013 Shad L. Lords <slords@mail.com> - 1.4.0-7.sme |
44 |
|
- Obsolete another el5 required by requires [SME: 7273] |
45 |
|
|
46 |
|
* Thu Feb 28 2013 Shad L. Lords <slords@mail.com> - 1.4.0-6.sme |
47 |
|
- Fix Obsolete el5 mailfront version [SME: 7273] |
48 |
|
|
49 |
|
* Thu Feb 28 2013 Shad L. Lords <slords@mail.com> - 1.4.0-5.sme |
50 |
|
- Obsolete el5 packages that were required by old requires [SME: 7273] |
51 |
|
|
52 |
|
* Thu Feb 28 2013 Shad L. Lords <slords@mail.com> - 1.4.0-4.sme |
53 |
|
- Obsolete older requires that are no longer needed [SME: 7273] |
54 |
|
|
55 |
|
* Thu Feb 28 2013 Shad L. Lords <slords@mail.com> - 1.4.0-3.sme |
56 |
|
- Remove requires for packages no longer needed [SME: 7405] |
57 |
|
|
58 |
|
* Thu Feb 28 2013 Daniel Berteaud <daniel@firewall-services.com> - 1.4.0-2.sme |
59 |
|
- remove the IMAP acl and Sieve support [SME: 7405] |
60 |
|
- remove obsolete changelog (used in my previous buildsys) |
61 |
|
|
62 |
* Tue Feb 26 2013 Daniel Berteaud <daniel@firewall-services.com> - 0.1.1-1 |
* Tue Feb 26 2013 Daniel Berteaud <daniel@firewall-services.com> - 0.1.1-1 |
63 |
- store sharedmailbox dict file in /home/e-smith/db/dovecot |
- store sharedmailbox dict file in /home/e-smith/db/dovecot |
64 |
|
|
70 |
|
|
71 |
%prep |
%prep |
72 |
%setup -q -n %{name}-%{version} |
%setup -q -n %{name}-%{version} |
73 |
|
%patch1 -p1 |
74 |
|
%patch2 -p1 |
75 |
|
|
76 |
%build |
%build |
77 |
perl createlinks |
perl createlinks |
85 |
--file /var/service/dovecot/log/run 'attr(0755,root,root)' \ |
--file /var/service/dovecot/log/run 'attr(0755,root,root)' \ |
86 |
--file /var/service/dovecot/control/1 'attr(0755,root,root)' \ |
--file /var/service/dovecot/control/1 'attr(0755,root,root)' \ |
87 |
--dir /var/log/dovecot 'attr(0750,smelog,smelog)' \ |
--dir /var/log/dovecot 'attr(0750,smelog,smelog)' \ |
|
--dir /home/e-smith/db/dovecot 'attr(2770,root,sharedmailbox)' \ |
|
|
--file /home/e-smith/db/dovecot/sharedmailbox.db 'attr(0660,root,sharedmailbox) %config(noreplace)' \ |
|
|
--file /usr/bin/imap-postlogin 'attr(0755,root,root)' \ |
|
88 |
> %{name}-%{version}-filelist |
> %{name}-%{version}-filelist |
89 |
|
|
90 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |
94 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
95 |
|
|
96 |
%pre |
%pre |
|
/usr/sbin/groupadd -g 439 sharedmailbox 2> /dev/null || : |
|
97 |
|
|
98 |
%post |
%post |
99 |
|
|