From a5dfc68943e3786a67be095ebd29c55aef99653f Mon Sep 17 00:00:00 2001 From: cvsdist Date: Thu, 9 Sep 2004 07:11:38 +0000 Subject: [PATCH] auto-import changelog data from ldapjdk-4.1-5jpp_1rh.src.rpm 4.1-5jpp_1rh - RH vacuuming - added ldapjdk-javaxssl.patch to stop using com.sun.* 4.1-5jpp - add Distribution and Vendor tags - fix jpackage-utils requirement - change gmake to %__make - break %description lines Thu Mar 27 2003 Nicolas Mailhot - Initial build. --- .cvsignore | 1 + ldapjdk.spec | 129 +++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 131 insertions(+) create mode 100644 ldapjdk.spec diff --git a/.cvsignore b/.cvsignore index e69de29..f18d04d 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +ldapsdk_java_20000505.tar.gz diff --git a/ldapjdk.spec b/ldapjdk.spec new file mode 100644 index 0000000..fe24408 --- /dev/null +++ b/ldapjdk.spec @@ -0,0 +1,129 @@ +%define name ldapjdk +%define spname ldapsp +%define version 4.1 +%define tar_name ldapsdk_java +%define tar_version 20000505 +%define release 5jpp_1rh +%define section free + +Name: %{name} +Version: %{version} +Release: %{release} +Epoch: 0 +Summary: The Mozilla LDAP Java SDK +License: MPL +Group: Development/Java +URL: http://www.mozilla.org/directory/javasdk.html +Source0: ftp://ftp.mozilla.org/pub/directory/java-sdk/%{tar_name}_%{tar_version}.tar.gz +#based on the http://bugzilla.mozilla.org/show_bug.cgi?id=55984 zip +Patch0: %{name}-%{version}-DSMLWriter.patch +Patch1: ldapjdk-javaxssl.patch +Requires: oro +Requires: jaas +Requires: jndi +Requires: jpackage-utils >= 0:1.5 +Requires: jsse +BuildRequires: oro +BuildRequires: jaas +BuildRequires: jndi +BuildRequires: jpackage-utils >= 0:1.5 +BuildRequires: jsse +Provides: jndi-ldap = 1.3.0 +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot +#Distribution: JPackage +#Vendor: JPackage Project + +%description +The Mozilla LDAP SDKs enable you to write applications which access, +manage, and update the information stored in an LDAP directory. + +%package javadoc +Group: Development/Documentation +Summary: Javadoc for %{name} +Obsoletes: openjmx-javadoc + +%description javadoc +Javadoc for %{name} + +%prep +%setup -q -c + +%patch0 -p1 +%patch1 -p0 + +%build +# cleanup CVS dirs +rm -fr $(find . -name CVS -type d) +# cleanup jars +rm -fr $(find . -name "*.jar" -type f) +mv mozilla/directory/* . +rm -fr mozilla + +cd java-sdk +if [ ! -e "$JAVA_HOME" ] ; then export JAVA_HOME="%{_jvmdir}/java" ; fi + +export CLASSPATH=$(build-classpath oro jndi jaas jsse) + +# Main jar +%__make -f ldap.mk clean +%__make -f ldap.mk +%__make -f ldap.mk basepackage +%__make -f ldap.mk doc + +# ldap jdndi service provides +%__make -f ldapsp.mk clean +%__make -f ldapsp.mk +%__make -f ldapsp.mk basepackage +%__make -f ldapsp.mk doc + +%install +rm -rf $RPM_BUILD_ROOT + +install -d -m 755 $RPM_BUILD_ROOT%{_javadir} +install -m 644 java-sdk/dist/packages/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar +install -m 644 java-sdk/dist/packages/%{spname}.jar $RPM_BUILD_ROOT%{_javadir}/%{spname}-%{version}.jar + +pushd $RPM_BUILD_ROOT%{_javadir} + for jar in *-%{version}.jar ; do + ln -fs ${jar} $(echo $jar | sed "s|-%{version}.jar|.jar|g") + done +popd + +install -d -m 755 $RPM_BUILD_ROOT%{_javadir}-1.3.0 + +pushd $RPM_BUILD_ROOT%{_javadir}-1.3.0 + ln -fs ../java/*%{spname}.jar jndi-ldap.jar +popd + +install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} +cp -r java-sdk/dist/doc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(0644,root,root,0755) +%doc buildjsdk.txt java-sdk/*.htm +%{_javadir}/%{name}*.jar +%{_javadir}/%{spname}*.jar +%{_javadir}-1.3.0/*.jar + +%files javadoc +%defattr(0644,root,root,0755) +%dir %{_javadocdir}/%{name}-%{version} +%{_javadocdir}/%{name}-%{version}/* + +%changelog +* Fri Mar 5 2004 Frank Ch. Eigler 0:4.1-5jpp_1rh +- RH vacuuming +- added ldapjdk-javaxssl.patch to stop using com.sun.* + +* Sun Sep 28 2003 David Walluck 0:4.1-5jpp +- add Distribution and Vendor tags +- fix jpackage-utils requirement +- change gmake to %%__make +- break %%description lines + +* Thu Mar 27 2003 Nicolas Mailhot +- Initial build. diff --git a/sources b/sources index e69de29..1ef888d 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +804f4f3268f24db4a81d0dda2e2c4be9 ldapsdk_java_20000505.tar.gz