]> git.pld-linux.org Git - packages/cyrus-sasl.git/blobdiff - cyrus-sasl.spec
- rebuild with new db4.5
[packages/cyrus-sasl.git] / cyrus-sasl.spec
index 6ac6b7ddb7354321d1a8946beb7e3c3648b0eb43..a485be35db03b90f4ab5d1ea6a00b2f45cb8eae6 100644 (file)
@@ -1,19 +1,18 @@
-#
 # TODO:
 # - add ldap plugin from openldap sources
 #
 # Conditional build:
-%bcond_without ldap    # disable LDAP support for saslauthd
-%bcond_without gssapi  # do not enable GSSAPI support for saslauthd and build gssapi plugin
-%bcond_without mysql   # don't build MySQL pluggin
-%bcond_without pgsql   # do not build PostgreSQL pluggin
-%bcond_without sqlite  # do not enable sqlite plugin
-%bcond_with    authlib # enable courier-authlib (i wasn't able to test it)
-%bcond_with    cryptedpw # if you keep crypted passwords in your *sql
-%bcond_with    opie    # enable opie plugin
-%bcond_with    srp     # build srp pluggin
-%bcond_with    pwcheck # build pwcheck helper (deprecated)
-%bcond_with    x509    # build x509 plugin (no sources in package???)
+%bcond_without cryptedpw       # if you keep crypted passwords in your *sql
+%bcond_without ldap            # disable LDAP support for saslauthd
+%bcond_without gssapi          # do not enable GSSAPI support for saslauthd and build gssapi plugin
+%bcond_without mysql           # don't build MySQL pluggin
+%bcond_without pgsql           # do not build PostgreSQL pluggin
+%bcond_without sqlite          # do not enable sqlite plugin
+%bcond_with    authlib         # enable courier-authlib (i wasn't able to test it)
+%bcond_with    opie            # enable opie plugin
+%bcond_with    srp             # build srp pluggin
+%bcond_with    pwcheck         # build pwcheck helper (deprecated)
+%bcond_with    x509            # build x509 plugin (no sources in package???)
 #
 %if %{without mysql} && %{without pgsql}
 %undefine with_cryptedpw
@@ -25,24 +24,23 @@ Summary(pt_BR):     Implementa
 Summary(ru):   âÉÂÌÉÏÔÅËÁ Cyrus SASL
 Summary(uk):   â¦Â̦ÏÔÅËÁ Cyrus SASL
 Name:          cyrus-sasl
-Version:       2.1.21
-Release:       8
+Version:       2.1.22
+Release:       3
 License:       distributable
 Group:         Libraries
 Source0:       ftp://ftp.andrew.cmu.edu/pub/cyrus/%{name}-%{version}.tar.gz
-# Source0-md5: dde02db234dea892bee298390890502e
+# Source0-md5: 45dde9d19193ae9dd388eb68b2027bc9
 Source1:       saslauthd.init
 Source2:       saslauthd.sysconfig
 Source3:       %{name}.pam
-Patch0:                %{name}-configdir.patch
-Patch1:                %{name}-nolibs.patch
-Patch2:                %{name}-lt.patch
-Patch3:                %{name}-split-sql.patch
-Patch4:                %{name}-opie.patch
-Patch5:                %{name}-gcc4.patch
+Patch0:                %{name}-nolibs.patch
+Patch1:                %{name}-lt.patch
+Patch2:                %{name}-split-sql.patch
+Patch3:                %{name}-opie.patch
+Patch4:                %{name}-gcc4.patch
 # Adapted from http://frost.ath.cx/software/cyrus-sasl-patches/dist/2.1.19/cyrus-sasl-2.1.19-checkpw.c+sql.c.patch
-Patch6:                %{name}-cryptedpw.patch
-Patch7:                %{name}-md5sum-passwords.patch
+Patch5:                %{name}-cryptedpw.patch
+Patch6:                %{name}-md5sum-passwords.patch
 URL:           http://asg.web.cmu.edu/sasl/
 BuildRequires: autoconf >= 2.54
 BuildRequires: automake
@@ -58,6 +56,7 @@ BuildRequires:        openssl-devel >= 0.9.7d
 %{?with_opie:BuildRequires:    opie-devel}
 BuildRequires: pam-devel
 %{?with_pgsql:BuildRequires:   postgresql-devel}
