506969
%global spname		ldapsp
506969
%global filtname	ldapfilt
506969
%global beansname	ldapbeans
506969
506969
Name:		ldapjdk
506969
Version:	4.18
a2bb9d
Release:	15%{?dist}
506969
Epoch:		0
506969
Summary: 	The Mozilla LDAP Java SDK
506969
License:	MPLv1.1 or GPLv2+ or LGPLv2+
506969
Group:		Development/Java
506969
URL:		http://www.mozilla.org/directory/javasdk.html
506969
# mkdir ldapjdk-4.18 ; 
506969
# cvs -d:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot Export -r LDAPJavaSDK_418 DirectorySDKSourceJava
506969
# tar -zcf ldapjdk-4.18,tar.gz ldapjdk-4.18
506969
Source:		http://pki.fedoraproject.org/pki/sources/%{name}/%{name}-%{version}.tar.gz
506969
# originally taken from http://mirrors.ibiblio.org/pub/mirrors/maven2/ldapsdk/ldapsdk/4.1/ldapsdk-4.1.pom
506969
# changed: gId, aId and version
506969
Source1:	http://pki.fedoraproject.org/pki/sources/%{name}/%{name}-%{version}.pom
506969
Patch0: 	%{name}-jarnamefix.patch
506969
Patch1:         matching-rule-parsing-640750.patch
a2bb9d
Patch2:         %{name}-support-IPv6.patch
506969
506969
Requires:	jpackage-utils >= 0:1.5
506969
Requires:       jss
506969
BuildRequires:  ant
506969
BuildRequires:	jpackage-utils >= 0:1.5
506969
BuildRequires:  jss
506969
506969
Provides:	jndi-ldap = 1.3.0
506969
BuildArch:	noarch
506969
506969
%description
506969
The Mozilla LDAP SDKs enable you to write applications which access,
506969
manage, and update the information stored in an LDAP directory.
506969
506969
%package javadoc
506969
Group:          Development/Documentation
506969
Summary:        Javadoc for %{name}
506969
Obsoletes:      openjmx-javadoc
506969
506969
%description javadoc
506969
Javadoc for %{name}
506969
506969
%prep
506969
%setup -q
506969
# Remove all bundled jars, we must build against build-system jars
506969
rm -f ./mozilla/directory/java-sdk/ldapjdk/lib/{jss32_stub,jsse,jnet,jaas,jndi}.jar
506969
506969
%patch0 -p1
506969
%patch1 -p1
a2bb9d
%patch2 -p1
506969
506969
%build
506969
# cleanup CVS dirs
506969
rm -fr $(find . -name CVS -type d)
506969
# Link to build-system BRs
506969
pwd
506969
( cd  mozilla/directory/java-sdk/ldapjdk/lib && build-jar-repository -s -p . jss4 jsse jaas jndi )
506969
cd mozilla/directory/java-sdk
506969
if [ ! -e "$JAVA_HOME" ] ; then export JAVA_HOME="%{_jvmdir}/java" ; fi
506969
sh -x ant dist
506969
506969
%install
506969
rm -rf $RPM_BUILD_ROOT
506969
506969
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
506969
install -m 644 mozilla/directory/java-sdk/dist/packages/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
506969
install -m 644 mozilla/directory/java-sdk/dist/packages/%{spname}.jar $RPM_BUILD_ROOT%{_javadir}/%{spname}.jar
506969
install -m 644 mozilla/directory/java-sdk/dist/packages/%{filtname}.jar $RPM_BUILD_ROOT%{_javadir}/%{filtname}.jar
506969
install -m 644 mozilla/directory/java-sdk/dist/packages/%{beansname}.jar $RPM_BUILD_ROOT%{_javadir}/%{beansname}.jar
506969
506969
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}-1.3.0
506969
506969
pushd $RPM_BUILD_ROOT%{_javadir}-1.3.0
506969
	ln -fs ../java/*%{spname}.jar jndi-ldap.jar
506969
popd
506969
506969
mkdir -p %{buildroot}%{_mavenpomdir}
506969
install -pm 644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
506969
%add_maven_depmap JPP-%{name}.pom %{name}.jar -a "ldapsdk:ldapsdk"
506969
506969
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
506969
cp -r mozilla/directory/java-sdk/dist/doc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
506969
506969
%files
506969
%defattr(-,root,root,-)
506969
%{_javadir}/%{name}*.jar
506969
%{_javadir}/%{spname}*.jar
506969
%{_javadir}/%{filtname}*.jar
506969
%{_javadir}/%{beansname}*.jar
506969
%{_javadir}-1.3.0/*.jar
506969
%{_mavenpomdir}/JPP-%{name}.pom
506969
%{_mavendepmapfragdir}/%{name}
506969
506969
%files javadoc
506969
%defattr(-,root,root,)
506969
%dir %{_javadocdir}/%{name}
506969
%{_javadocdir}/%{name}/*
506969
506969
%changelog
a2bb9d
* Tue Aug  9 2016 Matthew Harmsen <mharmsen@redhat.com> 0:4.18-15
a2bb9d
- Resolves: rhbz #1353564 - ldapjdk needs to support IPv6 (mreynolds)
a2bb9d
6ec535
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 04.18-14
6ec535
- Mass rebuild 2013-12-27
6ec535
506969
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:4.18-13
506969
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
506969
506969
* Tue Nov 13 2012 Matthew Harmsen <mharmsen@redhat.com> 0:4.18-12
506969
- Appended full URLs in front of source files
506969
506969
* Sat Aug 18 2012 gil cattaneo <puntogil@libero.it> 0:4.18-11
506969
- Added maven pom
506969
506969
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:4.18-10
506969
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
506969
506969
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:4.18-9
506969
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
506969
506969
* Thu Mar 31 2011 Rich Megginson <rmeggins@redhat.com> 0:4.18-8
506969
- Resolves: bug 684012 - LDAPSchemaElement.getOptionalValues() mangles values
506969
- upstream bug https://bugzilla.mozilla.org/show_bug.cgi?id=640750
506969
506969
* Fri Feb 18 2011 Alexander Kurtakov <akurtako@redhat.com> 0:4.18-7
506969
- Drop gcj.
506969
- Adapt to current guidelines.
506969
506969
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:4.18-6
506969
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
506969
506969
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:4.18-5
506969
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
506969
506969
* Fri Mar 20 2009 Deepak Bhole <dbhole@redhat.com> - 0:4.18-4
506969
- RPM was using pre-built jars before. Fixed that problem.
506969
506969
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:4.18-3
506969
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
506969
506969
* Thu May 29 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 4.18-2
506969
- fix license tag
506969
506969
* Tue Feb 19 2008 Dennis Gilmore <dennis@ausil.us> - 4.18-1
506969
- update to 4.18
506969
- spec contents pulled from RHEL5 srpm 
506969
- fedora spec changelog
506969
- update buildroot
506969
- use jss from fedora for building
506969
506969
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0:4.17-2jpp.7
506969
- Autorebuild for GCC 4.3
506969
506969
* Fri Aug 11 2006 Vivek Lakshmanan <vivekl@redhat.com> 0:4.17-1jpp.7
506969
- Rebuild with new naming convention.
506969
506969
* Mon Jul 24 2006 Vivek Lakshmanan <vivekl@redhat.com> 0:4.17-1jpp_6fc
506969
- Add conditional native compilation.
506969
506969
* Sat Jul 22 2006 Jakub Jelinek <jakub@redhat.com> - 0:4.17-1jpp_5fc
506969
- Rebuilt
506969
506969
* Wed Jul 19 2006 Jesse Keating <jkeating@redhat.com> - 0:4.17-1jpp_4fc
506969
- fix release
506969
- remove silly name, version, release defines.
506969
506969
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0:4.17-1jpp_3fc.1.1.2.1
506969
- rebuild
506969
506969
* Tue Jul 11 2006 Archit Shah <ashah@redhat.com>
506969
- add java-devel BuildRequires (bug #192530)
506969
506969
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
506969
- rebuilt
506969
506969
* Sat Nov  5 2005 Archit Shah <ashah@redhat.com> 0:4.17-1jpp_3fc
506969
- Call javadoc with sourcepath to work aroung gjdoc bug (#170611)
506969
506969
* Thu Jan 27 2005 Gary Benson <gbenson@redhat.com> 0:4.17-1jpp_2fc
506969
- Remove non-distributable files from the source tarball.
506969
506969
* Fri Jan 21 2005 Gary Benson <gbenson@redhat.com> 0:4.17-1jpp_1fc
506969
- Build into Fedora.
506969
506969
* Tue Nov 16 2004 Fernando Nasser <fnasser@redhat.com> 0:4.17-1jpp_1rh
506969
- Merge with upstream for upgrade
506969
506969
* Thu Aug 26 2004 Fernando Nasser <fnasser@redhat.com> 0:4.17-1jpp
506969
- Upgrade to 4.17
506969
- Rebuilt with Ant 1.6.2
506969
506969
* Fri Mar  5 2004 Frank Ch. Eigler <fche@redhat.com> 0:4.1-5jpp_1rh
506969
- RH vacuuming
506969
- added ldapjdk-javaxssl.patch to stop using com.sun.*
506969
506969
* Sun Sep 28 2003 David Walluck <david@anti-microsoft.org> 0:4.1-5jpp
506969
- add Distribution and Vendor tags
506969
- fix jpackage-utils requirement
506969
- change gmake to %%__make
506969
- break %%description lines
506969
506969
* Thu Mar 27 2003 Nicolas Mailhot <Nicolas.Mailhot (at) JPackage.org>
506969
- Initial build.