114 export CPPFLAGS="%{l_cppflags}" |
114 export CPPFLAGS="%{l_cppflags}" |
115 export LDFLAGS="%{l_ldflags}" |
115 export LDFLAGS="%{l_ldflags}" |
116 export LIBS="" |
116 export LIBS="" |
117 export ARGS="" |
117 export ARGS="" |
118 ARGS="$ARGS --prefix=%{l_prefix}" |
118 ARGS="$ARGS --prefix=%{l_prefix}" |
|
119 ARGS="$ARGS --mandir=%{l_prefix}/man" |
|
120 ARGS="$ARGS --infodir=%{l_prefix}/info" |
119 ARGS="$ARGS --libexecdir=%{l_prefix}/libexec/openldap" |
121 ARGS="$ARGS --libexecdir=%{l_prefix}/libexec/openldap" |
120 ARGS="$ARGS --localstatedir=%{l_prefix}/var/openldap" |
122 ARGS="$ARGS --localstatedir=%{l_prefix}/var/openldap" |
121 ARGS="$ARGS --mandir=%{l_prefix}/man" |
|
122 ARGS="$ARGS --enable-syslog" |
123 ARGS="$ARGS --enable-syslog" |
123 ARGS="$ARGS --with-tls" |
124 ARGS="$ARGS --with-tls" |
124 ARGS="$ARGS --without-fetch" |
125 ARGS="$ARGS --without-fetch" |
125 ARGS="$ARGS --without-gssapi" |
126 ARGS="$ARGS --without-gssapi" |
126 ARGS="$ARGS --disable-dynamic" |
127 ARGS="$ARGS --disable-dynamic" |
218 # build toolkit |
219 # build toolkit |
219 %{l_make} %{l_mflags} depend |
220 %{l_make} %{l_mflags} depend |
220 %{l_make} %{l_mflags} |
221 %{l_make} %{l_mflags} |
221 |
222 |
222 %install |
223 %install |
|
224 # clean build cruft |
|
225 rm -rf $RPM_BUILD_ROOT |
|
226 |
223 # install toolkit |
227 # install toolkit |
224 rm -rf $RPM_BUILD_ROOT |
|
225 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT |
228 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT |
226 |
229 |
227 # post adjustment: remove extra files |
230 # post adjustment: remove extra files |
228 rm -f $RPM_BUILD_ROOT%{l_prefix}/etc/openldap/*.default |
231 rm -f $RPM_BUILD_ROOT%{l_prefix}/etc/openldap/*.default |
229 rm -f $RPM_BUILD_ROOT%{l_prefix}/etc/openldap/*/*.default |
232 rm -f $RPM_BUILD_ROOT%{l_prefix}/etc/openldap/*/*.default |
236 %endif |
239 %endif |
237 |
240 |
238 # post adjustment: enable and correct slapd.pid |
241 # post adjustment: enable and correct slapd.pid |
239 %if "%{with_server}" == "yes" |
242 %if "%{with_server}" == "yes" |
240 %{l_shtool} subst \ |
243 %{l_shtool} subst \ |
241 -e 's;^[ #]*\(pidfile \).*$;\1 %{l_prefix}/var/openldap/run/slapd.pid;' \ |
244 -e 's;^[ #]*\(pidfile\).*$;\1 %{l_prefix}/var/openldap/run/slapd.pid;' \ |
|
245 -e 's;^\(argsfile\).*$;\1 %{l_prefix}/var/openldap/run/slapd.args;' \ |
242 $RPM_BUILD_ROOT%{l_prefix}/etc/openldap/slapd.conf |
246 $RPM_BUILD_ROOT%{l_prefix}/etc/openldap/slapd.conf |
243 %endif |
247 %endif |
244 |
248 |
245 # post adjustment: remove OSSP fsl dependency from libtool files |
249 # post adjustment: remove OSSP fsl dependency from libtool files |
246 %if "%{with_server}" == "yes" |
250 %if "%{with_server}" == "yes" |