+BuildRequires: rpmbuild(macros) >= 1.268
 %{?with_sqlite:BuildRequires:  sqlite-devel}
 Requires:      pam >= 0.79.0
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -105,8 +104,8 @@ Authentication and Security Layer, 
 Summary:       Header files and documentation for cyrus-sasl
 Summary(pl):   Pliki nag³ówkowe i dokumentacja dla cyrus-sasl
 Summary(pt_BR):        Exemplos e arquivos para desenvolvimento com SASL
-Summary(ru):   æÁÊÌÉ ÄÌÑ ÐÒÏÇÒÁÍÕ×ÁÎÎѠڠ¦Â̦ÏÔÅËÏÀ Cyrus SASL
 Summary(ru):   æÁÊÌÙ ÄÌÑ ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ Ó ÂÉÂÌÉÏÔÅËÏÊ Cyrus SASL
+Summary(uk):   æÁÊÌÉ ÄÌÑ ÐÒÏÇÒÁÍÕ×ÁÎÎѠڠ¦Â̦ÏÔÅËÏÀ Cyrus SASL
 Group:         Development/Libraries
 Requires:      %{name} = %{version}-%{release}
 
@@ -351,6 +350,7 @@ Summary(pl):        Demon authd do Cyrus SASL
 Group:         Daemons
 Requires(post,preun):  /sbin/chkconfig
 Requires:      %{name} = %{version}-%{release}
+Requires:      /sbin/chkconfig
 Requires:      rc-scripts
 
 %description saslauthd
@@ -426,10 +426,9 @@ Wtyczka SQLite do Cyrus SASL.
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
-%patch5 -p1
 %if %{with cryptedpw}
+%patch5 -p1
 %patch6 -p1
-%patch7 -p1
 %endif
 
 cd doc
@@ -463,6 +462,7 @@ cd ..
        %{!?with_gssapi: --disable-gssapi} \
        %{?with_gssapi: --enable-gssapi --with-gss_impl=heimdal} \
        --enable-login \
+       --enable-sample \
        --enable-sql \
        %{?with_srp: --enable-srp} \
        --enable-static \
@@ -530,17 +530,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %post saslauthd
 /sbin/chkconfig --add saslauthd
-if [ -f /var/lock/subsys/saslauthd ]; then
-       /etc/rc.d/init.d/saslauthd restart 1>&2
-else
-       echo "Run \"/etc/rc.d/init.d/saslauthd start\" to start saslauthd."
-fi
+%service saslauthd restart
 
 %preun saslauthd
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/saslauthd ]; then
-               /etc/rc.d/init.d/saslauthd stop 1>&2
-       fi
+       %service saslauthd stop
        /sbin/chkconfig --del saslauthd
 fi
 
@@ -555,12 +549,14 @@ fi
 # sample programs to subpackage instead?
 %attr(755,root,root) %{_bindir}/sasl-sample-client
 %attr(755,root,root) %{_bindir}/sasl-sample-server
+%attr(755,root,root) %{_sbindir}/pluginviewer
 %attr(755,root,root) %{_sbindir}/sasldblistusers2
 %attr(755,root,root) %{_sbindir}/saslpasswd2
 
 %attr(640,root,mail) %ghost %config(noreplace) %verify(not md5 mtime size) /var/lib/sasl2/sasl.db
-%{_mandir}/man8/sasldblistusers2.*
-%{_mandir}/man8/saslpasswd2.*
+%{_mandir}/man8/pluginviewer.8*
+%{_mandir}/man8/sasldblistusers2.8*
+%{_mandir}/man8/saslpasswd2.8*
 
 %files devel
 %defattr(644,root,root,755)
@@ -659,4 +655,4 @@ fi
 %attr(755,root,root) %{_sbindir}/testsaslauthd
 %attr(755,root,root) %{_sbindir}/saslcache
 %attr(754,root,root) /etc/rc.d/init.d/saslauthd
-%{_mandir}/man8/saslauthd.*
+%{_mandir}/man8/saslauthd.8*
This page took 0.102215 seconds and 4 git commands to generate.