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