Группа :: Система/Библиотеки
Пакет: cyrus-sasl2
Главная Изменения Спек Патчи Загрузить Bugs and FR
# Use "--disable sql" for build without PostgreSQL and MySQL support
%def_enable sql
# Use "--disable ldap" for build without LDAP support
%def_enable ldap
%set_autoconf_version 2.5
%set_automake_version 1.7
%set_libtool_version 1.4
Summary: SASL2 is the Simple Authentication and Security Layer
URL: http://asg.web.cmu.edu/sasl/sasl-library.html
Name: cyrus-sasl2
Version: 2.1.19
Packager: Alexei Takaseev <taf at altlinux.ru>
%define srcname cyrus-sasl
Release: alt0.M24.1
Source0: %srcname-%version.tar.gz
Source1: sasldb2
Source2: saslpasswd.conf
Source3: saslauthd.conf
Source4: saslauthd.init
Source5: saslauthd.sysconfig
Source6: saslauthd.init.master
# It's a converted server-plugin-flow.fig to JPEG
Source7: %name-alt-server-plugin-flow.jpg
Source8: README.ALT
Patch0: %name-2.1.19-alt-ssl.patch
Patch3: %srcname-2.1.10-ldap_auxprop.patch
Patch5: %name-alt-saslauthd-configure-rpath.patch
Patch6: %name-2.1.19-checkpw.c.patch
License: Freely Distributable
Group: System/Libraries
Prefix: %prefix
Requires: libsasl2 = %version-%release
BuildPreReq: autoconf_2.5 automake_1.7 libtool_1.4
# Automatically added by buildreq on Wed Dec 03 2003
BuildRequires: glibc-devel-static libdb4.2-devel
BuildRequires: libkrb5-devel >= 1.3.1-alt3 libpam0-devel
BuildRequires: libssl-devel libtool_1.4
%if_enabled sql
BuildRequires: libMySQL-devel postgresql-devel libpq3-devel
%endif
%if_enabled ldap
BuildRequires: libldap-devel
%endif
%description
SASL is the Simple Authentication and Security Layer,
a method for adding authentication support to connection-based protocols.
To use SASL, a protocol includes a command for identifying and authenticating
a user to a server and for optionally negotiating protection of subsequent
protocol interactions. If its use is negotiated, a security layer is inserted
between the protocol and the connection.
%package -n libsasl2
Summary: Librairies for SASL a the Simple Authentication and Security Layer
Group: System/Libraries
Requires: libpam libssl zlib
%description -n libsasl2
SASL is the Simple Authentication and Security Layer,
a method for adding authentication support to connection-based protocols.
To use SASL, a protocol includes a command for identifying and authenticating
a user to a server and for optionally negotiating protection of subsequent
protocol interactions. If its use is negotiated, a security layer is inserted
between the protocol and the connection.
%package -n libsasl2-devel
Summary: Librairies for SASL a the Simple Authentication and Security Layer
Group: Development/C
Requires: libsasl2 = %version-%release
Conflicts: libsasl-devel
%description -n libsasl2-devel
SASL is the Simple Authentication and Security Layer,
a method for adding authentication support to connection-based protocols.
To use SASL, a protocol includes a command for identifying and authenticating
a user to a server and for optionally negotiating protection of subsequent
protocol interactions. If its use is negotiated, a security layer is inserted
between the protocol and the connection.
%package -n libsasl2-devel-static
Summary: Static librairies for SASL a the Simple Authentication and Security Layer
Group: Development/C
Requires: libsasl2-devel = %version-%release
%description -n libsasl2-devel-static
SASL is the Simple Authentication and Security Layer,
a method for adding authentication support to connection-based protocols.
To use SASL, a protocol includes a command for identifying and authenticating
a user to a server and for optionally negotiating protection of subsequent
protocol interactions. If its use is negotiated, a security layer is inserted
between the protocol and the connection.
%package -n libsasl2-plugin-gssapi
Summary: SASL2 KERBEROS_V5 mechanism plugin
Group: System/Libraries
Requires: libsasl2 = %version-%release
Requires: libkrb5 >= 1.3.1-alt3
%description -n libsasl2-plugin-gssapi
This plugin implements the SASL2 KERBEROS_V5 mechanism, allowing
authentication via kerberos version four.
This OPTIONS is EXPERIMENTAL!
%if_enabled sql
%package -n libsasl2-plugin-sql
Summary: SASL2 MySQL and PostgreSQL mechanism plugin
Group: System/Libraries
Requires: libsasl2 = %version-%release
Obsoletes: libsasl2-plugin-mysql
Obsoletes: libsasl2-plugin-pgsql
%description -n libsasl2-plugin-sql
This plugin implements the SASL2 MySQL and PgSQL AUXPROP mechanism.
%endif
#%package -n libsasl2-plugin-ldap
#Summary: SASL2 LDAPAUXPROP mechanism plugin
#Group: System/Libraries
#Requires: libsasl2 = %version-%release
#Requires: libldap
#%description -n libsasl2-plugin-ldap
#This plugin implements the SASL2 LDAPAUXPROP mechanism.
%package docs
Summary: SASL2 docs
Group: System/Libraries
Requires: libsasl2 = %version-%release
%description docs
This package contains documentations for SASL2
%prep
%setup -q -n %srcname-%version
%patch0 -p1
#%patch2 -p0 -b .auxpass
#%patch3 -p0 -b .ldap_auxprop
#%patch5 -p1
%patch6 -p1
%build
%if_enabled sql
export CPPFLAGS="`/usr/bin/krb5-config --cflags` -I/usr/include/pgsql $CPPFLAG"
%else
export CPPFLAGS="`/usr/bin/krb5-config --cflags` $CPPFLAG"
%endif
export LIBTOOL_VERSION="1.4"
#export LDFLAGS="`/usr/bin/krb5-config --libs` $LDFLAGS"
aclocal -I cmulocal -I config
%__autoconf
pushd saslauthd
aclocal -I ../cmulocal -I config -I ../config
%__autoconf
popd
%configure --enable-static --enable-shared \
--sysconfdir=%_sysconfdir/sasl2 \
--libdir=/lib \
--with-plugindir=%_libdir/sasl2 \
--with-dbpath=%_sysconfdir/sasl2/sasldb2 \
--with-dblib=berkeley \
--with-openssl \
--with-des \
--with-pam \
--with-saslauthd=/var/run/saslauthd \
--with-rc4 \
%if_enabled ldap
--with-ldapauxprop=/usr \
--with-ldap=/usr \
%endif
%if_enabled sql
--with-mysql=/usr \
--with-pgsql=/usr \
--enable-sql \
%endif
--enable-anon \
--enable-cram \
--enable-plain \
--enable-login \
--enable-gssapi \
--enable-ntlm \
--enable-digest \
--enable-srp \
--enable-otp \
--disable-krb4
%__subst 's/\/usr\/local\/lib/\/usr\/lib/g' saslauthd/Makefile
%make_build
pushd saslauthd
make testsaslauthd
popd
%install
%makeinstall libdir=%buildroot/lib
mkdir -p %buildroot/usr/bin
%__install -m 755 saslauthd/testsaslauthd %buildroot/usr/bin
pushd %buildroot/lib
for n in `ls -1 *.a`
do
mv $n %buildroot/%_libdir
done
popd
pushd %buildroot/%_libdir
%__ln_s -nf ../../lib/libsasl2.so.2 libsasl2.so
popd
mkdir -p %buildroot%_sysconfdir
mkdir -p %buildroot%_mandir/man8
# some files are currently not installed by the Makefile
cp utils/sasldblistusers2.8 %buildroot%_mandir/man8/
cp utils/saslpasswd2.8 %buildroot%_mandir/man8/
cp saslauthd/saslauthd.mdoc %buildroot%_mandir/man8/saslauthd.8
#mv %buildroot%_mandir/cat8/saslauthd.8 %buildroot%_mandir/man8
cp utils/.libs/dbconverter-2 %buildroot%_sbindir
rm -fr %buildroot%_mandir/cat8
mkdir -p %buildroot%_docdir/%name-%version
mkdir -p %buildroot%_docdir/%name-%version/HTML
mkdir -p %buildroot%_docdir/%name-%version/RFC
install -p -m 0644 doc/*.html* %buildroot%_docdir/%name-%version/HTML
install -p -m 0644 doc/rfc*.txt %buildroot%_docdir/%name-%version/RFC
install -p -m 0644 doc/draft*.txt %buildroot%_docdir/%name-%version/RFC
install -p -m 0644 %SOURCE7 %buildroot%_docdir/%name-%version/HTML/server-plugin-flow.jpg
mkdir -p %buildroot%_docdir/%name-%version/saslauthd
install -p -m 0644 saslauthd/{README,INSTALL,LDAP_SASLAUTHD,NEWS,COPYING,ChangeLog,AUTHORS} %buildroot%_docdir/%name-%version/saslauthd
install -p -m 0644 {%SOURCE8,COPYING,AUTHORS,INSTALL,NEWS,README,ChangeLog,doc/TODO} %buildroot%_docdir/%name-%version
mkdir -p %buildroot%_initdir
mkdir -p %buildroot%_sysconfdir/sysconfig
mkdir -p %buildroot/var/run/saslauthd
mkdir -p %buildroot%_sysconfdir/sasl2
install -m0600 %SOURCE1 %buildroot%_sysconfdir/sasl2
install -m0600 %SOURCE2 %buildroot%_sysconfdir/sasl2
install -m0600 %SOURCE3 %buildroot%_sysconfdir/sasl2
install -m0755 %SOURCE4 %buildroot%_initdir/saslauthd
install -m0600 %SOURCE5 %buildroot%_sysconfdir/sysconfig/saslauthd
%post
%post_service saslauthd
%preun
%preun_service saslauthd
%pre -n libsasl2
/usr/sbin/groupadd -rf sasl
%post -n libsasl2 -p /sbin/post_ldconfig
%postun -n libsasl2 -p /sbin/postun_ldconfig
%post -n libsasl2-devel-static -p /sbin/post_ldconfig
%postun -n libsasl2-devel-static -p /sbin/postun_ldconfig
%files
%config(noreplace) %attr(0640,root,root) %_sysconfdir/sasl2/saslpasswd.conf
%config(noreplace) %attr(0640,root,root) %_sysconfdir/sasl2/saslauthd.conf
%config(noreplace) %attr(0600,root,root) %_sysconfdir/sysconfig/saslauthd
%attr(0755,root,root) %_initdir/saslauthd
%_bindir/*
%_sbindir/*
%_mandir/man8/*
#%_libdir/sasl2/*.conf
%attr(0711,root,root) %dir /var/run/saslauthd
%files -n libsasl2
%config(noreplace) %attr(0640,root,sasl) %_sysconfdir/sasl2/sasldb2
%dir %_sysconfdir/sasl2
%dir %_libdir/sasl2
/lib/*.so.*
%_libdir/sasl2/libanonymous.so*
%_libdir/sasl2/libcrammd5.so*
%_libdir/sasl2/libdigestmd5.so*
%_libdir/sasl2/liblogin.so*
%_libdir/sasl2/libntlm.so*
%_libdir/sasl2/libotp.so*
%_libdir/sasl2/libplain.so*
%_libdir/sasl2/libsasldb.so*
%_libdir/sasl2/libsrp.so*
%doc COPYING AUTHORS INSTALL NEWS README ChangeLog doc/TODO
%files -n libsasl2-devel
%dir %_includedir/sasl
%dir %_libdir/sasl2
%_includedir/sasl/*
#%_libdir/*.la
#%_libdir/*/*.la
%_mandir/man3/*
%_libdir/*.so
%files -n libsasl2-devel-static
%dir %_libdir/sasl2
%_libdir/*.a
%_libdir/*/*.a
%files docs
%doc %_docdir/%name-%version/*
%files -n libsasl2-plugin-gssapi
%_libdir/sasl2/libgssapiv2.so*
#%files -n libsasl2-plugin-ldap
#%_libdir/sasl2/libldapauxprop.so.2.0.15
#%_libdir/sasl2/libldapauxprop.so.2
#%_libdir/sasl2/libldapauxprop.so
%if_enabled sql
%files -n libsasl2-plugin-sql
%_libdir/sasl2/libsql.so*
%endif
%changelog
…
Полный changelog можно просмотреть здесь
%def_enable sql
# Use "--disable ldap" for build without LDAP support
%def_enable ldap
%set_autoconf_version 2.5
%set_automake_version 1.7
%set_libtool_version 1.4
Summary: SASL2 is the Simple Authentication and Security Layer
URL: http://asg.web.cmu.edu/sasl/sasl-library.html
Name: cyrus-sasl2
Version: 2.1.19
Packager: Alexei Takaseev <taf at altlinux.ru>
%define srcname cyrus-sasl
Release: alt0.M24.1
Source0: %srcname-%version.tar.gz
Source1: sasldb2
Source2: saslpasswd.conf
Source3: saslauthd.conf
Source4: saslauthd.init
Source5: saslauthd.sysconfig
Source6: saslauthd.init.master
# It's a converted server-plugin-flow.fig to JPEG
Source7: %name-alt-server-plugin-flow.jpg
Source8: README.ALT
Patch0: %name-2.1.19-alt-ssl.patch
Patch3: %srcname-2.1.10-ldap_auxprop.patch
Patch5: %name-alt-saslauthd-configure-rpath.patch
Patch6: %name-2.1.19-checkpw.c.patch
License: Freely Distributable
Group: System/Libraries
Prefix: %prefix
Requires: libsasl2 = %version-%release
BuildPreReq: autoconf_2.5 automake_1.7 libtool_1.4
# Automatically added by buildreq on Wed Dec 03 2003
BuildRequires: glibc-devel-static libdb4.2-devel
BuildRequires: libkrb5-devel >= 1.3.1-alt3 libpam0-devel
BuildRequires: libssl-devel libtool_1.4
%if_enabled sql
BuildRequires: libMySQL-devel postgresql-devel libpq3-devel
%endif
%if_enabled ldap
BuildRequires: libldap-devel
%endif
%description
SASL is the Simple Authentication and Security Layer,
a method for adding authentication support to connection-based protocols.
To use SASL, a protocol includes a command for identifying and authenticating
a user to a server and for optionally negotiating protection of subsequent
protocol interactions. If its use is negotiated, a security layer is inserted
between the protocol and the connection.
%package -n libsasl2
Summary: Librairies for SASL a the Simple Authentication and Security Layer
Group: System/Libraries
Requires: libpam libssl zlib
%description -n libsasl2
SASL is the Simple Authentication and Security Layer,
a method for adding authentication support to connection-based protocols.
To use SASL, a protocol includes a command for identifying and authenticating
a user to a server and for optionally negotiating protection of subsequent
protocol interactions. If its use is negotiated, a security layer is inserted
between the protocol and the connection.
%package -n libsasl2-devel
Summary: Librairies for SASL a the Simple Authentication and Security Layer
Group: Development/C
Requires: libsasl2 = %version-%release
Conflicts: libsasl-devel
%description -n libsasl2-devel
SASL is the Simple Authentication and Security Layer,
a method for adding authentication support to connection-based protocols.
To use SASL, a protocol includes a command for identifying and authenticating
a user to a server and for optionally negotiating protection of subsequent
protocol interactions. If its use is negotiated, a security layer is inserted
between the protocol and the connection.
%package -n libsasl2-devel-static
Summary: Static librairies for SASL a the Simple Authentication and Security Layer
Group: Development/C
Requires: libsasl2-devel = %version-%release
%description -n libsasl2-devel-static
SASL is the Simple Authentication and Security Layer,
a method for adding authentication support to connection-based protocols.
To use SASL, a protocol includes a command for identifying and authenticating
a user to a server and for optionally negotiating protection of subsequent
protocol interactions. If its use is negotiated, a security layer is inserted
between the protocol and the connection.
%package -n libsasl2-plugin-gssapi
Summary: SASL2 KERBEROS_V5 mechanism plugin
Group: System/Libraries
Requires: libsasl2 = %version-%release
Requires: libkrb5 >= 1.3.1-alt3
%description -n libsasl2-plugin-gssapi
This plugin implements the SASL2 KERBEROS_V5 mechanism, allowing
authentication via kerberos version four.
This OPTIONS is EXPERIMENTAL!
%if_enabled sql
%package -n libsasl2-plugin-sql
Summary: SASL2 MySQL and PostgreSQL mechanism plugin
Group: System/Libraries
Requires: libsasl2 = %version-%release
Obsoletes: libsasl2-plugin-mysql
Obsoletes: libsasl2-plugin-pgsql
%description -n libsasl2-plugin-sql
This plugin implements the SASL2 MySQL and PgSQL AUXPROP mechanism.
%endif
#%package -n libsasl2-plugin-ldap
#Summary: SASL2 LDAPAUXPROP mechanism plugin
#Group: System/Libraries
#Requires: libsasl2 = %version-%release
#Requires: libldap
#%description -n libsasl2-plugin-ldap
#This plugin implements the SASL2 LDAPAUXPROP mechanism.
%package docs
Summary: SASL2 docs
Group: System/Libraries
Requires: libsasl2 = %version-%release
%description docs
This package contains documentations for SASL2
%prep
%setup -q -n %srcname-%version
%patch0 -p1
#%patch2 -p0 -b .auxpass
#%patch3 -p0 -b .ldap_auxprop
#%patch5 -p1
%patch6 -p1
%build
%if_enabled sql
export CPPFLAGS="`/usr/bin/krb5-config --cflags` -I/usr/include/pgsql $CPPFLAG"
%else
export CPPFLAGS="`/usr/bin/krb5-config --cflags` $CPPFLAG"
%endif
export LIBTOOL_VERSION="1.4"
#export LDFLAGS="`/usr/bin/krb5-config --libs` $LDFLAGS"
aclocal -I cmulocal -I config
%__autoconf
pushd saslauthd
aclocal -I ../cmulocal -I config -I ../config
%__autoconf
popd
%configure --enable-static --enable-shared \
--sysconfdir=%_sysconfdir/sasl2 \
--libdir=/lib \
--with-plugindir=%_libdir/sasl2 \
--with-dbpath=%_sysconfdir/sasl2/sasldb2 \
--with-dblib=berkeley \
--with-openssl \
--with-des \
--with-pam \
--with-saslauthd=/var/run/saslauthd \
--with-rc4 \
%if_enabled ldap
--with-ldapauxprop=/usr \
--with-ldap=/usr \
%endif
%if_enabled sql
--with-mysql=/usr \
--with-pgsql=/usr \
--enable-sql \
%endif
--enable-anon \
--enable-cram \
--enable-plain \
--enable-login \
--enable-gssapi \
--enable-ntlm \
--enable-digest \
--enable-srp \
--enable-otp \
--disable-krb4
%__subst 's/\/usr\/local\/lib/\/usr\/lib/g' saslauthd/Makefile
%make_build
pushd saslauthd
make testsaslauthd
popd
%install
%makeinstall libdir=%buildroot/lib
mkdir -p %buildroot/usr/bin
%__install -m 755 saslauthd/testsaslauthd %buildroot/usr/bin
pushd %buildroot/lib
for n in `ls -1 *.a`
do
mv $n %buildroot/%_libdir
done
popd
pushd %buildroot/%_libdir
%__ln_s -nf ../../lib/libsasl2.so.2 libsasl2.so
popd
mkdir -p %buildroot%_sysconfdir
mkdir -p %buildroot%_mandir/man8
# some files are currently not installed by the Makefile
cp utils/sasldblistusers2.8 %buildroot%_mandir/man8/
cp utils/saslpasswd2.8 %buildroot%_mandir/man8/
cp saslauthd/saslauthd.mdoc %buildroot%_mandir/man8/saslauthd.8
#mv %buildroot%_mandir/cat8/saslauthd.8 %buildroot%_mandir/man8
cp utils/.libs/dbconverter-2 %buildroot%_sbindir
rm -fr %buildroot%_mandir/cat8
mkdir -p %buildroot%_docdir/%name-%version
mkdir -p %buildroot%_docdir/%name-%version/HTML
mkdir -p %buildroot%_docdir/%name-%version/RFC
install -p -m 0644 doc/*.html* %buildroot%_docdir/%name-%version/HTML
install -p -m 0644 doc/rfc*.txt %buildroot%_docdir/%name-%version/RFC
install -p -m 0644 doc/draft*.txt %buildroot%_docdir/%name-%version/RFC
install -p -m 0644 %SOURCE7 %buildroot%_docdir/%name-%version/HTML/server-plugin-flow.jpg
mkdir -p %buildroot%_docdir/%name-%version/saslauthd
install -p -m 0644 saslauthd/{README,INSTALL,LDAP_SASLAUTHD,NEWS,COPYING,ChangeLog,AUTHORS} %buildroot%_docdir/%name-%version/saslauthd
install -p -m 0644 {%SOURCE8,COPYING,AUTHORS,INSTALL,NEWS,README,ChangeLog,doc/TODO} %buildroot%_docdir/%name-%version
mkdir -p %buildroot%_initdir
mkdir -p %buildroot%_sysconfdir/sysconfig
mkdir -p %buildroot/var/run/saslauthd
mkdir -p %buildroot%_sysconfdir/sasl2
install -m0600 %SOURCE1 %buildroot%_sysconfdir/sasl2
install -m0600 %SOURCE2 %buildroot%_sysconfdir/sasl2
install -m0600 %SOURCE3 %buildroot%_sysconfdir/sasl2
install -m0755 %SOURCE4 %buildroot%_initdir/saslauthd
install -m0600 %SOURCE5 %buildroot%_sysconfdir/sysconfig/saslauthd
%post
%post_service saslauthd
%preun
%preun_service saslauthd
%pre -n libsasl2
/usr/sbin/groupadd -rf sasl
%post -n libsasl2 -p /sbin/post_ldconfig
%postun -n libsasl2 -p /sbin/postun_ldconfig
%post -n libsasl2-devel-static -p /sbin/post_ldconfig
%postun -n libsasl2-devel-static -p /sbin/postun_ldconfig
%files
%config(noreplace) %attr(0640,root,root) %_sysconfdir/sasl2/saslpasswd.conf
%config(noreplace) %attr(0640,root,root) %_sysconfdir/sasl2/saslauthd.conf
%config(noreplace) %attr(0600,root,root) %_sysconfdir/sysconfig/saslauthd
%attr(0755,root,root) %_initdir/saslauthd
%_bindir/*
%_sbindir/*
%_mandir/man8/*
#%_libdir/sasl2/*.conf
%attr(0711,root,root) %dir /var/run/saslauthd
%files -n libsasl2
%config(noreplace) %attr(0640,root,sasl) %_sysconfdir/sasl2/sasldb2
%dir %_sysconfdir/sasl2
%dir %_libdir/sasl2
/lib/*.so.*
%_libdir/sasl2/libanonymous.so*
%_libdir/sasl2/libcrammd5.so*
%_libdir/sasl2/libdigestmd5.so*
%_libdir/sasl2/liblogin.so*
%_libdir/sasl2/libntlm.so*
%_libdir/sasl2/libotp.so*
%_libdir/sasl2/libplain.so*
%_libdir/sasl2/libsasldb.so*
%_libdir/sasl2/libsrp.so*
%doc COPYING AUTHORS INSTALL NEWS README ChangeLog doc/TODO
%files -n libsasl2-devel
%dir %_includedir/sasl
%dir %_libdir/sasl2
%_includedir/sasl/*
#%_libdir/*.la
#%_libdir/*/*.la
%_mandir/man3/*
%_libdir/*.so
%files -n libsasl2-devel-static
%dir %_libdir/sasl2
%_libdir/*.a
%_libdir/*/*.a
%files docs
%doc %_docdir/%name-%version/*
%files -n libsasl2-plugin-gssapi
%_libdir/sasl2/libgssapiv2.so*
#%files -n libsasl2-plugin-ldap
#%_libdir/sasl2/libldapauxprop.so.2.0.15
#%_libdir/sasl2/libldapauxprop.so.2
#%_libdir/sasl2/libldapauxprop.so
%if_enabled sql
%files -n libsasl2-plugin-sql
%_libdir/sasl2/libsql.so*
%endif
%changelog
…
Полный changelog можно просмотреть здесь