1 |
%define version 1.4.0 |
2 |
%define release 3 |
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-imap |
25 |
|
26 |
%description |
27 |
Configure the dovecot IMAP server with sieve scripts support, |
28 |
quota, ACL, extended logging, master user |
29 |
|
30 |
%changelog |
31 |
* Thu Feb 28 2013 Shad L. Lords <slords@mail.com> - 1.4.0-3.sme |
32 |
- Remove requires for packages no longer needed [SME: 7405] |
33 |
|
34 |
* Thu Feb 28 2013 Daniel Berteaud <daniel@firewall-services.com> - 1.4.0-2.sme |
35 |
- remove the IMAP acl and Sieve support [SME: 7405] |
36 |
- remove obsolete changelog (used in my previous buildsys) |
37 |
|
38 |
* Tue Feb 26 2013 Daniel Berteaud <daniel@firewall-services.com> - 0.1.1-1 |
39 |
- store sharedmailbox dict file in /home/e-smith/db/dovecot |
40 |
|
41 |
* Tue Feb 12 2013 Daniel Berteaud <daniel@firewall-services.com> - 0.1.0-1 |
42 |
- Pass the recipient variable to dovcot-lda |
43 |
|
44 |
* Tue Nov 29 2011 Daniel Berteaud <daniel@firewall-services.com> - 0.1 |
45 |
- initial release |
46 |
|
47 |
%prep |
48 |
%setup -q -n %{name}-%{version} |
49 |
%patch1 -p1 |
50 |
%patch2 -p1 |
51 |
|
52 |
%build |
53 |
perl createlinks |
54 |
|
55 |
%install |
56 |
/bin/rm -rf $RPM_BUILD_ROOT |
57 |
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
58 |
/bin/rm -f %{name}-%{version}-filelist |
59 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
60 |
--file /var/service/dovecot/run 'attr(0755,root,root)' \ |
61 |
--file /var/service/dovecot/log/run 'attr(0755,root,root)' \ |
62 |
--file /var/service/dovecot/control/1 'attr(0755,root,root)' \ |
63 |
--dir /var/log/dovecot 'attr(0750,smelog,smelog)' \ |
64 |
> %{name}-%{version}-filelist |
65 |
|
66 |
%files -f %{name}-%{version}-filelist |
67 |
%defattr(-,root,root) |
68 |
|
69 |
%clean |
70 |
rm -rf $RPM_BUILD_ROOT |
71 |
|
72 |
%pre |
73 |
|
74 |
%post |
75 |
|
76 |
%preun |
77 |
|