Lines 4-10
Link Here
|
4 |
|
4 |
|
5 |
Name: nss_ldap |
5 |
Name: nss_ldap |
6 |
Version: 244 |
6 |
Version: 244 |
7 |
Release: alt5.1 |
7 |
Release: alt1 |
8 |
|
8 |
|
9 |
Summary: NSS library for LDAP |
9 |
Summary: NSS library for LDAP |
10 |
Summary(ru_RU.KOI8-R): âÉÂÌÉÏÔÅËÁ NSS ÄÌÑ LDAP |
10 |
Summary(ru_RU.KOI8-R): âÉÂÌÉÏÔÅËÁ NSS ÄÌÑ LDAP |
Lines 21-26
Link Here
|
21 |
Patch2: %name-210-explode_rdn-alt.patch |
21 |
Patch2: %name-210-explode_rdn-alt.patch |
22 |
#Patch3: %name-210-segfault-alt.patch |
22 |
#Patch3: %name-210-segfault-alt.patch |
23 |
#Patch4: %name-211-db4-alt.patch |
23 |
#Patch4: %name-211-db4-alt.patch |
|
|
24 |
Patch5: libdir.fix |
24 |
|
25 |
|
25 |
Requires: nscd |
26 |
Requires: nscd |
26 |
|
27 |
|
Lines 45-50
Link Here
|
45 |
#patch2 -p1 |
46 |
#patch2 -p1 |
46 |
#%patch3 -p1 |
47 |
#%patch3 -p1 |
47 |
#%patch4 -p1 |
48 |
#%patch4 -p1 |
|
|
49 |
%patch5 -p1 |
48 |
|
50 |
|
49 |
### |
51 |
### |
50 |
## Install Attention README |
52 |
## Install Attention README |
Lines 52-59
Link Here
|
52 |
install -m 0644 %SOURCE1 README.ALT |
54 |
install -m 0644 %SOURCE1 README.ALT |
53 |
|
55 |
|
54 |
%build |
56 |
%build |
55 |
aclocal |
57 |
autoreconf -fisv |
56 |
autoconf |
|
|
57 |
|
58 |
|
58 |
%configure \ |
59 |
%configure \ |
59 |
--with-ldap-conf-file=%_sysconfdir/nss_ldap.conf \ |
60 |
--with-ldap-conf-file=%_sysconfdir/nss_ldap.conf \ |
Lines 71-90
Link Here
|
71 |
%endif |
72 |
%endif |
72 |
|
73 |
|
73 |
|
74 |
|
74 |
%make_build |
75 |
%make_build SYSLIBDIR=/%_lib |
75 |
%make check |
76 |
%make check |
76 |
|
77 |
|
77 |
%install |
78 |
%install |
78 |
|
79 |
|
79 |
mkdir -p $RPM_BUILD_ROOT{%_sysconfdir,/lib,%_libdir} |
80 |
mkdir -p $RPM_BUILD_ROOT{%_sysconfdir,%_libdir,/%_lib} |
80 |
|
81 |
|
81 |
# Install the nsswitch module. |
82 |
# Install the nsswitch module. |
82 |
%make_install install \ |
83 |
%make_install SYSLIBDIR=/%_lib install \ |
83 |
DESTDIR=$RPM_BUILD_ROOT \ |
84 |
DESTDIR=%buildroot \ |
84 |
INST_UID=`id -un` INST_GID=`id -gn` |
85 |
INST_UID=`id -un` INST_GID=`id -gn` |
85 |
|
86 |
|
86 |
mv $RPM_BUILD_ROOT%_libdir/* $RPM_BUILD_ROOT/lib/ |
87 |
mv $RPM_BUILD_ROOT%_libdir/* $RPM_BUILD_ROOT/%_lib/ |
87 |
chmod 755 $RPM_BUILD_ROOT/lib/*.so* |
88 |
chmod 755 $RPM_BUILD_ROOT/%_lib/*.so* |
88 |
|
89 |
|
89 |
# Install /etc/nss_ldap.conf, becouse in nss_ldap and pam_ldap we have two the same files /etc/ldap.conf as a config files |
90 |
# Install /etc/nss_ldap.conf, becouse in nss_ldap and pam_ldap we have two the same files /etc/ldap.conf as a config files |
90 |
# Install the default configuration file, but change the search bases to |
91 |
# Install the default configuration file, but change the search bases to |
Lines 95-101
Link Here
|
95 |
rm -f $RPM_BUILD_ROOT%_sysconfdir/ldap.conf |
96 |
rm -f $RPM_BUILD_ROOT%_sysconfdir/ldap.conf |
96 |
|
97 |
|
97 |
%files |
98 |
%files |
98 |
/lib/*.so* |
99 |
/%_lib/*.so* |
99 |
%config(noreplace) %_sysconfdir/nss_ldap.conf |
100 |
%config(noreplace) %_sysconfdir/nss_ldap.conf |
100 |
%doc ANNOUNCE AUTHORS ChangeLog NEWS README |
101 |
%doc ANNOUNCE AUTHORS ChangeLog NEWS README |
101 |
%doc nsswitch.ldap |
102 |
%doc nsswitch.ldap |