Search
j0ke.net Open Build Service
>
Projects
>
server:mail
>
dovecot12
> dovecot12.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File dovecot12.spec of Package dovecot12 (Revision 2)
Currently displaying revision
2
,
show latest
# # spec file for package dovecot12 (Version 1.2.17) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: dovecot12 Version: 1.2.17 Release: 1 License: BSD3c ; LGPLv2.1+ ; MIT %define dovecot_major_version 1.2 %define dovecot_sieve_version 0.1.18 %define dovecot_managesieve_version 0.11.12 %define dovecot_managesieve_docdir %{_docdir}/%{pkg_name}/dovecot-managesieve/ %define dovecot_sieve_docdir %{_docdir}/%{pkg_name}/dovecot-sieve # Group: Productivity/Networking/Email/Servers # %define makeinstall make install DESTDIR=%{buildroot} %define pkg_name dovecot %if 0%{?suse_version} >= 1000 %define with_solr 1 %endif %if 0%{?suse_version} > 1020 %define with_clucene 1 %endif %if 0%{?sles_version} == 9 %define with_sqlite 0 %else %define with_sqlite 1 %endif BuildRequires: bison BuildRequires: db-devel BuildRequires: flex BuildRequires: mysql-devel BuildRequires: openldap2-devel BuildRequires: pam-devel BuildRequires: pkgconfig BuildRequires: postgresql-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{with_sqlite} BuildRequires: sqlite-devel > 3 %endif %if 0%{?with_clucene} BuildRequires: clucene-core-devel BuildRequires: gcc-c++ %endif %if 0%{?sles_version} == 9 BuildRequires: heimdal-devel BuildRequires: libcap %else BuildRequires: krb5-devel BuildRequires: libcap-devel %endif %if 0%{?suse_version} > 1020 BuildRequires: libbz2-devel %endif %if 0%{?with_solr} BuildRequires: curl-devel BuildRequires: libexpat-devel %endif PreReq: %fillup_prereq PreReq: %insserv_prereq PreReq: pwdutils Provides: dovecot = %{version} Obsoletes: dovecot < %{version} Conflicts: dovecot10 dovecot11 dovecot-snapshot dovecot11-snapshot dovecot12-snapshot %if 0%{?suse_version} >= 1010 Recommends: %{name}-backend-mysql = %{version} Recommends: %{name}-backend-pgsql = %{version} %if 0%{with_sqlite} Recommends: %{name}-backend-sqlite = %{version} %endif %endif # Summary: IMAP and POP3 Server Written Primarily with Security in Mind # Url: http://www.dovecot.org # taken from http://www.dovecot.org/releases/1.0/%{pkg_name}-%{version}.tar.gz Source: %{pkg_name}-%{version}.tar.bz2 # taken from http://www.rename-it.nl/dovecot/1.2/dovecot-1.2-sieve-0.1.13.tar.gz %define dovecot_sieve_source_dir dovecot-%{dovecot_major_version}-sieve-%{dovecot_sieve_version} Source1: %{dovecot_sieve_source_dir}.tar.bz2 Source2: %{pkg_name}.init Source3: %{pkg_name}.pam Source4: %{pkg_name}.README.SuSE Source5: dovecot-rpmlintrc %define dovecot_managesieve_source_dir dovecot-%{dovecot_major_version}-managesieve-%{dovecot_managesieve_version} Source6: http://www.rename-it.nl/dovecot/1.2/%{dovecot_managesieve_source_dir}.tar.bz2 Source7: %{pkg_name}-fw # PATCH-FEATURE-UPSTREAM dovecot-1.2.13-managesieve-%{dovecot_managesieve_version}.diff.bz2 Patch: http://www.rename-it.nl/dovecot/1.2/dovecot-1.2.16-managesieve-%{dovecot_managesieve_version}.diff.bz2 # PATCH-FEATURE-UPSTREAM dovecot-1.2.4_pie.patch Patch1: dovecot-1.2.4_pie.patch # PATCH-FEATURE-UPSTREAM dovecot-1.2-managesieve-0.11.11_pie.patch Patch2: dovecot-1.2-managesieve-0.11.11_pie.patch # PATCH-FEATURE-UPSTREAM dovecot-1.2-sieve-0.1.17_pie.patch Patch3: dovecot-1.2-sieve-0.1.17_pie.patch %description Dovecot is an IMAP and POP3 server for Linux and UNIX-like systems, written primarily with security in mind. Although it is written in C, it uses several coding techniques to avoid most of the common pitfalls. Dovecot can work with standard mbox and maildir formats and is fully compatible with UW-IMAP and Courier IMAP servers as well as mail clients accessing the mailboxes directly. Author: -------- Timo Sirainen <tss@iki.fi> %package backend-mysql License: BSD3c ; LGPLv2.1+ ; MIT Summary: MySQL support for Dovecot Group: Productivity/Networking/Email/Servers Requires: %{name} = %{version} Provides: dovecot_sql_backend = %{version} Provides: dovecot-backend-mysql = %{version} Obsoletes: dovecot-backend-mysql < %{version} Conflicts: dovecot10-backend-mysql dovecot11-backend-mysql dovecot-snapshot-backend-mysql dovecot11-snapshot-backend-mysql dovecot12-snapshot-backend-mysql %description backend-mysql Dovecot is an IMAP and POP3 server for Linux and UNIX-like systems, written primarily with security in mind. Although it is written in C, it uses several coding techniques to avoid most of the common pitfalls. Dovecot can work with standard mbox and maildir formats and is fully compatible with UW-IMAP and Courier IMAP servers as well as mail clients accessing the mailboxes directly. This package holds the files needed for MySQL support. Author: -------- Timo Sirainen <tss@iki.fi> %package backend-pgsql License: BSD3c ; LGPLv2.1+ ; MIT Summary: PostgreSQL support for Dovecot Group: Productivity/Networking/Email/Servers Requires: %{name} = %{version} Provides: dovecot_sql_backend = %{version} Provides: dovecot-backend-pgsql = %{version} Obsoletes: dovecot-backend-pgsql < %{version} Conflicts: dovecot10-backend-pgsql dovecot11-backend-pgsql dovecot-snapshot-backend-pgsql dovecot11-snapshot-backend-pgsql dovecot12-snapshot-backend-pgsql %description backend-pgsql Dovecot is an IMAP and POP3 server for Linux and UNIX-like systems, written primarily with security in mind. Although it is written in C, it uses several coding techniques to avoid most of the common pitfalls. Dovecot can work with standard mbox and maildir formats and is fully compatible with UW-IMAP and Courier IMAP servers as well as mail clients accessing the mailboxes directly. This package holds the files needed for PostgreSQL support. Author: -------- Timo Sirainen <tss@iki.fi> %if 0%{?with_sqlite} %package backend-sqlite License: BSD3c ; LGPLv2.1+ ; MIT Summary: SQLite support for Dovecot Group: Productivity/Networking/Email/Servers Requires: %{name} = %{version} Provides: dovecot_sql_backend = %{version} Provides: dovecot-backend-sqlite = %{version} Obsoletes: dovecot-backend-sqlite < %{version} Conflicts: dovecot10-backend-sqlite dovecot11-backend-sqlite dovecot-snapshot-backend-sqlite dovecot11-snapshot-backend-sqlite dovecot12-snapshot-backend-sqlite %description backend-sqlite Dovecot is an IMAP and POP3 server for Linux and UNIX-like systems, written primarily with security in mind. Although it is written in C, it uses several coding techniques to avoid most of the common pitfalls. Dovecot can work with standard mbox and maildir formats and is fully compatible with UW-IMAP and Courier IMAP servers as well as mail clients accessing the mailboxes directly. This package holds the files needed for SQLite support. Author: -------- Timo Sirainen <tss@iki.fi> %endif %if 0%{?with_clucene} %package fts-lucene License: BSD3c ; LGPLv2.1+ ; MIT Summary: Fulltext search support via CLucene Group: Productivity/Networking/Email/Servers Requires: %{name} = %{version} Provides: dovecot_fts_backend = %{version} Provides: dovecot-fts-clucene = %{version} Obsoletes: dovecot-fts-clucene < %{version} Conflicts: dovecot10-fts-clucene dovecot11-fts-clucene dovecot-snapshot-fts-clucene dovecot11-snapshot-fts-clucene dovecot12-snapshot-fts-clucene %description fts-lucene Dovecot is an IMAP and POP3 server for Linux and UNIX-like systems, written primarily with security in mind. Although it is written in C, it uses several coding techniques to avoid most of the common pitfalls. Dovecot can work with standard mbox and maildir formats and is fully compatible with UW-IMAP and Courier IMAP servers as well as mail clients accessing the mailboxes directly. This package holds the files needed for fulltext search support via CLucene. Author: -------- Timo Sirainen <tss@iki.fi> %endif %if 0%{?with_solr} %package fts-solr License: BSD3c ; LGPLv2.1+ ; MIT Summary: Fulltext search support via solr Group: Productivity/Networking/Email/Servers Requires: %{name} = %{version} Provides: dovecot_fts_backend = %{version} Provides: dovecot-fts-solr = %{version} Obsoletes: dovecot-fts-solr < %{version} Conflicts: dovecot10-fts-solr dovecot11-fts-solr dovecot-snapshot-fts-solr dovecot11-snapshot-fts-solr dovecot12-snapshot-fts-solr %description fts-solr Dovecot is an IMAP and POP3 server for Linux and UNIX-like systems, written primarily with security in mind. Although it is written in C, it uses several coding techniques to avoid most of the common pitfalls. Dovecot can work with standard mbox and maildir formats and is fully compatible with UW-IMAP and Courier IMAP servers as well as mail clients accessing the mailboxes directly. This package holds the files needed for fulltext search support via solr. Author: -------- Timo Sirainen <tss@iki.fi> %endif %package devel License: BSD3c ; LGPLv2.1+ ; MIT # Summary: Development files for Dovecot plugins Group: Development/Libraries/C and C++ Requires: %{name} = %{version} Provides: dovecot-devel = %{version} Obsoletes: dovecot-devel < %{version} Conflicts: dovecot10-devel dovecot-snapshot-devel dovecot11-snapshot-devel dovecot12-snapshot-devel %description devel Dovecot is an IMAP and POP3 server for Linux and UNIX-like systems, written primarily with security in mind. Although it is written in C, it uses several coding techniques to avoid most of the common pitfalls. Dovecot can work with standard mbox and maildir formats and is fully compatible with UW-IMAP and Courier IMAP servers as well as mail clients accessing the mailboxes directly. This package holds the file needed to compile plugins outside of the dovecot tree. Author: -------- Timo Sirainen <tss@iki.fi> %prep %setup -q -n %{pkg_name}-%{version} -a 1 -a 6 %patch -p1 cp %{pkg_name}-example.conf{,.bak} %{__sed} -i -e 's|#ssl = yes|ssl = no|' \ -e 's|/usr/libexec|%{_prefix}/lib|g' %{pkg_name}-example.conf %{__perl} -p -i -e 's|#(mail_plugin_dir =) /usr/lib/dovecot/(.*)$|$1 %{_libdir}/dovecot/modules/$2|g' %{pkg_name}-example.conf diff -urN %{pkg_name}-example.conf{.bak,} ||: %build export CFLAGS="%{optflags}" %if 0%{?suse_version} > 1000 export CFLAGS="$CFLAGS -fstack-protector" %endif if [ -f /usr/share/gettext/config.rpath -a ! -f config.rpath ] ; then %{__cp} -v /usr/share/gettext/config.rpath . fi #./autogen.sh aclocal autoheader libtoolize --force automake --add-missing autoconf %if 0%{?with_clucene} export CFLAGS="$CFLAGS -I%{_libdir}" export CXXFLAGS="$CFLAGS -I%{_libdir}" %endif export CFLAGS="$CFLAGS -fpic -DPIC" export LIBS="-pie" %configure \ --sysconfdir=%{_sysconfdir}/%{pkg_name} \ --libexecdir=%{_prefix}/lib \ --with-moduledir=%{_libdir}/%{pkg_name}/modules \ --with-ioloop=best \ --with-static-userdb \ --with-prefetch-userdb \ %if 0%{?with_clucene} --with-lucene \ %endif %if 0%{?with_solr} --with-solr \ %endif --with-ldap=plugin \ --with-sql=plugin \ --with-gssapi=plugin \ --with-pgsql \ --with-mysql \ %if 0%{?with_sqlite} --with-sqlite \ %endif --with-db \ --with-ssl=openssl \ --with-zlib \ --with-bzlib \ --with-libcap \ --with-docs \ --disable-static \ --enable-header-install %{__make} pushd %{dovecot_sieve_source_dir} if [ -f /usr/share/gettext/config.rpath -a ! -f config.rpath ] ; then %{__cp} -v /usr/share/gettext/config.rpath . fi aclocal autoheader libtoolize --force automake --add-missing autoconf export CFLAGS="$CFLAGS -fno-strict-aliasing" export CPPFLAGS="$CFLAGS -fno-strict-aliasing" %configure \ --sysconfdir=%{_sysconfdir}/%{pkg_name} \ --libexecdir=%{_prefix}/lib/ \ --with-dovecot=../ \ --disable-static \ --enable-pie make popd pushd %{dovecot_managesieve_source_dir} if [ -f /usr/share/gettext/config.rpath -a ! -f config.rpath ] ; then %{__cp} -v /usr/share/gettext/config.rpath . fi aclocal autoheader libtoolize --force automake --add-missing autoconf %configure \ --sysconfdir=%{_sysconfdir}/%{pkg_name} \ --libexecdir=%{_prefix}/lib/ \ --with-moduledir=%{_libdir}/%{pkg_name}/modules \ --with-dovecot=../ \ --with-dovecot-sieve=../%{dovecot_sieve_source_dir} \ --disable-static \ --enable-pie make popd %install %makeinstall docdir=%{_docdir}/%{pkg_name} wikidir=%{_docdir}/%{pkg_name}/wiki %makeinstall -C %{dovecot_sieve_source_dir} docdir=%{dovecot_sieve_docdir} %makeinstall -C %{dovecot_managesieve_source_dir} docdir=%{dovecot_managesieve_docdir} find %{buildroot}%{_libdir}/%{pkg_name}/modules/ -type f -name \*.la -print0 | xargs -r0 rm -v find %{buildroot}%{_libdir}/%{pkg_name}/modules/ -type f -name \*.a -print0 | xargs -r0 rm -v %{__install} -m 0755 -Dd %{buildroot}%{_var}/run/%{pkg_name}/login/ %{buildroot}%{_var}/lib/%{pkg_name}/ # # fix config filename and install additional config %{__mv} %{buildroot}%{_sysconfdir}/%{pkg_name}/%{pkg_name}{-example,}.conf %{__install} -m 0640 doc/*conf %{buildroot}%{_sysconfdir}/%{pkg_name} %{__install} -D -m 0644 %{S:3} %{buildroot}%{_sysconfdir}/pam.d/%{pkg_name} # # install the init script %{__install} -D -m 0755 %{S:2} %{buildroot}%{_sysconfdir}/init.d/%{pkg_name} %{__ln_s} -f %{_sysconfdir}/init.d/%{pkg_name} %{buildroot}%{_sbindir}/rc%{pkg_name} # # install the script to create dummy selfsigned certs %{__install} -m 0755 doc/mkcert.sh %{buildroot}%{_docdir}/%{pkg_name} %{__install} -m 0644 doc/*.cnf %{buildroot}%{_docdir}/%{pkg_name} %{__install} -m 0644 %{S:4} %{buildroot}%{_docdir}/%{pkg_name}/README.SuSE # # additional docs for the main package %{__install} -m 0644 \ AUTHORS ChangeLog COPYING* NEWS TODO README* doc/*.txt \ %{buildroot}%{_docdir}/%{pkg_name}/ %if 0%{?with_solr} %{__install} -m 0644 doc/*.xml \ %{buildroot}%{_docdir}/%{pkg_name}/ %endif %{__gzip} -9v %{buildroot}%{_docdir}/%{pkg_name}/ChangeLog # for i in %{dovecot_sieve_source_dir}/{AUTHORS,ChangeLog,COPYING,NEWS,README} ; do %{__install} -m 0644 $i %{buildroot}%{_docdir}/%{pkg_name}/${i##%{dovecot_sieve_source_dir}/}.dovecot-sieve done for i in %{dovecot_managesieve_source_dir}/{AUTHORS,ChangeLog,COPYING,NEWS,README,TODO} ; do %{__install} -m 0644 $i %{buildroot}%{_docdir}/%{pkg_name}/${i##%{dovecot_managesieve_source_dir}/}.managesieve done # # useless atm %{__rm} -v %{buildroot}%{_libdir}/%{pkg_name}/dovecot-config # install firewall services %{__install} -D -m 644 %{S:7} %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/%{pkg_name} %clean %{__rm} -rf %{buildroot} %pre /usr/sbin/groupadd -r %{pkg_name} &>/dev/null || : /usr/sbin/useradd -o -g %{pkg_name} -s /bin/false -r -c "User for Dovecot imapd" -d %{_var}/run/%{pkg_name} %{pkg_name} &>/dev/null || : %preun %stop_on_removal %{pkg_name} %post %fillup_and_insserv -f %{pkg_name} %postun %insserv_cleanup %restart_on_update %{pkg_name} %files %defattr(-,root,root) %{_sysconfdir}/init.d/%{pkg_name} %{_sbindir}/%{pkg_name}* %{_sbindir}/rc%{pkg_name} %dir %{_sysconfdir}/%{pkg_name} %config(noreplace) %attr(0644,root,root) %{_sysconfdir}/%{pkg_name}/* %config(noreplace) %{_sysconfdir}/pam.d/%{pkg_name} %config %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/%{pkg_name} %dir %{_prefix}/lib/%{pkg_name} %{_prefix}/lib/%{pkg_name}/checkpassword-reply %{_prefix}/lib/%{pkg_name}/dovecot-auth %{_prefix}/lib/%{pkg_name}/rawlog %{_prefix}/lib/%{pkg_name}/imap* %{_prefix}/lib/%{pkg_name}/pop3* %{_prefix}/lib/%{pkg_name}/deliver %{_prefix}/lib/%{pkg_name}/dict %{_prefix}/lib/%{pkg_name}/gdbhelper %{_prefix}/lib/%{pkg_name}/ssl-build-param %{_prefix}/lib/%{pkg_name}/idxview %{_prefix}/lib/%{pkg_name}/logview %{_prefix}/lib/%{pkg_name}/convert-tool %{_prefix}/lib/%{pkg_name}/expire-tool %{_prefix}/lib/%{pkg_name}/listview %{_prefix}/lib/%{pkg_name}/threadview %{_prefix}/lib/%{pkg_name}/maildirlock %{_prefix}/lib/%{pkg_name}/managesieve %{_prefix}/lib/%{pkg_name}/managesieve-login %{_prefix}/lib/%{pkg_name}/authtest # # plugins # %dir %{_libdir}/%{pkg_name} %dir %{_libdir}/%{pkg_name}/modules/ %{_libdir}/%{pkg_name}/modules/lib01_acl_plugin.so %{_libdir}/%{pkg_name}/modules/lib02_lazy_expunge_plugin.so %{_libdir}/%{pkg_name}/modules/lib10_quota_plugin.so %{_libdir}/%{pkg_name}/modules/lib11_trash_plugin.so %{_libdir}/%{pkg_name}/modules/lib20_convert_plugin.so %{_libdir}/%{pkg_name}/modules/lib20_mail_log_plugin.so %{_libdir}/%{pkg_name}/modules/lib20_expire_plugin.so %{_libdir}/%{pkg_name}/modules/lib20_fts_plugin.so %{_libdir}/%{pkg_name}/modules/lib20_mbox_snarf_plugin.so %{_libdir}/%{pkg_name}/modules/lib20_zlib_plugin.so %{_libdir}/%{pkg_name}/modules/lib20_autocreate_plugin.so %{_libdir}/%{pkg_name}/modules/lib20_listescape_plugin.so %{_libdir}/%{pkg_name}/modules/lib20_virtual_plugin.so %{_libdir}/%{pkg_name}/modules/lib21_fts_squat_plugin.so %dir %{_libdir}/%{pkg_name}/modules/imap %{_libdir}/%{pkg_name}/modules/imap/lib01_acl_plugin.so %{_libdir}/%{pkg_name}/modules/imap/lib02_lazy_expunge_plugin.so %{_libdir}/%{pkg_name}/modules/imap/lib02_imap_acl_plugin.so %{_libdir}/%{pkg_name}/modules/imap/lib10_quota_plugin.so %{_libdir}/%{pkg_name}/modules/imap/lib11_imap_quota_plugin.so %{_libdir}/%{pkg_name}/modules/imap/lib11_trash_plugin.so %{_libdir}/%{pkg_name}/modules/imap/lib20_convert_plugin.so %{_libdir}/%{pkg_name}/modules/imap/lib20_mail_log_plugin.so %{_libdir}/%{pkg_name}/modules/imap/lib20_zlib_plugin.so %{_libdir}/%{pkg_name}/modules/imap/lib20_expire_plugin.so %{_libdir}/%{pkg_name}/modules/imap/lib20_fts_plugin.so %{_libdir}/%{pkg_name}/modules/imap/lib20_mbox_snarf_plugin.so %{_libdir}/%{pkg_name}/modules/imap/lib20_autocreate_plugin.so %{_libdir}/%{pkg_name}/modules/imap/lib20_listescape_plugin.so %{_libdir}/%{pkg_name}/modules/imap/lib20_virtual_plugin.so %{_libdir}/%{pkg_name}/modules/imap/lib21_fts_squat_plugin.so %dir %{_libdir}/%{pkg_name}/modules/lda %{_libdir}/%{pkg_name}/modules/lda/lib01_acl_plugin.so %{_libdir}/%{pkg_name}/modules/lda/lib10_quota_plugin.so %{_libdir}/%{pkg_name}/modules/lda/lib11_trash_plugin.so %{_libdir}/%{pkg_name}/modules/lda/lib20_convert_plugin.so %{_libdir}/%{pkg_name}/modules/lda/lib20_mail_log_plugin.so %{_libdir}/%{pkg_name}/modules/lda/lib90_sieve_plugin.so %{_libdir}/%{pkg_name}/modules/lda/lib20_expire_plugin.so %{_libdir}/%{pkg_name}/modules/lda/lib20_fts_plugin.so %{_libdir}/%{pkg_name}/modules/lda/lib20_autocreate_plugin.so %{_libdir}/%{pkg_name}/modules/lda/lib20_listescape_plugin.so %{_libdir}/%{pkg_name}/modules/lda/lib20_virtual_plugin.so %{_libdir}/%{pkg_name}/modules/lda/lib21_fts_squat_plugin.so %{_libdir}/%{pkg_name}/modules/lda/lib90_sieve_plugin.so %dir %{_libdir}/%{pkg_name}/modules/pop3 %{_libdir}/%{pkg_name}/modules/pop3/lib02_lazy_expunge_plugin.so %{_libdir}/%{pkg_name}/modules/pop3/lib10_quota_plugin.so %{_libdir}/%{pkg_name}/modules/pop3/lib20_convert_plugin.so %{_libdir}/%{pkg_name}/modules/pop3/lib20_mail_log_plugin.so %{_libdir}/%{pkg_name}/modules/pop3/lib20_expire_plugin.so %{_libdir}/%{pkg_name}/modules/pop3/lib20_fts_plugin.so %{_libdir}/%{pkg_name}/modules/pop3/lib20_mbox_snarf_plugin.so %{_libdir}/%{pkg_name}/modules/pop3/lib20_zlib_plugin.so %{_libdir}/%{pkg_name}/modules/pop3/lib20_autocreate_plugin.so %{_libdir}/%{pkg_name}/modules/pop3/lib20_listescape_plugin.so %{_libdir}/%{pkg_name}/modules/pop3/lib20_virtual_plugin.so %{_libdir}/%{pkg_name}/modules/pop3/lib21_fts_squat_plugin.so # auth modules %dir %{_libdir}/%{pkg_name}/modules/auth/ %dir %{_libdir}/%{pkg_name}/modules/dict/ %dir %{_libdir}/%{pkg_name}/modules/sql/ %{_libdir}/%{pkg_name}/modules/auth/libauthdb_ldap.so %{_libdir}/%{pkg_name}/modules/auth/libmech_gssapi.so # %{_mandir}/man1/sieve-test.1* %{_mandir}/man1/sievec.1* %{_mandir}/man1/sieved.1* # #%{_bindir}/sieve-filter %{_bindir}/sieve-test %{_bindir}/sievec %{_bindir}/sieved # # documentation # %doc %{_docdir}/%{pkg_name} %if 0%{?with_solr} %exclude %{_docdir}/%{pkg_name}/solr-schema.xml %endif # # setting up permissions # %dir %attr(0755, root, root) %ghost %{_var}/run/%{pkg_name}/ %dir %attr(0750, root, %{pkg_name}) %ghost %{_var}/run/%{pkg_name}/login/ %dir %attr(0750, root, root) %{_var}/lib/%{pkg_name}/ %files backend-mysql %defattr(-,root,root,-) %{_libdir}/%{pkg_name}/modules/auth/libdriver_mysql.so %{_libdir}/%{pkg_name}/modules/dict/libdriver_mysql.so %{_libdir}/%{pkg_name}/modules/sql/libdriver_mysql.so %files backend-pgsql %defattr(-,root,root,-) %{_libdir}/%{pkg_name}/modules/auth/libdriver_pgsql.so %{_libdir}/%{pkg_name}/modules/dict/libdriver_pgsql.so %{_libdir}/%{pkg_name}/modules/sql/libdriver_pgsql.so %if 0%{?with_sqlite} %files backend-sqlite %defattr(-,root,root,-) %{_libdir}/%{pkg_name}/modules/auth/libdriver_sqlite.so %{_libdir}/%{pkg_name}/modules/dict/libdriver_sqlite.so %{_libdir}/%{pkg_name}/modules/sql/libdriver_sqlite.so %endif %if 0%{?with_clucene} %files fts-lucene %defattr(-,root,root,-) %{_libdir}/%{pkg_name}/modules/lib21_fts_lucene_plugin.so %{_libdir}/%{pkg_name}/modules/imap/lib21_fts_lucene_plugin.so %{_libdir}/%{pkg_name}/modules/lda/lib21_fts_lucene_plugin.so %{_libdir}/%{pkg_name}/modules/pop3/lib21_fts_lucene_plugin.so %endif %if 0%{?with_solr} %files fts-solr %defattr(-,root,root,-) %{_libdir}/%{pkg_name}/modules/lib21_fts_solr_plugin.so %{_libdir}/%{pkg_name}/modules/imap/lib21_fts_solr_plugin.so %{_libdir}/%{pkg_name}/modules/lda/lib21_fts_solr_plugin.so %{_libdir}/%{pkg_name}/modules/pop3/lib21_fts_solr_plugin.so %{_docdir}/%{pkg_name}/solr-schema.xml %endif %files devel %defattr(-,root,root,-) %{_includedir}/%{pkg_name}/ %changelog