rpms/nss_ldap/devel nss_ldap.spec,1.107,1.108

Nalin Dahyabhai nalin at fedoraproject.org
Mon Apr 6 14:58:29 UTC 2009


Author: nalin

Update of /cvs/extras/rpms/nss_ldap/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv17448

Modified Files:
	nss_ldap.spec 
Log Message:
- split pam_ldap off into a separate binary package
- require /%{_lib}/security/pam_ldap.so to pull in pam_ldap on upgrades
- require our configuration file to come from somewhere



Index: nss_ldap.spec
===================================================================
RCS file: /cvs/extras/rpms/nss_ldap/devel/nss_ldap.spec,v
retrieving revision 1.107
retrieving revision 1.108
diff -u -r1.107 -r1.108
--- nss_ldap.spec	26 Feb 2009 06:13:39 -0000	1.107
+++ nss_ldap.spec	6 Apr 2009 14:57:59 -0000	1.108
@@ -1,8 +1,9 @@
+%define nss_ldap_version 264
 %define pam_ldap_version 184
-Summary: NSS library and PAM module for LDAP
+Summary: NSS library for LDAP
 Name: nss_ldap
-Version: 264
-Release: 2%{?dist}
+Version: %{nss_ldap_version}
+Release: 100%{?dist}
 Source0: ftp://ftp.padl.com/pub/nss_ldap-%{version}.tar.gz
 Source1: ftp://ftp.padl.com/pub/pam_ldap-%{pam_ldap_version}.tar.gz
 Source3: nss_ldap.versions
