SPECS/openldap/openldap.spec
f4d17450
 %global _default_patch_fuzz 2
5e77f833
 Summary:	OpenLdap-2.4.43
f4d17450
 Name:		openldap
a8b7426f
 Version:	2.4.46
58de32d5
 Release:	2%{?dist}
f4d17450
 License:	OpenLDAP
 URL:		http://cyrusimap.web.cmu.edu/
 Group:		System Environment/Security
 Vendor:		VMware, Inc.
 Distribution:	Photon
5e77f833
 Source0:	ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/%{name}-%{version}.tgz
a8b7426f
 %define sha1 openldap=a9ae2273eb9bdd70090dafe0d018a3132606bef6
 Patch0:         openldap-2.4.40-gssapi-1.patch
 Patch1:		openldap-2.4.44-consolidated-2.patch
f4d17450
 Requires:       openssl >= 1.0.1, cyrus-sasl >= 2.1
 BuildRequires:  cyrus-sasl >= 2.1
 BuildRequires:  openssl-devel >= 1.0.1
 BuildRequires:	groff
47875de7
 BuildRequires:	e2fsprogs-devel
d34c574b
 
f4d17450
 %description
 OpenLDAP is an open source suite of LDAP (Lightweight Directory Access
 Protocol) applications and development tools. LDAP is a set of
 protocols for accessing directory services (usually phone book style
 information, but other information is possible) over the Internet,
 similar to the way DNS (Domain Name System) information is propagated
 over the Internet. The openldap package contains configuration files,
 libraries, and documentation for OpenLDAP.
d34c574b
 
f4d17450
 %prep
 %setup -q
1b77dd15
 %patch0 -p1
dcf92059
 %patch1 -p1
f4d17450
 %build
 
 autoconf
 
 sed -i '/6.0.20/ a\\t__db_version_compat' configure
 
58de32d5
 export CPPFLAGS="-D_REENTRANT -DLDAP_CONNECTIONLESS -D_GNU_SOURCE -D_AVL_H"
 
a26f86e3
 %configure \
f4d17450
         --disable-static    \
         --disable-debug     \
         --disable-slapd     \
         --with-tls=openssl
 
 make depend
 make %{?_smp_mflags}
 %install
 [ %{buildroot} != "/"] && rm -rf %{buildroot}/*
 make install DESTDIR=%{buildroot}
 find %{buildroot}/%{_libdir} -name '*.la' -delete
 %{_fixperms} %{buildroot}/*
9067c3d4
 
f4d17450
 %check
9067c3d4
 make %{?_smp_mflags} test
 
f4d17450
 %post	-p /sbin/ldconfig
d34c574b
 
f4d17450
 %postun	-p /sbin/ldconfig
d34c574b
 
f4d17450
 %clean
 rm -rf %{buildroot}/*
d34c574b
 
f4d17450
 %files
 %defattr(-,root,root)
 %{_bindir}/*
 %{_libdir}/*.so*
 %{_includedir}/*
 %{_mandir}/man1/*
 %{_mandir}/man3/*
 %{_mandir}/man5/*
 %{_mandir}/man8/*
 /etc/openldap/*
 
 %changelog
58de32d5
 *   Mon Nov 5 2018 Sriram Nambakam <snambakam@vmware.com> 2.4.46-2
 -   export CPPFLAGS before invoking configure
a8b7426f
 *   Mon Sep 10 2018 Him Kalyan Bordoloi <bordoloih@vmware.com> 2.4.46-1
 -   Upgrade to 2.4.46
a26f86e3
 *   Fri Oct 13 2017 Alexey Makhalov <amakhalov@vmware.com> 2.4.44-3
 -   Use standard configure macros
a8b7426f
 *   Tue Jul 11 2017 Divya Thaluru <dthaluru@vmware.com> 2.4.44-2
 -   Applied patch for CVE-2017-9287
 *   Sat Apr 15 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.4.44-1
 -   Update to 2.4.44
 *   Wed Oct 05 2016 ChangLee <changlee@vmware.com> 2.4.43-3
 -   Modified %check
 *   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.4.43-2
 -   GA - Bump release of all rpms
 *   Thu Jan 21 2016 Xiaolin Li <xiaolinl@vmware.com> 2.4.43-1
 -   Updated to version 2.4.43
 *   Fri Aug 14 2015 Vinay Kulkarni <kulkarniv@vmware.com> 2.4.40-2
 -   Patches for CVE-2015-1545 and CVE-2015-1546.
 *   Wed Oct 08 2014 Divya Thaluru <dthaluru@vmware.com> 2.4.40-1
 -   Initial build.	First version