X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=dovecot.spec;h=118d1acb5684e0caffca8894f91496bde87fb826;hb=5ec00a97bab08cee893536339f4c18f25034ffcf;hp=5d8ce75c9011f48392e1242b31d324e756f0ed24;hpb=4c2e72462579429547304f0c38292c8745cc557f;p=packages%2Fdovecot.git diff --git a/dovecot.spec b/dovecot.spec index 5d8ce75..118d1ac 100644 --- a/dovecot.spec +++ b/dovecot.spec @@ -1,34 +1,35 @@ # # Conditional build: +%bcond_with gssapi # with GSSAPI support %bcond_without ldap # without LDAP auth %bcond_without mysql # without MySQL auth %bcond_without pgsql # without PostgreSQL auth -%bcond_without sqlite # without SQLite3 auth +%bcond_without sqlite # without SQLite3 auth %bcond_without sasl # without SASL auth # Summary: IMAP and POP3 server written with security primarily in mind Summary(pl.UTF-8): Serwer IMAP i POP3 pisany głównie z myślą o bezpieczeństwie Name: dovecot -Version: 1.0.rc27 +Version: 1.1.14 Release: 1 -License: LGPL v2.1 and MIT +Epoch: 1 +License: MIT (libraries), LGPL v2.1 (the rest) Group: Networking/Daemons -Source0: http://dovecot.org/releases/%{name}-%{version}.tar.gz -# Source0-md5: 2bc18491c869e0b298ef114d07cdbb46 +Source0: http://dovecot.org/releases/1.1/%{name}-%{version}.tar.gz +# Source0-md5: 60b1deccc0ae77e5669060d2b1894e5e Source1: %{name}.pamd Source2: %{name}.init Source3: %{name}.sysconfig Patch0: %{name}-config.patch -#Patch1: %{name}-pop3-undeleted.patch URL: http://dovecot.org/ BuildRequires: autoconf BuildRequires: automake %{?with_sasl:BuildRequires: cyrus-sasl-devel >= 2.0} -BuildRequires: heimdal-devel BuildRequires: gettext-devel +%{?with_gssapi:BuildRequires: krb5-devel} BuildRequires: libtool %{?with_mysql:BuildRequires: mysql-devel} -%{?with_ldap:BuildRequires: openldap-devel >= 2.3.0} +%{?with_ldap:BuildRequires: openldap-devel >= 2.3.3} BuildRequires: openssl-devel >= 0.9.7d BuildRequires: pam-devel BuildRequires: pkgconfig @@ -44,8 +45,8 @@ Requires(pre): /usr/sbin/groupadd Requires(pre): /usr/sbin/useradd Requires: pam >= 0.79.0 Provides: group(dovecot) -Provides: user(dovecot) Provides: imapdaemon +Provides: user(dovecot) BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -110,10 +111,22 @@ Stan: - quota Maildir++ jest obsługiwana, ale twarda quota na systemach plików może być problematyczna +%package devel +Summary: Development package for dovecot plugins +Summary(pl.UTF-8): Pakiet programistyczny do tworzenia wtyczek dla dovecota +Group: Development/Libraries +# doesn't require base + +%description devel +Development package for dovecot plugins. + +%description devel -l pl.UTF-8 +Pakiet programistyczny do tworzenia wtyczek dla dovecota. + %prep %setup -q %patch0 -p1 -#%patch1 -p1 + %{__sed} -i 's,/usr/lib/dovecot,%{_libdir}/dovecot,g' dovecot-example.conf %build @@ -124,13 +137,15 @@ touch config.rpath %{__autoheader} %{__automake} %configure \ + --disable-static \ %{?debug:--enable-debug} \ + --enable-header-install \ %{?with_ldap:--with-ldap} \ %{?with_mysql:--with-mysql} \ %{?with_pgsql:--with-pgsql} \ %{?with_sasl:--with-cyrus-sasl2} \ %{?with_sqlite:--with-sqlite} \ - --with-gssapi \ + %{?with_gssapi:--with-gssapi} \ --with-ssl=openssl \ --with-ssl-dir=/var/lib/openssl \ --sysconfdir=/etc/%{name} @@ -140,7 +155,6 @@ touch config.rpath %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT/etc/{pam.d,rc.d/init.d,sysconfig,security} -install -d $RPM_BUILD_ROOT{%{_libdir},%{_bindir}} install -d $RPM_BUILD_ROOT{/var/lib/dovecot,/var/run/dovecot/login} %{__make} install \ @@ -155,6 +169,21 @@ install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/%{name} touch $RPM_BUILD_ROOT/etc/security/blacklist.imap +rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins{,/imap}/*.la + +# devel +for folder in deliver imap lib lib-imap lib-mail lib-storage; do + install -d $RPM_BUILD_ROOT%{_includedir}/%{name}/$folder + install -p -m644 src/$folder/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}/$folder/ +done +for dir in lib lib-imap lib-mail lib-storage; do + install -d $RPM_BUILD_ROOT%{_libdir}/%{name}-devel/src/$dir + install -p -m644 src/$dir/*.a $RPM_BUILD_ROOT%{_libdir}/%{name}-devel/src/$dir +done +mv $RPM_BUILD_ROOT%{_libdir}/%{name}/dovecot-config $RPM_BUILD_ROOT%{_libdir}/%{name}-devel + +rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name} + %clean rm -rf $RPM_BUILD_ROOT @@ -184,19 +213,56 @@ if [ "$1" = "0" ]; then %groupremove dovecot fi +%triggerpostun -- dovecot < 1:1.1 +echo "Configuration change default_mail_env -> mail_location" +%{__sed} -i -e "s/^default_mail_env/mail_location/" /etc/dovecot/dovecot.conf + %files %defattr(644,root,root,755) # COPYING contains some notes, not actual LGPL text -%doc AUTHORS COPYING ChangeLog NEWS README TODO doc/*.txt doc/*.c*f +%doc AUTHORS COPYING ChangeLog NEWS README TODO doc/*.txt doc/*.c*f doc/wiki/*.txt %attr(755,root,root) %{_sbindir}/%{name} %attr(755,root,root) %{_sbindir}/%{name}pw %attr(750,root,root) %dir %{_sysconfdir}/%{name} %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/%{name}.conf +%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/%{name}-db-example.conf +%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/%{name}-ldap-example.conf +%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/%{name}-sql-example.conf %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/%{name} %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.imap %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name} %attr(754,root,root) /etc/rc.d/init.d/%{name} -%attr(755,root,root) %{_libdir}/%{name} +%dir %{_libdir}/%{name} +%attr(755,root,root) %{_libdir}/%{name}/checkpassword-reply +%attr(755,root,root) %{_libdir}/%{name}/deliver +%attr(755,root,root) %{_libdir}/%{name}/dict +%attr(755,root,root) %{_libdir}/%{name}/dovecot-auth +%attr(755,root,root) %{_libdir}/%{name}/gdbhelper +%attr(755,root,root) %{_libdir}/%{name}/idxview +%attr(755,root,root) %{_libdir}/%{name}/imap +%attr(755,root,root) %{_libdir}/%{name}/imap-login +%attr(755,root,root) %{_libdir}/%{name}/convert-tool +%attr(755,root,root) %{_libdir}/%{name}/expire-tool +%attr(755,root,root) %{_libdir}/%{name}/listview +%attr(755,root,root) %{_libdir}/%{name}/logview +%attr(755,root,root) %{_libdir}/%{name}/maildirlock +%attr(755,root,root) %{_libdir}/%{name}/pop3 +%attr(755,root,root) %{_libdir}/%{name}/pop3-login +%attr(755,root,root) %{_libdir}/%{name}/rawlog +%attr(755,root,root) %{_libdir}/%{name}/ssl-build-param +%dir %{_libdir}/%{name}/plugins +%attr(755,root,root) %{_libdir}/%{name}/plugins/*.so +%dir %{_libdir}/%{name}/plugins/imap +%attr(755,root,root)%{_libdir}/%{name}/plugins/imap/*.so +%dir %{_libdir}/%{name}/plugins/lda +%attr(755,root,root) %{_libdir}/%{name}/plugins/lda/*.so +%dir %{_libdir}/%{name}/plugins/pop3 +%attr(755,root,root) %{_libdir}/%{name}/plugins/pop3/*.so %dir /var/lib/dovecot %dir /var/run/dovecot %attr(750,root,dovecot) %dir /var/run/dovecot/login + +%files devel +%defattr(644,root,root,755) +%{_libdir}/%{name}-devel +%{_includedir}/%{name}