@@ -28,23 +29,34 @@
 URL: http://www.padl.com/
 License: LGPLv2+
 Group: System Environment/Base
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRoot: %{_tmppath}/%{name}-%{nss_ldap_version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires: autoconf, automake, libtool
 BuildRequires: openssl-devel, pam-devel
 BuildRequires: cyrus-sasl-devel >= 2.1
 BuildRequires: openldap-devel >= 2.0.27
 BuildRequires: krb5-devel >= 1.4
 Requires: nscd
-Obsoletes: pam_ldap
+Requires(post): grep, mktemp, sed, textutils, /sbin/ldconfig
+# We need this file, and for now it belongs to pam_ldap (we use that one,
+# anyway).
+Requires: /etc/ldap.conf
+# Don't risk anything weird happening at upgrade-time by making sure we pull in
+# the matching pam_ldap package.
+Requires: /%{_lib}/security/pam_ldap.so
+
+%package -n pam_ldap
+Summary: PAM module for LDAP
+Version: %{pam_ldap_version}
+License: LGPLv2+
 Requires(post): grep, mktemp, sed, textutils, /sbin/ldconfig
 
 %description
-This package includes two LDAP access clients: nss_ldap and pam_ldap.
 Nss_ldap is a set of C library extensions that allow X.500 and LDAP
 directory servers to be used as a primary source of aliases, ethers,
 groups, hosts, networks, protocol, users, RPCs, services, and shadow
 passwords (instead of or in addition to using flat files or NIS).
 
+%description -n pam_ldap
 Pam_ldap is a module for Linux-PAM that supports password changes, V2
 clients, Netscape's SSL, ypldapd, Netscape Directory Server password
 policies, access authorization, and crypted hashes.
@@ -52,15 +64,15 @@
 %prep
 %setup -q -c -a 1
 cp %{SOURCE5} .
-cp nss_ldap-%{version}/ldap.conf ldap.conf.nss_ldap
+cp nss_ldap-%{nss_ldap_version}/ldap.conf ldap.conf.nss_ldap
 cp pam_ldap-%{pam_ldap_version}/ldap.conf ldap.conf.pam_ldap
 
-cp nss_ldap-%{version}/resolve.c pam_ldap-%{pam_ldap_version}/
-cp nss_ldap-%{version}/resolve.h pam_ldap-%{pam_ldap_version}/
-cp nss_ldap-%{version}/snprintf.c pam_ldap-%{pam_ldap_version}/
-cp nss_ldap-%{version}/snprintf.h pam_ldap-%{pam_ldap_version}/
+cp nss_ldap-%{nss_ldap_version}/resolve.c pam_ldap-%{pam_ldap_version}/
+cp nss_ldap-%{nss_ldap_version}/resolve.h pam_ldap-%{pam_ldap_version}/
+cp nss_ldap-%{nss_ldap_version}/snprintf.c pam_ldap-%{pam_ldap_version}/
+cp nss_ldap-%{nss_ldap_version}/snprintf.h pam_ldap-%{pam_ldap_version}/
 
-pushd nss_ldap-%{version}
+pushd nss_ldap-%{nss_ldap_version}
 %patch8 -p1 -b .soname
 %patch17 -p1 -b .res_init
 autoreconf -f -i
@@ -81,13 +93,13 @@
 
 rm -f pam.d/*.pam_console
 
-cp nss_ldap-%{version}/ANNOUNCE             ANNOUNCE.nss_ldap
-cp nss_ldap-%{version}/AUTHORS              AUTHORS.nss_ldap
-cp nss_ldap-%{version}/ChangeLog            ChangeLog.nss_ldap
-cp nss_ldap-%{version}/COPYING              COPYING.nss_ldap
-cp nss_ldap-%{version}/NEWS                 NEWS.nss_ldap
-cp nss_ldap-%{version}/README               README.nss_ldap
-cp nss_ldap-%{version}/nsswitch.ldap        nsswitch.ldap
+cp nss_ldap-%{nss_ldap_version}/ANNOUNCE             ANNOUNCE.nss_ldap
+cp nss_ldap-%{nss_ldap_version}/AUTHORS              AUTHORS.nss_ldap
+cp nss_ldap-%{nss_ldap_version}/ChangeLog            ChangeLog.nss_ldap
+cp nss_ldap-%{nss_ldap_version}/COPYING              COPYING.nss_ldap
+cp nss_ldap-%{nss_ldap_version}/NEWS                 NEWS.nss_ldap
+cp nss_ldap-%{nss_ldap_version}/README               README.nss_ldap
+cp nss_ldap-%{nss_ldap_version}/nsswitch.ldap        nsswitch.ldap
 cp pam_ldap-%{pam_ldap_version}/AUTHORS     AUTHORS.pam_ldap
 cp pam_ldap-%{pam_ldap_version}/ChangeLog   ChangeLog.pam_ldap
 cp pam_ldap-%{pam_ldap_version}/COPYING     COPYING.pam_ldap
@@ -95,7 +107,7 @@
 cp pam_ldap-%{pam_ldap_version}/NEWS        NEWS.pam_ldap
 cp pam_ldap-%{pam_ldap_version}/README      README.pam_ldap
 
-cp %{_datadir}/libtool/config/config.{sub,guess} nss_ldap-%{version}/
+cp %{_datadir}/libtool/config/config.{sub,guess} nss_ldap-%{nss_ldap_version}/
 cp %{_datadir}/libtool/config/config.{sub,guess} pam_ldap-%{pam_ldap_version}/
 
 %build
@@ -108,17 +120,17 @@
 make %{?_smp_mflags}
 popd
 
-pushd nss_ldap-%{version}
+pushd nss_ldap-%{nss_ldap_version}
 %configure \
         --with-ldap=openldap \
         --enable-schema-mapping \
         --enable-rfc2307bis \
         --enable-configurable-krb5-ccname-gssapi
-make %{?_smp_mflags} LIBS="-Wl,-Bstatic -lldap -llber -lssl -lcrypto -Wl,-Bdynamic -lz -lsasl2 -lgssapi_krb5 -ldl -lpthread_nonshared -lnsl -lresolv"
+make %{?_smp_mflags} LIBS="-Wl,-Bstatic -lldap -llber -Wl,-Bdynamic -lz -lsasl2 -lssl -lgssapi_krb5 -lcrypto -ldl -lpthread_nonshared -lnsl -lresolv"
 popd
 
 # Check that the modules are actually loadable.
-%{SOURCE7}       ./nss_ldap-%{version}/nss_ldap.so
+%{SOURCE7}       ./nss_ldap-%{nss_ldap_version}/nss_ldap.so
 %{SOURCE7} -lpam ./pam_ldap-%{pam_ldap_version}/pam_ldap.so
 
 %install
@@ -131,8 +143,8 @@
 # filenames that the glibc-bundled modules do, but that doesn't tell us anything
 # more than which version of libc was available at build time.  People tend to
 # assume that's also the nss_ldap version, too, so forget that.
-libcver=%{version}
-make -C nss_ldap-%{version} install \
+libcver=%{nss_ldap_version}
+make -C nss_ldap-%{nss_ldap_version} install \
         DESTDIR=$RPM_BUILD_ROOT \
         INST_UID=`id -un` INST_GID=`id -gn` \
         LIBC_VERS=$libcver
@@ -179,17 +191,38 @@
 %defattr(-,root,root)
 %attr(0755,root,root) /%{_libdir}/libnss_ldap-*.so
 %attr(0755,root,root) /%{_libdir}/libnss_ldap.so.?
-%attr(0755,root,root) /%{_lib}/security/*.so*
 %attr(0755,root,root) %{_libdir}/libnss_ldap.so
-%attr(0644,root,root) %{_mandir}/man5/*.5*
-%attr(0644,root,root) %config(noreplace) /etc/ldap.conf
+%attr(0644,root,root) %{_mandir}/man5/nss_ldap.5*
 %doc README.TLS
-%doc nsswitch.ldap *.nss_ldap *.pam_ldap
+%doc nss_ldap-%{nss_ldap_version}/ANNOUNCE
+%doc nss_ldap-%{nss_ldap_version}/AUTHORS
+%doc nss_ldap-%{nss_ldap_version}/ChangeLog
+%doc nss_ldap-%{nss_ldap_version}/COPYING
+%doc nss_ldap-%{nss_ldap_version}/NEWS
+%doc nss_ldap-%{nss_ldap_version}/README
+%doc nss_ldap-%{nss_ldap_version}/nsswitch.ldap
+
+%files -n pam_ldap
+%defattr(-,root,root)
+%attr(0755,root,root) /%{_lib}/security/*.so*
+%attr(0644,root,root) %{_mandir}/man5/pam_ldap.5*
+%attr(0644,root,root) %config(noreplace) /etc/ldap.conf
 %doc pam_ldap-%{pam_ldap_version}/pam.d
 %doc pam_ldap-%{pam_ldap_version}/ldapns.schema
 %doc pam_ldap-%{pam_ldap_version}/ns-pwd-policy.schema
+%doc pam_ldap-%{pam_ldap_version}/AUTHORS
+%doc pam_ldap-%{pam_ldap_version}/ChangeLog
+%doc pam_ldap-%{pam_ldap_version}/COPYING
+%doc pam_ldap-%{pam_ldap_version}/COPYING.LIB
+%doc pam_ldap-%{pam_ldap_version}/NEWS
+%doc pam_ldap-%{pam_ldap_version}/README
 
 %changelog
+* Mon Apr  6 2009 Nalin Dahyabhai <nalin at redhat.com> - 264/184-100
+- split pam_ldap off into a separate binary package
+- require /%{_lib}/security/pam_ldap.so to pull in pam_ldap on upgrades
+- require our configuration file to come from somewhere
+
 * Wed Feb 25 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 264-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
 




More information about the scm-commits mailing list