name = nss_ldap
version = 265
-release = 2
+release = 5
groups = System/Base
url = http://www.padl.com/
RPCs, services, and shadow passwords.
end
-source_dl =
+source_dl = http://www.padl.com/download/
patches = \
nss_ldap-265-depth.patch \
configure_options += \
--sysconfdir=/etc \
- --libdir=/lib \
--with-ldap-lib=openldap \
--enable-rfc2307bis \
--with-ldap-conf-file=/etc/nss_ldap.conf \
# Remove awkward directory
rm -rvf %{BUILDROOT}/usr/usr
- mv -v %{BUILDROOT}/lib/* %{BUILDROOT}/usr/lib
- rm -rvf %{BUILDROOT}/lib
- ln -svf libnss_ldap-%{version}.so %{BUILDROOT}/usr/lib/libnss_ldap.so
+ if [ -e "%{BUILDROOT}%{libdir}/libnss_ldap-%{version}.so" ]; then
+ ln -svf libnss_ldap-%{version}.so %{BUILDROOT}%{libdir}/libnss_ldap.so.2
+ ln -svf libnss_ldap.so.2 %{BUILDROOT}%{libdir}/libnss_ldap.so
+ fi
rm -vf %{BUILDROOT}/etc/nsswitch.ldap
cd %{DIR_APP} && sed 's|dc=padl|dc=example|g' ldap.conf > \
%{BUILDROOT}/etc/nss_ldap.conf
touch %{BUILDROOT}/etc/nss_ldap.secret
-
- ln -svf libnss_ldap.so.2 %{BUILDROOT}/usr/lib/libnss_ldap.so
end
end
packages
package %{name}
requires
- /lib/security/pam_ldap.so
+ %{libdir}/security/pam_ldap.so
+ end
+
+ configfiles
+ %{sysconfdir}/nss_ldap.conf
+ %{sysconfdir}/nss_ldap.secret
end
end
+
+ package %{name}-debuginfo
+ template DEBUGINFO
+ end
end