]>
Commit | Line | Data |
---|---|---|
e9b22b9e | 1 | # |
581ee888 ER |
2 | # Conditional build: |
3 | %bcond_without perl # build with perl | |
4 | %bcond_without shared # build with shared patch (not updated) | |
5 | ||
6 | %{?with_perl:%include /usr/lib/rpm/macros.perl} | |
65b36ab1 | 7 | Summary: High-performance mail store with IMAP and POP3 |
bdb0c67b ER |
8 | Summary(pl.UTF-8): Wysoko wydajny serwer IMAP i POP3 |
9 | Summary(pt_BR.UTF-8): Um servidor de mail de alto desempenho que suporta IMAP e POP3 | |
1be9fbde | 10 | Name: cyrus-imapd |
adc168d7 ER |
11 | Version: 2.4.18 |
12 | Release: 1 | |
06468c41 | 13 | License: BSD-like |
65b36ab1 | 14 | Group: Networking/Daemons/POP3 |
42a44080 | 15 | Source0: ftp://ftp.cyrusimap.org/cyrus-imapd/%{name}-%{version}.tar.gz |
adc168d7 | 16 | # Source0-md5: 6b5151fbb1619cf1a133f65f55cda619 |
1be9fbde AF |
17 | Source1: cyrus-README |
18 | Source2: cyrus-procmailrc | |
19 | Source3: cyrus-deliver-wrapper.c | |
20 | Source4: cyrus-user-procmailrc.template | |
c2419b53 | 21 | Source5: %{name}-procmail+cyrus.mc |
22 | Source6: %{name}.logrotate | |
23 | Source7: %{name}.conf | |
c2419b53 | 24 | Source9: %{name}.pamd |
25 | Source10: %{name}-pop.pamd | |
26 | Source11: %{name}.init | |
27 | Source12: cyrus.conf | |
72073223 | 28 | Source13: cyrus-sync.init |
abe5625f | 29 | Patch0: %{name}-et.patch |
42a44080 | 30 | # http://bugzilla.cyrusimap.org/bugzilla3/show_bug.cgi?id=3095 |
3beb582f | 31 | Patch1: %{name}-shared.patch |
42a44080 | 32 | # http://bugzilla.cyrusimap.org/bugzilla3/show_bug.cgi?id=3094 |
41a4d655 | 33 | Patch2: %{name}-verifydbver.patch |
581ee888 ER |
34 | Patch3: gcc44.patch |
35 | Patch4: glibc.patch | |
e0d09ed7 | 36 | Patch6: makeopt.patch |
42a44080 | 37 | URL: http://www.cyrusimap.org/ |
69c226d2 | 38 | BuildRequires: autoconf >= 2.54 |
1097b491 | 39 | BuildRequires: automake |
812a9b8c | 40 | BuildRequires: cyrus-sasl-devel >= 1.5.27 |
8a851b4f | 41 | BuildRequires: db-devel >= 4.1.25 |
332c28a6 | 42 | BuildRequires: flex |
c0ac4d51 | 43 | BuildRequires: libcom_err-devel >= 1.21 |
9db9f97b | 44 | BuildRequires: libtool |
f7a838f6 | 45 | BuildRequires: net-snmp-devel |
ed3b9bc8 | 46 | BuildRequires: openssl-devel >= 0.9.7d |
3f09f123 | 47 | BuildRequires: patchutils |
581ee888 ER |
48 | %{?with_perl:BuildRequires: perl-devel >= 1:5.8.0} |
49 | %{?with_perl:BuildRequires: rpm-perlprov} | |
df8a13f2 ER |
50 | BuildRequires: rpmbuild(macros) >= 1.268 |
51 | Requires(post,preun): /sbin/chkconfig | |
52 | Requires(postun): /usr/sbin/userdel | |
ff3301e7 | 53 | Requires(pre): /bin/id |
850e0d61 | 54 | Requires(pre): /usr/sbin/useradd |
581ee888 | 55 | %{?with_shared:Requires: %{name}-libs = %{version}-%{release}} |
cad0b248 | 56 | Requires: rc-scripts >= 0.4.0.18 |
581ee888 | 57 | %{!?with_shared:Obsoletes: %{name}-libs} |
9b5ae120 | 58 | # needed by scripts from %{_bindir} |
237fec00 | 59 | Requires: pam >= 0.79.0 |
581ee888 | 60 | %{?with_perl:Requires: perl-%{name} = %{version}-%{release}} |
f5c1cf30 AF |
61 | Provides: imapdaemon |
62 | Provides: pop3daemon | |
ff3301e7 | 63 | Provides: user(cyrus) |
9db9f97b JB |
64 | Obsoletes: imap |
65 | Obsoletes: imapd | |
66 | Obsoletes: imapdaemon | |
67 | Obsoletes: pop3daemon | |
d0ca46fe JB |
68 | Conflicts: courier-imap |
69 | Conflicts: courier-imap-common | |
70 | Conflicts: courier-imap-pop3 | |
06468c41 JB |
71 | Conflicts: imap |
72 | Conflicts: imap-common | |
73 | Conflicts: imap-pop2 | |
74 | Conflicts: imap-pop3 | |
4dd0ee92 | 75 | Conflicts: qpopper |
4dd0ee92 | 76 | Conflicts: qpopper6 |
06468c41 | 77 | Conflicts: solid-pop3d |
d0ca46fe | 78 | Conflicts: tpop3d |
9db9f97b | 79 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
1be9fbde | 80 | |
144454c2 | 81 | %define _libexecdir %{_libdir}/cyrus |
f3b9d127 | 82 | |
1be9fbde | 83 | %description |
cb1cf368 | 84 | The Cyrus IMAP server is a scalable enterprise mail system designed |
948af35e | 85 | for use from small to large enterprise environments using |
1be9fbde AF |
86 | standards-based technologies. |
87 | ||
88 | A full Cyrus IMAP implementation allows a seamless mail and bulletin | |
948af35e | 89 | board environment to be set up across multiple servers. It differs |
90 | from other IMAP server implementations in that it is run on "sealed" | |
1be9fbde AF |
91 | servers, where users are not normally permitted to log in. The mailbox |
92 | database is stored in parts of the filesystem that are private to the | |
93 | Cyrus IMAP system. All user access to mail is through software using | |
94 | the IMAP, POP3, or KPOP protocols. | |
95 | ||
04d4eab0 | 96 | %description -l pl.UTF-8 |
948af35e | 97 | Serwer Cyrus IMAP jest skalowalnym systemem e-mail dla |
04d4eab0 JR |
98 | przedsiębiorstwa, zaprojektowanym dla małych i dużych firm i |
99 | wykorzystującym oparte na standardach technologie. | |
100 | ||
101 | Pełna implementacja Cyrus IMAP pozwala na bezproblemowe ustawienie | |
102 | środowiska poczty i elektronicznej tablicy ogłoszeniowej na kilku | |
103 | serwerach. Tym się różni od innych implementacji serwerów IMAP, że | |
104 | jest uruchamiany na "opieczętowanych" serwerach, na które w normalnych | |
105 | warunkach użytkownicy nie mogą się zalogować. Baza danych skrzynek | |
106 | pocztowych jest przechowywana w tych częściach systemu plików, które | |
107 | są dostępne jedynie dla systemu IMAP Cyrus. Wszelki dostęp do poczty | |
108 | ma miejsce poprzez oprogramowanie wykorzystujące protokoły IMAP, POP3 | |
948af35e | 109 | oraz KPOP. |
110 | ||
04d4eab0 JR |
111 | %description -l pt_BR.UTF-8 |
112 | O servidor IMAP Cyrus é um sistema de mail corporativo escalável | |
797aec93 | 113 | projetado para uso por pequenos a grandes ambientes corporativos |
04d4eab0 | 114 | usando tecnologias baseadas em padrões abertos. |
797aec93 | 115 | |
04d4eab0 JR |
116 | Uma implementação completa do Cyrus permite se configurar um ambiente |
117 | transparente de mail e bulletin board entre múltiplos servidores. Ele | |
797aec93 | 118 | difere de outros servidores IMAP por rodar em servidores "selados", |
04d4eab0 JR |
119 | onde usuários não possuem normalmente a permissão de log in. O banco |
120 | de dados de caixas de mail é armazenado em partes do sistema de | |
121 | arquivos que são privativos do sistema Cyrus. Todo o acesso de | |
122 | usuários aos mails se dá através de software usando os protocolos | |
797aec93 | 123 | IMAP, POP3 ou KPOP. |
124 | ||
9db9f97b JB |
125 | %package libs |
126 | Summary: Shared cyrus-imapd libraries | |
bdb0c67b | 127 | Summary(pl.UTF-8): Współdzielone biblioteki cyrus-imapd |
9db9f97b JB |
128 | Group: Libraries |
129 | ||
130 | %description libs | |
131 | Shared cyrus-imapd libraries. | |
132 | ||
04d4eab0 JR |
133 | %description libs -l pl.UTF-8 |
134 | Współdzielone biblioteki cyrus-imapd. | |
9db9f97b | 135 | |
26aa5f83 | 136 | %package devel |
9db9f97b | 137 | Summary: Header files for developing with cyrus-imapd libraries |
bdb0c67b | 138 | Summary(pl.UTF-8): Pliki nagłówkowe do programowania z użyciem bibliotek cyrus-imapd |
26aa5f83 | 139 | Group: Development/Libraries |
9db9f97b | 140 | Requires: %{name}-libs = %{version}-%{release} |
26aa5f83 | 141 | |
142 | %description devel | |
9db9f97b JB |
143 | This package provides the necessary header files files to allow you to |
144 | develop with cyrus-imapd libraries. | |
26aa5f83 | 145 | |
04d4eab0 JR |
146 | %description devel -l pl.UTF-8 |
147 | Ten pakiet zawiera pliki nagłówkowe niezbędne do tworzenia | |
9db9f97b | 148 | oprogramowania z wykorzystaniem bibliotek cyrus-imapd. |
26aa5f83 | 149 | |
150 | %package static | |
151 | Summary: Static cyrus-imapd libraries | |
bdb0c67b | 152 | Summary(pl.UTF-8): Biblioteki statyczne cyrus-imapd |
26aa5f83 | 153 | Group: Development/Libraries |
144454c2 | 154 | Requires: %{name}-devel = %{version}-%{release} |
26aa5f83 | 155 | |
156 | %description static | |
157 | Static cyrus-imapd libraries | |
158 | ||
04d4eab0 | 159 | %description static -l pl.UTF-8 |
26aa5f83 | 160 | Biblioteki statyczne cyrus-imapd |
161 | ||
f7cc6fbe | 162 | %package -n perl-%{name} |
163 | Summary: Perl interface to cyrus-imapd library | |
bdb0c67b | 164 | Summary(pl.UTF-8): Perlowy interfejs do biblioteki cyrus-imapd |
f7cc6fbe | 165 | Group: Development/Languages/Perl |
9db9f97b | 166 | Requires: %{name}-libs = %{version}-%{release} |
f7cc6fbe | 167 | |
168 | %description -n perl-%{name} | |
169 | Perl interface to cyrus-imapd library. | |
170 | ||
04d4eab0 | 171 | %description -n perl-%{name} -l pl.UTF-8 |
f7cc6fbe | 172 | Perlowy interfejs do biblioteki cyrus-imapd. |
173 | ||
0ccde06b ER |
174 | %package doc |
175 | Summary: Cyrus-IMAP documentation | |
176 | Group: Documentation | |
14079802 ER |
177 | %if "%{_rpmversion}" >= "5" |
178 | BuildArch: noarch | |
179 | %endif | |
0ccde06b ER |
180 | |
181 | %description doc | |
182 | Cyrus-IMAP HTML documentation. | |
183 | ||
1be9fbde | 184 | %prep |
e846e561 | 185 | %setup -q |
e0d09ed7 | 186 | %patch6 -p1 |
6920db12 | 187 | %patch0 -p1 |
e0d09ed7 | 188 | %if %{with shared} |
3f09f123 | 189 | lsdiff --strip 1 %{PATCH1} |grep -E '(configure.in|Makefile.in)'| xargs %{__sed} -i -e ' |
e0d09ed7 ER |
190 | s/\.o/.lo/g |
191 | s/\.a/.la/g | |
192 | ' | |
3beb582f | 193 | %patch1 -p1 |
e0d09ed7 | 194 | %endif |
41a4d655 | 195 | %patch2 -p1 |
581ee888 ER |
196 | %patch3 -p1 |
197 | %patch4 -p1 | |
144454c2 JB |
198 | |
199 | rm -rf autom4te.cache | |
3750750a | 200 | |
f49116e9 ER |
201 | cp -p %{SOURCE1} %{SOURCE2} %{SOURCE4} %{SOURCE5} . |
202 | ||
1be9fbde | 203 | %build |
1be9fbde | 204 | cd makedepend |
f53bf28b | 205 | %{__libtoolize} |
e25dce16 | 206 | %{__aclocal} |
2fbf581c | 207 | %{__autoconf} |
f53bf28b | 208 | cp -f %{_datadir}/automake/config.* . |
e846e561 | 209 | %configure |
07550cdb | 210 | %{__make} |
f53bf28b | 211 | PATH=$PATH:$(pwd); export PATH |
1be9fbde | 212 | cd .. |
9db9f97b | 213 | %{__libtoolize} |
e25dce16 | 214 | %{__aclocal} -I cmulocal |
215 | %{__autoheader} | |
2fbf581c | 216 | %{__autoconf} |
e3159f00 | 217 | cp -f %{_datadir}/automake/config.* . |
808aa207 | 218 | cp -f %{_datadir}/automake/install-sh . |
f3b9d127 | 219 | %configure \ |
9d1481eb | 220 | --with-cyrus-prefix=%{_libexecdir} \ |
144454c2 | 221 | --with-service-path=%{_libexecdir} \ |
573b6024 | 222 | --with-com_err=/usr \ |
581ee888 | 223 | --%{!?with_perl:without-perl}%{?with_perl:with-perl=%{__perl}} \ |
41a4d655 | 224 | --without-libwrap \ |
ad180cab ER |
225 | --enable-nntp \ |
226 | --enable-replication | |
008c7a6d | 227 | %{__make} -j1 \ |
3beb582f AF |
228 | INSTALLDIRS=vendor \ |
229 | VERSION=%{version} | |
1be9fbde | 230 | |
4dd0ee92 | 231 | %{__cc} %{rpmcflags} \ |
1097b491 | 232 | -DLIBEXECDIR="\"%{_libexecdir}\"" %{rpmldflags} -Wall -o deliver-wrapper %{SOURCE3} |
1be9fbde AF |
233 | |
234 | %install | |
f3b9d127 | 235 | rm -rf $RPM_BUILD_ROOT |
f3b9d127 AF |
236 | install -d \ |
237 | $RPM_BUILD_ROOT{%{_sbindir},%{_libexecdir},%{_mandir}} \ | |
6cd9161b | 238 | $RPM_BUILD_ROOT%{_sysconfdir}/{logrotate.d,sysconfig/rc-inetd} \ |
f3b9d127 | 239 | $RPM_BUILD_ROOT/var/spool/imap/stage. \ |
758683a1 | 240 | $RPM_BUILD_ROOT/var/lib/imap/{user,quota,proc,log,msg,deliverdb/db,sieve,db,socket} \ |
c2419b53 | 241 | $RPM_BUILD_ROOT/etc/{security,pam.d,rc.d/init.d} |
6920db12 | 242 | |
e5822417 JR |
243 | touch $RPM_BUILD_ROOT/var/lib/imap/mailboxes \ |
244 | $RPM_BUILD_ROOT/var/lib/imap/faillog \ | |
84577b34 | 245 | $RPM_BUILD_ROOT/etc/security/blacklist.imap \ |
e5f127bb | 246 | $RPM_BUILD_ROOT/etc/security/blacklist.pop3 |
f3b9d127 | 247 | |
573b6024 | 248 | %{__make} install \ |
249 | DESTDIR=$RPM_BUILD_ROOT \ | |
ea5bd6ff ER |
250 | CYRUS_USER=%(id -u) \ |
251 | CYRUS_GROUP=%(id -g) \ | |
573b6024 | 252 | INSTALLDIRS=vendor |
f3b9d127 | 253 | |
dfaf660e ER |
254 | # ensure +x bit for rpm autodeps |
255 | chmod +x $RPM_BUILD_ROOT%{_libdir}/*.so* | |
256 | ||
f49116e9 | 257 | install -p deliver-wrapper $RPM_BUILD_ROOT%{_libexecdir}/deliver-wrapper |
f3b9d127 | 258 | |
f49116e9 ER |
259 | cp -p %{SOURCE6} $RPM_BUILD_ROOT/etc/logrotate.d/cyrus-imapd |
260 | cp -p %{SOURCE7} $RPM_BUILD_ROOT%{_sysconfdir}/imapd.conf | |
261 | cp -p %{SOURCE9} $RPM_BUILD_ROOT/etc/pam.d/imap | |
262 | cp -p %{SOURCE10} $RPM_BUILD_ROOT/etc/pam.d/pop | |
c38a6f02 | 263 | sed -e 's,/''usr/lib/cyrus,%{_libexecdir},' %{SOURCE11} > $RPM_BUILD_ROOT/etc/rc.d/init.d/cyrus-imapd |
72073223 | 264 | sed -e 's,/''usr/lib/cyrus,%{_libexecdir},' %{SOURCE13} > $RPM_BUILD_ROOT/etc/rc.d/init.d/cyrus-sync |
f49116e9 | 265 | cp -p %{SOURCE12} $RPM_BUILD_ROOT%{_sysconfdir}/cyrus.conf |
1be9fbde | 266 | |
e9b22b9e ER |
267 | # move lots of admin-only/system-only stuff to sbin and lib |
268 | # but keep compat links as they are used in configs | |
269 | for i in master reconstruct quota deliver; do | |
270 | mv $RPM_BUILD_ROOT{%{_libexecdir}/$i,%{_sbindir}/cyr$i} | |
271 | ln -s %{_sbindir}/cyr$i $RPM_BUILD_ROOT%{_libexecdir}/$i | |
272 | done | |
273 | for i in mbpath ctl_mboxlist ctl_deliver ctl_cyrusdb squatter \ | |
274 | tls_prune ipurge cyrdump cvt_cyrusdb chk_cyrus arbitron \ | |
275 | cyr_expire; do | |
276 | mv $RPM_BUILD_ROOT{%{_libexecdir},%{_sbindir}}/$i | |
277 | ln -s %{_sbindir}/$i $RPM_BUILD_ROOT%{_libexecdir} | |
278 | done | |
279 | # We rename some utils, so we need to sort out the manpages | |
280 | for i in master reconstruct quota deliver; do | |
281 | mv $RPM_BUILD_ROOT%{_mandir}/man8/{,cyr}$i.8 | |
282 | done | |
283 | ||
f49116e9 | 284 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man8/idled.8 |
3c6d33dc | 285 | |
e5f127bb | 286 | touch $RPM_BUILD_ROOT/etc/security/blacklist.{imap,pop3} |
1be9fbde | 287 | |
f3b9d127 | 288 | # make hashed dirs |
581ee888 | 289 | for i in $(%{__perl} -le 'print for "a".."z"'); do |
c38a6f02 ER |
290 | install -d $RPM_BUILD_ROOT%{_var}/lib/imap/user/$i |
291 | install -d $RPM_BUILD_ROOT%{_var}/lib/imap/quota/$i | |
292 | install -d $RPM_BUILD_ROOT%{_var}/lib/imap/sieve/$i | |
293 | install -d $RPM_BUILD_ROOT%{_var}/spool/imap/$i | |
610cc4ce | 294 | done |
1be9fbde | 295 | |
581ee888 ER |
296 | %if %{with perl} |
297 | find $RPM_BUILD_ROOT%{perl_vendorarch} -name .packlist | xargs rm -v | |
f49116e9 | 298 | %{__rm} $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod |
581ee888 ER |
299 | %endif |
300 | ||
c0ac4d51 JB |
301 | %clean |
302 | rm -rf $RPM_BUILD_ROOT | |
303 | ||
a2e343ee | 304 | %pre |
8cb0dfcd | 305 | %useradd -u 76 -d /var/spool/imap -s /bin/false -c "Cyrus User" -g mail cyrus |
a2e343ee | 306 | |
1be9fbde | 307 | %post |
e5822417 | 308 | touch /var/lib/imap/faillog |
67fb57cd | 309 | chown cyrus:mail /var/lib/imap/faillog |
e5822417 | 310 | chmod 640 /var/lib/imap/faillog |
e5822417 | 311 | cd /var/lib/imap |
ff3301e7 | 312 | chattr +S . user quota user/* quota/* 2>/dev/null ||: |
313 | chattr +S /var/spool/imap /var/spool/imap/* 2>/dev/null ||: | |
8ad6112d ER |
314 | |
315 | /sbin/chkconfig --add cyrus-imapd | |
c38a6f02 | 316 | %service cyrus-imapd restart "cyrus imap daemon" |
72073223 | 317 | %service cyrus-sync restart "cyrus replication service" |
c2419b53 | 318 | |
319 | %preun | |
e2f602fa | 320 | if [ "$1" = "0" ]; then |
df8a13f2 | 321 | %service cyrus-imapd stop |
72073223 | 322 | %service cyrus-sync stop |
e2f602fa | 323 | /sbin/chkconfig --del cyrus-imapd |
72073223 | 324 | /sbin/chkconfig --del cyrus-sync |
e2f602fa | 325 | fi |
c2419b53 | 326 | |
a2e343ee | 327 | %postun |
328 | if [ "$1" = "0" ]; then | |
ff3301e7 | 329 | %userremove cyrus |
a2e343ee | 330 | fi |
331 | ||
9db9f97b JB |
332 | %post libs -p /sbin/ldconfig |
333 | %postun libs -p /sbin/ldconfig | |
334 | ||
f3b9d127 AF |
335 | %files |
336 | %defattr(644,root,root,755) | |
1097b491 | 337 | %doc cyrus-README cyrus-procmailrc cyrus-user-procmailrc.template |
0ccde06b | 338 | %doc cyrus-imapd-procmail+cyrus.mc COPYRIGHT tools |
41919aea ER |
339 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.conf |
340 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/cyrus-imapd | |
341 | %attr(440,cyrus,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/* | |
342 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.* | |
b5845dff | 343 | %attr(754,root,root) /etc/rc.d/init.d/cyrus-imapd |
72073223 | 344 | %attr(754,root,root) /etc/rc.d/init.d/cyrus-sync |
c2419b53 | 345 | %attr(640,cyrus,mail) %ghost /var/lib/imap/faillog |
e9b22b9e ER |
346 | %attr(755,root,root) %{_bindir}/cyradm |
347 | %attr(755,root,root) %{_bindir}/imtest | |
348 | %attr(755,root,root) %{_bindir}/installsieve | |
349 | %attr(755,root,root) %{_bindir}/lmtptest | |
350 | %attr(755,root,root) %{_bindir}/mupdatetest | |
351 | %attr(755,root,root) %{_bindir}/nntptest | |
352 | %attr(755,root,root) %{_bindir}/pop3test | |
353 | %attr(755,root,root) %{_bindir}/sieveshell | |
354 | %attr(755,root,root) %{_bindir}/sivtest | |
355 | %attr(755,root,root) %{_bindir}/smtptest | |
356 | %attr(755,root,root) %{_bindir}/synctest | |
357 | ||
358 | %attr(4754,cyrus,mail) %{_sbindir}/cyrdeliver | |
359 | %attr(755,root,root) %{_sbindir}/arbitron | |
360 | %attr(755,root,root) %{_sbindir}/chk_cyrus | |
361 | %attr(755,root,root) %{_sbindir}/ctl_cyrusdb | |
362 | %attr(755,root,root) %{_sbindir}/ctl_deliver | |
363 | %attr(755,root,root) %{_sbindir}/ctl_mboxlist | |
364 | %attr(755,root,root) %{_sbindir}/cvt_cyrusdb | |
365 | %attr(755,root,root) %{_sbindir}/cyr_expire | |
366 | %attr(755,root,root) %{_sbindir}/cyrdump | |
367 | %attr(755,root,root) %{_sbindir}/cyrmaster | |
368 | %attr(755,root,root) %{_sbindir}/cyrquota | |
369 | %attr(755,root,root) %{_sbindir}/cyrreconstruct | |
370 | %attr(755,root,root) %{_sbindir}/ipurge | |
371 | %attr(755,root,root) %{_sbindir}/mbpath | |
372 | %attr(755,root,root) %{_sbindir}/squatter | |
373 | %attr(755,root,root) %{_sbindir}/tls_prune | |
374 | ||
c38a6f02 | 375 | %dir %{_libexecdir} |
f3b9d127 | 376 | %attr(2755,cyrus,mail) %{_libexecdir}/deliver-wrapper |
070fb878 | 377 | %attr(755,root,root) %{_libexecdir}/cyr_dbtool |
3beb582f | 378 | %attr(755,root,root) %{_libexecdir}/cyr_df |
42a44080 | 379 | %attr(755,root,root) %{_libexecdir}/cyr_sequence |
3beb582f | 380 | %attr(755,root,root) %{_libexecdir}/cyr_synclog |
42a44080 | 381 | %attr(755,root,root) %{_libexecdir}/cyr_userseen |
070fb878 | 382 | %attr(755,root,root) %{_libexecdir}/fetchnews |
c2419b53 | 383 | %attr(755,root,root) %{_libexecdir}/fud |
384 | %attr(755,root,root) %{_libexecdir}/imapd | |
c2419b53 | 385 | %attr(755,root,root) %{_libexecdir}/lmtpd |
070fb878 | 386 | %attr(755,root,root) %{_libexecdir}/lmtpproxyd |
808aa207 | 387 | %attr(755,root,root) %{_libexecdir}/mbexamine |
070fb878 | 388 | %attr(755,root,root) %{_libexecdir}/nntpd |
144454c2 | 389 | %attr(755,root,root) %{_libexecdir}/notifyd |
c2419b53 | 390 | %attr(755,root,root) %{_libexecdir}/pop3d |
144454c2 | 391 | %attr(755,root,root) %{_libexecdir}/pop3proxyd |
070fb878 | 392 | %attr(755,root,root) %{_libexecdir}/proxyd |
144454c2 | 393 | %attr(755,root,root) %{_libexecdir}/sievec |
3beb582f | 394 | %attr(755,root,root) %{_libexecdir}/sieved |
144454c2 | 395 | %attr(755,root,root) %{_libexecdir}/smmapd |
3beb582f AF |
396 | %attr(755,root,root) %{_libexecdir}/sync_client |
397 | %attr(755,root,root) %{_libexecdir}/sync_reset | |
398 | %attr(755,root,root) %{_libexecdir}/sync_server | |
c2419b53 | 399 | %attr(755,root,root) %{_libexecdir}/timsieved |
070fb878 AF |
400 | %attr(755,root,root) %{_libexecdir}/unexpunge |
401 | ||
e9b22b9e ER |
402 | # symlinks |
403 | %attr(755,root,root) %{_libexecdir}/arbitron | |
404 | %attr(755,root,root) %{_libexecdir}/chk_cyrus | |
405 | %attr(755,root,root) %{_libexecdir}/ctl_cyrusdb | |
406 | %attr(755,root,root) %{_libexecdir}/ctl_deliver | |
407 | %attr(755,root,root) %{_libexecdir}/ctl_mboxlist | |
408 | %attr(755,root,root) %{_libexecdir}/cvt_cyrusdb | |
409 | %attr(755,root,root) %{_libexecdir}/cyr_expire | |
410 | %attr(755,root,root) %{_libexecdir}/cyrdump | |
411 | %attr(755,root,root) %{_libexecdir}/deliver | |
412 | %attr(755,root,root) %{_libexecdir}/ipurge | |
413 | %attr(755,root,root) %{_libexecdir}/master | |
414 | %attr(755,root,root) %{_libexecdir}/mbpath | |
415 | %attr(755,root,root) %{_libexecdir}/quota | |
416 | %attr(755,root,root) %{_libexecdir}/reconstruct | |
417 | %attr(755,root,root) %{_libexecdir}/squatter | |
418 | %attr(755,root,root) %{_libexecdir}/tls_prune | |
419 | ||
c2419b53 | 420 | %attr(750,cyrus,mail) /var/spool/imap |
421 | %attr(750,cyrus,mail) %dir /var/lib/imap | |
758683a1 | 422 | %attr(750,cyrus,mail) %dir /var/lib/imap/deliverdb |
423 | %attr(750,cyrus,mail) /var/lib/imap/deliverdb/db | |
424 | %attr(750,cyrus,mail) /var/lib/imap/quota | |
425 | %attr(750,cyrus,mail) /var/lib/imap/user | |
426 | %attr(750,cyrus,mail) /var/lib/imap/sieve | |
427 | %attr(750,cyrus,mail) /var/lib/imap/log | |
428 | %attr(750,cyrus,mail) /var/lib/imap/msg | |
429 | %attr(750,cyrus,mail) /var/lib/imap/proc | |
430 | %attr(750,cyrus,mail) /var/lib/imap/db | |
431 | %attr(750,cyrus,mail) /var/lib/imap/socket | |
41919aea | 432 | %attr(750,cyrus,mail) %config(noreplace) %verify(not md5 mtime size) /var/lib/imap/mailboxes |
f3b9d127 | 433 | |
1be9fbde | 434 | %{_mandir}/man*/* |
26aa5f83 | 435 | |
581ee888 | 436 | %if %{with shared} |
9db9f97b JB |
437 | %files libs |
438 | %defattr(644,root,root,755) | |
3beb582f AF |
439 | %attr(755,root,root) %{_libdir}/libcyrus-%{version}.so |
440 | %attr(755,root,root) %{_libdir}/libcyrus_min-%{version}.so | |
581ee888 | 441 | %endif |
9db9f97b | 442 | |
26aa5f83 | 443 | %files devel |
444 | %defattr(644,root,root,755) | |
581ee888 ER |
445 | %{_includedir}/cyrus |
446 | %if %{with shared} | |
ddff1f48 ER |
447 | %attr(755,root,root) %{_libdir}/libcyrus.so |
448 | %attr(755,root,root) %{_libdir}/libcyrus_min.so | |
449 | %{_libdir}/libcyrus.la | |
450 | %{_libdir}/libcyrus_min.la | |
26aa5f83 | 451 | |
452 | %files static | |
453 | %defattr(644,root,root,755) | |
581ee888 | 454 | %endif |
ddff1f48 ER |
455 | %{_libdir}/libcyrus.a |
456 | %{_libdir}/libcyrus_min.a | |
f7cc6fbe | 457 | |
581ee888 | 458 | %if %{with perl} |
f7cc6fbe | 459 | %files -n perl-%{name} |
460 | %defattr(644,root,root,755) | |
573b6024 | 461 | %{perl_vendorarch}/Cyrus |
808aa207 JB |
462 | %dir %{perl_vendorarch}/auto/Cyrus |
463 | %dir %{perl_vendorarch}/auto/Cyrus/IMAP | |
464 | %attr(755,root,root) %{perl_vendorarch}/auto/Cyrus/IMAP/IMAP.so | |
808aa207 JB |
465 | %dir %{perl_vendorarch}/auto/Cyrus/SIEVE |
466 | %dir %{perl_vendorarch}/auto/Cyrus/SIEVE/managesieve | |
467 | %attr(755,root,root) %{perl_vendorarch}/auto/Cyrus/SIEVE/managesieve/managesieve.so | |
581ee888 | 468 | %endif |
0ccde06b ER |
469 | |
470 | %files doc | |
471 | %defattr(644,root,root,755) | |
472 | %doc doc/*.html |