Summary: Courier authentication library
Summary(pl): Biblioteka uwierzytelniania Couriera
Name: courier-authlib
-Version: 0.57
-Release: 2.7
+Version: 0.58
+Release: 3
License: GPL
Group: Networking/Daemons
Source0: http://dl.sourceforge.net/courier/%{name}-%{version}.tar.bz2
-# Source0-md5: af146ac84f0c3ee00006af50b4415d8a
+# Source0-md5: fb691558d611cb191ae6a83002f0195b
Source1: %{name}.init
Patch0: %{name}-build.patch
Patch1: %{name}-md5sum-passwords.patch
BuildRequires: db-devel
BuildRequires: expect
BuildRequires: libtool
+BuildRequires: libltdl-devel
BuildRequires: mysql-devel
-BuildRequires: openldap-devel
+BuildRequires: openldap-devel >= 2.3.0
BuildRequires: pam-devel
BuildRequires: postgresql-devel
BuildRequires: sed >= 4.0
BuildRequires: sysconftool
BuildRequires: zlib-devel
+Requires: rc-scripts
+Requires: /sbin/chkconfig
Requires(post,preun): /sbin/chkconfig
Requires(post): /sbin/ldconfig
Obsoletes: sqwebmail-auth-cram
%{__libtoolize}
# Change Makefile.am files and force recreate Makefile.in's.
-OLDDIR=`pwd`
-find -type f -a \( -name configure.in -o -name configure.ac \) | while read FILE; do
- cd "`dirname "$FILE"`"
+OLDDIR=$(pwd)
+for FILE in {,*/}configure.{in,ac}; do
+ cd "$(dirname "$FILE")"
if [ -f Makefile.am ]; then
- sed -i -e '/_LDFLAGS=-static/d' Makefile.am
+ sed -i -e '/_[L]DFLAGS=-static/d' Makefile.am
fi
%{__aclocal}
%install
rm -rf $RPM_BUILD_ROOT
-%{__make} install \
+%{__make} -j1 install \
DESTDIR=$RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_sysconfdir}/authlib/userdb,%{schemadir}}
%preun
if [ "$1" = "0" ]; then
/sbin/chkconfig --del courier-authlib
-fi
-if [ -f /var/lock/subsys/courier-authlib ]; then
- /etc/rc.d/init.d/courier-authlib stop
+ if [ -f /var/lock/subsys/courier-authlib ]; then
+ /etc/rc.d/init.d/courier-authlib stop
+ fi
fi
%postun