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