|
|
5b6c6a |
%global _hardened_build 1
|
|
|
5b6c6a |
|
|
|
5b6c6a |
Summary: OpenLDAP compatibility shared libraries
|
|
|
5b6c6a |
Name: compat-openldap
|
|
|
5b6c6a |
Epoch: 1
|
|
|
5b6c6a |
Version: 2.3.43
|
|
|
5b6c6a |
Release: 5%{?dist}
|
|
|
5b6c6a |
License: OpenLDAP
|
|
|
5b6c6a |
Group: System Environment/Libraries
|
|
|
5b6c6a |
URL: http://www.openldap.org/
|
|
|
5b6c6a |
|
|
|
5b6c6a |
Source0: ftp://ftp.OpenLDAP.org/pub/OpenLDAP/openldap-release/openldap-%{version}.tgz
|
|
|
5b6c6a |
|
|
|
5b6c6a |
Patch0: openldap-ldaprc.patch
|
|
|
5b6c6a |
Patch1: openldap-gethostbyXXXX_r.patch
|
|
|
5b6c6a |
Patch2: openldap-setugid.patch
|
|
|
5b6c6a |
Patch3: openldap-config-sasl-options.patch
|
|
|
5b6c6a |
Patch4: openldap-network-timeout.patch
|
|
|
5b6c6a |
Patch5: openldap-chase-referral.patch
|
|
|
5b6c6a |
Patch6: openldap-tls-null-char.patch
|
|
|
5b6c6a |
Patch7: openldap-compat-macros.patch
|
|
|
5b6c6a |
Patch8: openldap-ai-addrconfig.patch
|
|
|
5b6c6a |
|
|
|
5b6c6a |
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
|
5b6c6a |
BuildRequires: glibc-devel, cyrus-sasl-devel >= 2.1, openssl-devel
|
|
|
5b6c6a |
# require current OpenLDAP libraries to have /etc/openldap/ldap.conf
|
|
|
5b6c6a |
Requires: openldap >= 2.4
|
|
|
5b6c6a |
|
|
|
5b6c6a |
%description
|
|
|
5b6c6a |
OpenLDAP is an open source suite of LDAP (Lightweight Directory Access
|
|
|
5b6c6a |
Protocol) applications and development tools. The compat-openldap package
|
|
|
5b6c6a |
includes older versions of the OpenLDAP shared libraries which may be
|
|
|
5b6c6a |
required by some applications.
|
|
|
5b6c6a |
|
|
|
5b6c6a |
|
|
|
5b6c6a |
%prep
|
|
|
5b6c6a |
%setup -q -n openldap-%{version}
|
|
|
5b6c6a |
|
|
|
5b6c6a |
for patch in %patches; do
|
|
|
5b6c6a |
%__patch -p1 -i $patch
|
|
|
5b6c6a |
done
|
|
|
5b6c6a |
|
|
|
5b6c6a |
|
|
|
5b6c6a |
%build
|
|
|
5b6c6a |
|
|
|
5b6c6a |
export CFLAGS="%{optflags} -fPIC -D_GNU_SOURCE -D_REENTRANT -fno-strict-aliasing"
|
|
|
5b6c6a |
|
|
|
5b6c6a |
%configure \
|
|
|
5b6c6a |
--enable-debug \
|
|
|
5b6c6a |
--enable-dynamic \
|
|
|
5b6c6a |
--disable-syslog \
|
|
|
5b6c6a |
--disable-proctitle \
|
|
|
5b6c6a |
--enable-ipv6 \
|
|
|
5b6c6a |
--enable-local \
|
|
|
5b6c6a |
\
|
|
|
5b6c6a |
--disable-slapd \
|
|
|
5b6c6a |
--disable-slurpd \
|
|
|
5b6c6a |
\
|
|
|
5b6c6a |
--disable-modules \
|
|
|
5b6c6a |
--disable-backends \
|
|
|
5b6c6a |
--disable-overlays \
|
|
|
5b6c6a |
\
|
|
|
5b6c6a |
--disable-static \
|
|
|
5b6c6a |
--enable-shared \
|
|
|
5b6c6a |
\
|
|
|
5b6c6a |
--with-cyrus-sasl \
|
|
|
5b6c6a |
--without-fetch \
|
|
|
5b6c6a |
--with-threads \
|
|
|
5b6c6a |
--with-tls=openssl \
|
|
|
5b6c6a |
--with-gnu-ld \
|
|
|
5b6c6a |
--with-pic
|
|
|
5b6c6a |
|
|
|
5b6c6a |
# get rid of rpath
|
|
|
5b6c6a |
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
|
5b6c6a |
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|
|
5b6c6a |
|
|
|
5b6c6a |
make %{?_smp_mflags}
|
|
|
5b6c6a |
|
|
|
5b6c6a |
|
|
|
5b6c6a |
%install
|
|
|
5b6c6a |
rm -rf %{buildroot}
|
|
|
5b6c6a |
|
|
|
5b6c6a |
pushd libraries
|
|
|
5b6c6a |
make install DESTDIR=%{buildroot}
|
|
|
5b6c6a |
|
|
|
5b6c6a |
# drop libarchive files
|
|
|
5b6c6a |
rm -f %{buildroot}%{_libdir}/*.la
|
|
|
5b6c6a |
|
|
|
5b6c6a |
# two sets of libraries share the soname, compat is not default
|
|
|
5b6c6a |
rm -f %{buildroot}/%{_libdir}/*.so
|
|
|
5b6c6a |
|
|
|
5b6c6a |
# fix permissions to correctly generate debuginfo
|
|
|
5b6c6a |
chmod 0755 %{buildroot}/%{_libdir}/*
|
|
|
5b6c6a |
popd
|
|
|
5b6c6a |
|
|
|
5b6c6a |
# remove all configuration files
|
|
|
5b6c6a |
rm -rf %{buildroot}/etc
|
|
|
5b6c6a |
|
|
|
5b6c6a |
|
|
|
5b6c6a |
%clean
|
|
|
5b6c6a |
rm -rf %{buildroot}
|
|
|
5b6c6a |
|
|
|
5b6c6a |
%post -p /sbin/ldconfig
|
|
|
5b6c6a |
|
|
|
5b6c6a |
%postun -p /sbin/ldconfig
|
|
|
5b6c6a |
|
|
|
5b6c6a |
%files
|
|
|
5b6c6a |
%defattr(-,root,root,-)
|
|
|
5b6c6a |
%doc ANNOUNCEMENT
|
|
|
5b6c6a |
%doc COPYRIGHT
|
|
|
5b6c6a |
%doc LICENSE
|
|
|
5b6c6a |
%attr(0755,root,root) %{_libdir}/liblber-2.3.so.*
|
|
|
5b6c6a |
%attr(0755,root,root) %{_libdir}/libldap-2.3.so.*
|
|
|
5b6c6a |
%attr(0755,root,root) %{_libdir}/libldap_r-2.3.so.*
|
|
|
5b6c6a |
|
|
|
5b6c6a |
|
|
|
5b6c6a |
%changelog
|
|
|
5b6c6a |
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1:2.3.43-5
|
|
|
5b6c6a |
- Mass rebuild 2014-01-24
|
|
|
5b6c6a |
|
|
|
5b6c6a |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1:2.3.43-4
|
|
|
5b6c6a |
- Mass rebuild 2013-12-27
|
|
|
5b6c6a |
|
|
|
5b6c6a |
* Tue May 07 2013 Jan Synáček <jsynacek@redhat.com> - 1:2.3.43-3.2
|
|
|
5b6c6a |
- Remove undefined rpm macros (#960090)
|
|
|
5b6c6a |
|
|
|
5b6c6a |
* Fri Apr 19 2013 Daniel Mach <dmach@redhat.com> - 1:2.3.43-3.1
|
|
|
5b6c6a |
- Rebuild for cyrus-sasl
|
|
|
5b6c6a |
|
|
|
5b6c6a |
* Wed Aug 15 2012 Jan Vcelak <jvcelak@redhat.com> 1:2.3.43-3
|
|
|
5b6c6a |
- enhancement: build with hardening flags (RELRO)
|
|
|
5b6c6a |
- fix: querying for IPv6 DNS records when IPv6 is disabled on the host (#835013)
|
|
|
5b6c6a |
- drop unnecessary patches
|
|
|
5b6c6a |
- clean configure flags
|
|
|
5b6c6a |
|
|
|
5b6c6a |
* Mon Nov 22 2010 Jan Vcelak <jvcelak@redhat.com> 1:2.3.43-2
|
|
|
5b6c6a |
- run ldconfig in post and postun
|
|
|
5b6c6a |
- remove rpath
|
|
|
5b6c6a |
|
|
|
5b6c6a |
* Thu Nov 11 2010 Jan Vcelak <jvcelak@redhat.com> 1:2.3.43-1
|
|
|
5b6c6a |
- split from openldap package
|