rm -f src/lib/krb5/krb/deltat.c
cd src
./util/reconf
+LDFLAGS+=" -ldl "
CFLAGS="$RPM_OPT_FLAGS -I/usr/include/et -fno-strict-aliasing -D_GNU_SOURCE -fPIC " \
./configure \
--host=%{_host} --build=%{_build} \
--without-pam \
--with-system-et \
--with-system-ss
-make %{?jobs:-j%jobs}
+make %{?jobs:-j%jobs}
%install
cd src
-make DESTDIR=%{buildroot} install
+make DESTDIR=%{buildroot} install
cd ..
# Munge the krb5-config script to remove rpaths and CFLAGS.
sed "s|^CC_LINK=.*|CC_LINK='\$(CC) \$(PROG_LIBPATH)'|g" src/krb5-config > $RPM_BUILD_ROOT/usr/lib/mit/bin/krb5-config
mkdir -p %{buildroot}/%{_libdir}/krb5/plugins/kdb
mkdir -p %{buildroot}/%{_libdir}/krb5/plugins/preauth
mkdir -p %{buildroot}/%{_libdir}/krb5/plugins/libkrb5
-# all libs must have permissions 0755
+# all libs must have permissions 0755
for lib in `find %{buildroot}/%{_libdir}/ -type f -name "*.so*"`
-do
- chmod 0755 ${lib}
+do
+ chmod 0755 ${lib}
done
# and binaries too
chmod 0755 %{buildroot}/usr/lib/mit/bin/ksu
find . -type f -name '*.ps' -exec gzip -9 {} \;
-# create rc* links
+# create rc* links
# create links for kinit and klist, because of the java ones
#ln -sf ../../usr/lib/mit/bin/kinit %{buildroot}/usr/bin/kinit
#ln -sf ../../usr/lib/mit/bin/klist %{buildroot}/usr/bin/klist