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