|
|
3a23df6 |
%define nspr_name nspr
|
|
|
3a23df6 |
%define nspr_version 4.6
|
|
|
3a23df6 |
%define nss_name nss
|
|
|
3a23df6 |
%define nss_version 3.11
|
|
|
3a23df6 |
%define svrcore_name svrcore
|
|
|
3a23df6 |
%define svrcore_version 4.0.3
|
|
|
3a23df6 |
|
|
|
3a23df6 |
%define major 6
|
|
|
3a23df6 |
%define minor 0
|
|
|
899da50 |
%define submin 5
|
|
|
3a23df6 |
%define libsuffix %{major}0
|
|
|
3a23df6 |
|
|
|
3a23df6 |
Summary: Mozilla LDAP C SDK
|
|
|
3a23df6 |
Name: mozldap
|
|
|
3a23df6 |
Version: %{major}.%{minor}.%{submin}
|
|
|
4823ec0 |
Release: 16%{?dist}
|
|
|
85a61cc |
License: MPLv1.1 or GPLv2+ or LGPLv2+
|
|
|
3a23df6 |
URL: http://www.mozilla.org/directory/csdk.html
|
|
|
3a23df6 |
Group: System Environment/Libraries
|
|
|
3a23df6 |
Requires: %{nspr_name} >= %{nspr_version}
|
|
|
3a23df6 |
Requires: %{nss_name} >= %{nss_version}
|
|
|
3a23df6 |
Requires: %{svrcore_name} >= %{svrcore_version}
|
|
|
3a23df6 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
3a23df6 |
BuildRequires: %{nspr_name}-devel >= %{nspr_version}
|
|
|
3a23df6 |
BuildRequires: %{nss_name}-devel >= %{nss_version}
|
|
|
3a23df6 |
BuildRequires: %{svrcore_name}-devel >= %{svrcore_version}
|
|
|
3a23df6 |
BuildRequires: gcc-c++
|
|
|
3a23df6 |
BuildRequires: cyrus-sasl-devel
|
|
|
3a23df6 |
|
|
|
3a23df6 |
Source0: ftp://ftp.mozilla.org/pub/mozilla.org/directory/c-sdk/releases/v%{version}/src/%{name}-%{version}.tar.gz
|
|
|
e151b11 |
Patch0: support-tls1.1-and-later.patch
|
|
|
3a23df6 |
|
|
|
3a23df6 |
%description
|
|
|
3a23df6 |
The Mozilla LDAP C SDK is a set of libraries that
|
|
|
3a23df6 |
allow applications to communicate with LDAP directory
|
|
|
3a23df6 |
servers. These libraries are derived from the University
|
|
|
3a23df6 |
of Michigan and Netscape LDAP libraries. They use Mozilla
|
|
|
3a23df6 |
NSPR and NSS for crypto.
|
|
|
3a23df6 |
|
|
|
3a23df6 |
|
|
|
3a23df6 |
%package tools
|
|
|
3a23df6 |
Summary: Tools for the Mozilla LDAP C SDK
|
|
|
3a23df6 |
Group: System Environment/Base
|
|
|
3a23df6 |
Requires: %{name} = %{version}-%{release}
|
|
|
3a23df6 |
BuildRequires: %{nspr_name}-devel >= %{nspr_version}
|
|
|
3a23df6 |
BuildRequires: %{nss_name}-devel >= %{nss_version}
|
|
|
3a23df6 |
BuildRequires: %{svrcore_name}-devel >= %{svrcore_version}
|
|
|
3a23df6 |
|
|
|
3a23df6 |
%description tools
|
|
|
3a23df6 |
The mozldap-tools package provides the ldapsearch,
|
|
|
3a23df6 |
ldapmodify, and ldapdelete tools that use the
|
|
|
3a23df6 |
Mozilla LDAP C SDK libraries.
|
|
|
3a23df6 |
|
|
|
3a23df6 |
|
|
|
3a23df6 |
%package devel
|
|
|
3a23df6 |
Summary: Development libraries and examples for Mozilla LDAP C SDK
|
|
|
3a23df6 |
Group: Development/Libraries
|
|
|
3a23df6 |
Requires: %{name} = %{version}-%{release}
|
|
|
3a23df6 |
Requires: %{nspr_name}-devel >= %{nspr_version}
|
|
|
3a23df6 |
Requires: %{nss_name}-devel >= %{nss_version}
|
|
|
3a23df6 |
Requires: %{svrcore_name}-devel >= %{svrcore_version}
|
|
|
a66e879 |
Requires: pkgconfig
|
|
|
3a23df6 |
|
|
|
3a23df6 |
%description devel
|
|
|
3a23df6 |
Header and Library files for doing development with the Mozilla LDAP C SDK
|
|
|
3a23df6 |
|
|
|
3a23df6 |
%prep
|
|
|
3a23df6 |
%setup -q
|
|
|
e151b11 |
%patch0 -p1
|
|
|
3a23df6 |
|
|
|
3a23df6 |
%build
|
|
|
3a23df6 |
cd mozilla/directory/c-sdk
|
|
|
3a23df6 |
|
|
|
3a23df6 |
%configure \
|
|
|
2d1838d |
%ifarch x86_64 ppc64 ia64 s390x sparc64
|
|
|
3a23df6 |
--enable-64bit \
|
|
|
3a23df6 |
%endif
|
|
|
3a23df6 |
--with-sasl \
|
|
|
3a23df6 |
--enable-clu \
|
|
|
3a23df6 |
--with-system-svrcore \
|
|
|
3a23df6 |
--enable-optimize \
|
|
|
3a23df6 |
--disable-debug
|
|
|
3a23df6 |
|
|
|
3a23df6 |
# Enable compiler optimizations and disable debugging code
|
|
|
3a23df6 |
BUILD_OPT=1
|
|
|
3a23df6 |
export BUILD_OPT
|
|
|
3a23df6 |
|
|
|
3a23df6 |
# Generate symbolic info for debuggers
|
|
|
3a23df6 |
XCFLAGS="$RPM_OPT_FLAGS"
|
|
|
3a23df6 |
export XCFLAGS
|
|
|
3a23df6 |
|
|
|
3a23df6 |
PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
|
|
|
3a23df6 |
PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1
|
|
|
3a23df6 |
|
|
|
3a23df6 |
export PKG_CONFIG_ALLOW_SYSTEM_LIBS
|
|
|
3a23df6 |
export PKG_CONFIG_ALLOW_SYSTEM_CFLAGS
|
|
|
3a23df6 |
|
|
|
3a23df6 |
make \
|
|
|
2d1838d |
%ifarch x86_64 ppc64 ia64 s390x sparc64
|
|
|
3a23df6 |
USE_64=1
|
|
|
3a23df6 |
%endif
|
|
|
3a23df6 |
|
|
|
3a23df6 |
%install
|
|
|
3a23df6 |
%{__rm} -rf $RPM_BUILD_ROOT
|
|
|
3a23df6 |
|
|
|
3a23df6 |
# Set up our package file
|
|
|
3a23df6 |
%{__mkdir_p} $RPM_BUILD_ROOT%{_libdir}/pkgconfig
|
|
|
3a23df6 |
%{__cat} mozilla/directory/c-sdk/mozldap.pc.in \
|
|
|
3a23df6 |
| sed -e "s,%%libdir%%,%{_libdir},g" \
|
|
|
3a23df6 |
-e "s,%%prefix%%,%{_prefix},g" \
|
|
|
3a23df6 |
-e "s,%%major%%,%{major},g" \
|
|
|
3a23df6 |
-e "s,%%minor%%,%{minor},g" \
|
|
|
3a23df6 |
-e "s,%%submin%%,%{submin},g" \
|
|
|
3a23df6 |
-e "s,%%libsuffix%%,%{libsuffix},g" \
|
|
|
3a23df6 |
-e "s,%%bindir%%,%{_libdir}/%{name},g" \
|
|
|
3a23df6 |
-e "s,%%exec_prefix%%,%{_prefix},g" \
|
|
|
3a23df6 |
-e "s,%%includedir%%,%{_includedir}/%{name},g" \
|
|
|
3a23df6 |
-e "s,%%NSPR_VERSION%%,%{nspr_version},g" \
|
|
|
3a23df6 |
-e "s,%%NSS_VERSION%%,%{nss_version},g" \
|
|
|
3a23df6 |
-e "s,%%SVRCORE_VERSION%%,%{svrcore_version},g" \
|
|
|
3a23df6 |
-e "s,%%MOZLDAP_VERSION%%,%{version},g" \
|
|
|
3a23df6 |
> $RPM_BUILD_ROOT%{_libdir}/pkgconfig/%{name}.pc
|
|
|
3a23df6 |
|
|
|
3a23df6 |
# There is no make install target so we'll do it ourselves.
|
|
|
3a23df6 |
|
|
|
3a23df6 |
%{__mkdir_p} $RPM_BUILD_ROOT%{_includedir}/%{name}
|
|
|
3a23df6 |
%{__mkdir_p} $RPM_BUILD_ROOT%{_libdir}/%{name}
|
|
|
3a23df6 |
|
|
|
3a23df6 |
# Copy the binary libraries we want
|
|
|
3a23df6 |
for file in libssldap%{libsuffix}.so libprldap%{libsuffix}.so libldap%{libsuffix}.so libldif%{libsuffix}.so
|
|
|
3a23df6 |
do
|
|
|
3a23df6 |
%{__install} -m 755 mozilla/dist/lib/$file $RPM_BUILD_ROOT%{_libdir}
|
|
|
3a23df6 |
done
|
|
|
3a23df6 |
|
|
|
3a23df6 |
# Copy the binaries we want
|
|
|
3a23df6 |
for file in ldapsearch ldapmodify ldapdelete ldapcmp ldapcompare ldappasswd
|
|
|
3a23df6 |
do
|
|
|
3a23df6 |
%{__install} -m 755 mozilla/dist/bin/$file $RPM_BUILD_ROOT%{_libdir}/%{name}
|
|
|
3a23df6 |
done
|
|
|
3a23df6 |
|
|
|
3a23df6 |
# Copy the include files
|
|
|
3a23df6 |
for file in mozilla/dist/public/ldap/*.h
|
|
|
3a23df6 |
do
|
|
|
c6f0fd4 |
%{__install} -p -m 644 $file $RPM_BUILD_ROOT%{_includedir}/%{name}
|
|
|
3a23df6 |
done
|
|
|
3a23df6 |
|
|
|
3a23df6 |
# Copy the developer files
|
|
|
3a23df6 |
%{__mkdir_p} $RPM_BUILD_ROOT%{_datadir}/%{name}
|
|
|
3a23df6 |
cp -r mozilla/directory/c-sdk/ldap/examples $RPM_BUILD_ROOT%{_datadir}/%{name}
|
|
|
3a23df6 |
%{__mkdir_p} $RPM_BUILD_ROOT%{_datadir}/%{name}/etc
|
|
|
3a23df6 |
%{__install} -m 644 mozilla/directory/c-sdk/ldap/examples/xmplflt.conf $RPM_BUILD_ROOT%{_datadir}/%{name}/etc
|
|
|
3a23df6 |
%{__install} -m 644 mozilla/directory/c-sdk/ldap/libraries/libldap/ldaptemplates.conf $RPM_BUILD_ROOT%{_datadir}/%{name}/etc
|
|
|
3a23df6 |
%{__install} -m 644 mozilla/directory/c-sdk/ldap/libraries/libldap/ldapfilter.conf $RPM_BUILD_ROOT%{_datadir}/%{name}/etc
|
|
|
3a23df6 |
%{__install} -m 644 mozilla/directory/c-sdk/ldap/libraries/libldap/ldapsearchprefs.conf $RPM_BUILD_ROOT%{_datadir}/%{name}/etc
|
|
|
3a23df6 |
|
|
|
3a23df6 |
%clean
|
|
|
3a23df6 |
%{__rm} -rf $RPM_BUILD_ROOT
|
|
|
3a23df6 |
|
|
|
3a23df6 |
|
|
|
3a23df6 |
%post -p /sbin/ldconfig
|
|
|
3a23df6 |
|
|
|
3a23df6 |
|
|
|
3a23df6 |
%postun -p /sbin/ldconfig
|
|
|
3a23df6 |
|
|
|
3a23df6 |
|
|
|
3a23df6 |
%files
|
|
|
3a23df6 |
%defattr(-,root,root,-)
|
|
|
3a23df6 |
%doc mozilla/directory/c-sdk/README.rpm
|
|
|
3a23df6 |
%{_libdir}/libssldap*.so
|
|
|
3a23df6 |
%{_libdir}/libprldap*.so
|
|
|
3a23df6 |
%{_libdir}/libldap*.so
|
|
|
3a23df6 |
%{_libdir}/libldif*.so
|
|
|
3a23df6 |
|
|
|
3a23df6 |
%files tools
|
|
|
3a23df6 |
%defattr(-,root,root,-)
|
|
|
3a23df6 |
%dir %{_libdir}/%{name}
|
|
|
3a23df6 |
%{_libdir}/%{name}/ldapsearch
|
|
|
3a23df6 |
%{_libdir}/%{name}/ldapmodify
|
|
|
3a23df6 |
%{_libdir}/%{name}/ldapdelete
|
|
|
3a23df6 |
%{_libdir}/%{name}/ldapcmp
|
|
|
3a23df6 |
%{_libdir}/%{name}/ldapcompare
|
|
|
3a23df6 |
%{_libdir}/%{name}/ldappasswd
|
|
|
3a23df6 |
|
|
|
3a23df6 |
%files devel
|
|
|
3a23df6 |
%defattr(-,root,root,-)
|
|
|
3a23df6 |
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
3a23df6 |
%{_includedir}/%{name}
|
|
|
3a23df6 |
%{_datadir}/%{name}
|
|
|
3a23df6 |
|
|
|
3a23df6 |
%changelog
|
|
|
4823ec0 |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.0.5-16
|
|
|
4823ec0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
4823ec0 |
|
|
|
966c3f3 |
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 6.0.5-15
|
|
|
966c3f3 |
- Rebuilt for GCC 5 C++11 ABI change
|
|
|
966c3f3 |
|
|
|
e151b11 |
* Mon Nov 3 2014 Noriko Hosoi <nhosoi@redhat.com> - 6.0.5-14
|
|
|
e151b11 |
- Disable SSL3
|
|
|
e151b11 |
- Support TLS 1.1 and newer using the NSS Version Range APIs.
|
|
|
e151b11 |
|
|
|
e6bd4e2 |
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.0.5-13
|
|
|
e6bd4e2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
e6bd4e2 |
|
|
|
88259bb |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.0.5-12
|
|
|
88259bb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
88259bb |
|
|
|
6d73e20 |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.0.5-11
|
|
|
6d73e20 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
6d73e20 |
|
|
|
60c22e5 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.0.5-10
|
|
|
60c22e5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
60c22e5 |
|
|
|
03759a1 |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.0.5-9
|
|
|
03759a1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
03759a1 |
|
|
|
6d1ebfe |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.0.5-8
|
|
|
6d1ebfe |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
6d1ebfe |
|
|
|
16c3858 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.0.5-7
|
|
|
16c3858 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
16c3858 |
|
|
|
35c139b |
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.0.5-6
|
|
|
35c139b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
35c139b |
|
|
|
abab1e6 |
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.0.5-5
|
|
|
abab1e6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
abab1e6 |
|
|
|
85a61cc |
* Tue Aug 26 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 6.0.5-4
|
|
|
85a61cc |
- actually fix license tag (whoops)
|
|
|
85a61cc |
|
|
|
2d1838d |
* Mon Aug 11 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 6.0.5-3
|
|
|
2d1838d |
- fix license tag
|
|
|
2d1838d |
- enable sparc64
|
|
|
2d1838d |
|
|
|
7c11ba5 |
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 6.0.5-2
|
|
|
7c11ba5 |
- Autorebuild for GCC 4.3
|
|
|
7c11ba5 |
|
|
|
899da50 |
* Wed Sep 26 2007 Rich Megginson <rmeggins@redhat.com> - 6.0.5-1
|
|
|
899da50 |
- bump to version 6.0.5 - this version allows the use of SASL
|
|
|
899da50 |
- with IPv6 numeric addresses, as well as some memory leak fixes
|
|
|
899da50 |
|
|
|
bb065ea |
* Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 6.0.4-2
|
|
|
bb065ea |
- Rebuild for selinux ppc32 issue.
|
|
|
bb065ea |
|
|
|
c6f0fd4 |
* Wed Jun 20 2007 Rich Megginson <rmeggins@redhat.com> - 6.0.4-1
|
|
|
c6f0fd4 |
- bump version to 6.0.4 - this version has some memory leak
|
|
|
c6f0fd4 |
- fixes for SASL related code, fixes for control handling with
|
|
|
c6f0fd4 |
- referral chasing, and packaging improvements
|
|
|
c6f0fd4 |
- use -p when installing include files to preserve timestamps
|
|
|
c6f0fd4 |
|
|
|
3295823 |
* Thu May 24 2007 Rich Megginson <rmeggins@redhat.com> - 6.0.3-3
|
|
|
3295823 |
- We only need cyrus-sasl-devel as a BuildRequires in the main package
|
|
|
3295823 |
|
|
|
a66e879 |
* Mon May 21 2007 Rich Megginson <rmeggins@redhat.com> - 6.0.3-2
|
|
|
a66e879 |
- added cyrus-sasl-devel and pkgconfig to devel package Requires
|
|
|
a66e879 |
|
|
|
cbf54e0 |
* Tue Mar 13 2007 Rich Megginson <richm@stanfordalumni.org> - 6.0.3-1
|
|
|
cbf54e0 |
- bumped version to 6.0.3
|
|
|
cbf54e0 |
- minor build fixes for some platforms
|
|
|
cbf54e0 |
|
|
|
9ce46d1 |
* Mon Jan 15 2007 Rich Megginson <richm@stanfordalumni.org> - 6.0.2-1
|
|
|
9ce46d1 |
- Fixed exports file generation for Solaris and Windows - no effect on linux
|
|
|
9ce46d1 |
- bumped version to 6.0.2
|
|
|
9ce46d1 |
|
|
|
3a23df6 |
* Mon Jan 9 2007 Rich Megginson <richm@stanfordalumni.org> - 6.0.1-2
|
|
|
3a23df6 |
- Remove buildroot = "/" checking
|
|
|
3a23df6 |
- Remove buildroot removal from %%build section
|
|
|
3a23df6 |
|
|
|
3a23df6 |
* Mon Jan 8 2007 Rich Megginson <richm@stanfordalumni.org> - 6.0.1-1
|
|
|
3a23df6 |
- bump version to 6.0.1
|
|
|
3a23df6 |
- added libldif and ldif.h
|
|
|
3a23df6 |
|
|
|
3a23df6 |
* Fri Dec 8 2006 Axel Thimm <Axel.Thimm@ATrpms.net> - 6.0.0-2
|
|
|
3a23df6 |
- Rename to mozldap.
|
|
|
3a23df6 |
- move configure step to %%build section.
|
|
|
3a23df6 |
- clean up excessive use of %%defines, make more Fedora like.
|
|
|
3a23df6 |
- fix mismatching soname issue.
|
|
|
3a23df6 |
- generic specfile cosmetics.
|
|
|
3a23df6 |
|
|
|
3a23df6 |
* Thu Oct 5 2006 Rich Megginson <richm@stanforalumni.org> - 6.0.0-1
|
|
|
3a23df6 |
- Bump version to 6.0.0 - add support for submit/patch level (3rd level) in version numbering
|
|
|
3a23df6 |
|
|
|
3a23df6 |
* Tue Apr 18 2006 Richard Megginson <richm@stanforalumni.org> - 5.17-3
|
|
|
3a23df6 |
- make more Fedora Core friendly - move each requires and buildrequires to a separate line
|
|
|
3a23df6 |
- remove --with-nss since svrcore implies it; fix some macro errors; macro-ize nspr and nss names
|
|
|
3a23df6 |
- fix directory attrs in devel package
|
|
|
3a23df6 |
|
|
|
3a23df6 |
* Tue Jan 31 2006 Rich Megginson <rmeggins@redhat.com> - 5.17-2
|
|
|
3a23df6 |
- use --with-system-svrcore to configure
|
|
|
3a23df6 |
|
|
|
3a23df6 |
* Mon Dec 19 2005 Rich Megginson <rmeggins@redhat.com> - 5.17-1
|
|
|
3a23df6 |
- Initial revision
|
|
|
3a23df6 |
|