sbonazzo pushed to unboundid-ldapsdk (master). "Initial import (#1211488)."
notifications at fedoraproject.org
notifications at fedoraproject.org
Wed Apr 22 15:18:15 UTC 2015
>From 73e4fbd4691dc26a48e95fc887323634e30396de Mon Sep 17 00:00:00 2001
From: Sandro Bonazzola <sbonazzo at redhat.com>
Date: Wed, 22 Apr 2015 17:11:15 +0200
Subject: Initial import (#1211488).
diff --git a/.gitignore b/.gitignore
index e69de29..e2c253b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/unboundid-ldapsdk-2.3.8.tar.xz
diff --git a/sources b/sources
index e69de29..89238b1 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+6a67de778f338310bb83a5cb70eca4bf unboundid-ldapsdk-2.3.8.tar.xz
diff --git a/unboundid-ldapsdk-2.3.8-javadoc.patch b/unboundid-ldapsdk-2.3.8-javadoc.patch
new file mode 100644
index 0000000..8aefc3e
--- /dev/null
+++ b/unboundid-ldapsdk-2.3.8-javadoc.patch
@@ -0,0 +1,55 @@
+diff -Nru unboundid-ldapsdk-2.3.8/src/com/unboundid/ldap/sdk/DNSSRVRecordServerSet.java unboundid-ldapsdk-2.3.8.java8doc/src/com/unboundid/ldap/sdk/DNSSRVRecordServerSet.java
+--- unboundid-ldapsdk-2.3.8/src/com/unboundid/ldap/sdk/DNSSRVRecordServerSet.java 2014-06-03 17:26:34.000000000 +0200
++++ unboundid-ldapsdk-2.3.8.java8doc/src/com/unboundid/ldap/sdk/DNSSRVRecordServerSet.java 2015-04-17 15:32:01.912134747 +0200
+@@ -97,7 +97,7 @@
+ * it will first try to use the DNS server running on system with IP address
+ * "1.2.3.4", but if that is not successful then it will try the DNS server
+ * running on the system with IP address "1.2.3.5"). See the <A HREF="
+- * http://download.oracle.com/javase/6/docs/technotes/guides/jndi/jndi-dns.html
++ * http://docs.oracle.com/javase/6/docs/technotes/guides/jndi/jndi-dns.html
+ * "> JNDI DNS service provider documentation</A> for more details on acceptable
+ * formats for the provider URL.
+ */
+diff -Nru unboundid-ldapsdk-2.3.8/src/com/unboundid/ldap/sdk/Filter.java unboundid-ldapsdk-2.3.8.java8doc/src/com/unboundid/ldap/sdk/Filter.java
+--- unboundid-ldapsdk-2.3.8/src/com/unboundid/ldap/sdk/Filter.java 2014-11-18 11:30:39.000000000 +0100
++++ unboundid-ldapsdk-2.3.8.java8doc/src/com/unboundid/ldap/sdk/Filter.java 2015-04-17 15:35:07.822368386 +0200
+@@ -3292,12 +3292,12 @@
+ * <LI>Any AND or OR filter that contains only a single filter component
+ * will be converted to just that embedded filter component to eliminate
+ * the unnecessary AND or OR wrapper. For example, the filter
+- * "(&(uid=john.doe))" will be converted to just "(uid=john.doe)".</LI>
++ * "(&(uid=john.doe))" will be converted to just "(uid=john.doe)".</LI>
+ * <LI>Any AND components inside of an AND filter will be merged into the
+ * outer AND filter. Any OR components inside of an OR filter will be
+ * merged into the outer OR filter. For example, the filter
+- * "(&(objectClass=person)(&(givenName=John)(sn=Doe)))" will be
+- * converted to "(&(objectClass=person)(givenName=John)(sn=Doe))".</LI>
++ * "(&(objectClass=person)(&(givenName=John)(sn=Doe)))" will be
++ * converted to "(&(objectClass=person)(givenName=John)(sn=Doe))".</LI>
+ * <LI>If {@code reOrderElements} is true, then this method will attempt to
+ * re-order the elements inside AND and OR filters in an attempt to
+ * ensure that the components which are likely to be the most efficient
+diff -Nru unboundid-ldapsdk-2.3.8/src/com/unboundid/ldap/sdk/ResultCode.java unboundid-ldapsdk-2.3.8.java8doc/src/com/unboundid/ldap/sdk/ResultCode.java
+--- unboundid-ldapsdk-2.3.8/src/com/unboundid/ldap/sdk/ResultCode.java 2014-07-14 23:04:22.000000000 +0200
++++ unboundid-ldapsdk-2.3.8.java8doc/src/com/unboundid/ldap/sdk/ResultCode.java 2015-04-17 15:43:45.695814353 +0200
+@@ -43,7 +43,7 @@
+ * The result codes that are currently defined include:
+ * <BR>
+ * <CENTER>
+- * <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="50%">
++ * <TABLE summary="" BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="50%">
+ * <TR>
+ * <TH ALIGN="LEFT">Name</TH>
+ * <TH ALIGN="RIGHT">Integer Value</TH>
+diff -Nru unboundid-ldapsdk-2.3.8/src/com/unboundid/util/ExampleCommandLineArgument.java unboundid-ldapsdk-2.3.8.java8doc/src/com/unboundid/util/ExampleCommandLineArgument.java
+--- unboundid-ldapsdk-2.3.8/src/com/unboundid/util/ExampleCommandLineArgument.java 2014-06-03 17:28:40.000000000 +0200
++++ unboundid-ldapsdk-2.3.8.java8doc/src/com/unboundid/util/ExampleCommandLineArgument.java 2015-04-17 15:37:58.087339757 +0200
+@@ -69,7 +69,7 @@
+ * {@link #parseExampleCommandLine} method regardless of the platform. This
+ * method can be used when needing to parse a command line that was generated
+ * by this class outside of a shell environment, e.g. if the full command line
+- * was read from a file. Special characters that are escaped include |, &, ;,
++ * was read from a file. Special characters that are escaped include |, &, ;,
+ * (, ), !, ", ', *, ?, $, and `.
+ */
+ @ThreadSafety(level = ThreadSafetyLevel.COMPLETELY_THREADSAFE)
diff --git a/unboundid-ldapsdk.spec b/unboundid-ldapsdk.spec
new file mode 100644
index 0000000..ee6f528
--- /dev/null
+++ b/unboundid-ldapsdk.spec
@@ -0,0 +1,92 @@
+Name: unboundid-ldapsdk
+Version: 2.3.8
+Release: 4%{?dist}
+Summary: UnboundID LDAP SDK for Java
+
+License: GPLv2 or LGPLv2+
+URL: https://www.ldap.com/unboundid-ldap-sdk-for-java
+Source0: %{name}-%{version}.tar.xz
+# Above tarball have been created by:
+# svn export http://svn.code.sf.net/p/ldap-sdk/code/tags/2.3.8 unboundid-ldapsdk-2.3.8
+# rm -fr unboundid-ldapsdk-2.3.8/ext
+# tar cJf unboundid-ldapsdk-2.3.8.tar.xz unboundid-ldapsdk-2.3.8
+BuildArch: noarch
+BuildRequires: ant
+%if %{?fedora} >= 21
+BuildRequires: javapackages-local
+%else
+BuildRequires: maven-local
+%endif
+
+Patch1: unboundid-ldapsdk-2.3.8-javadoc.patch
+
+%description
+The UnboundID LDAP SDK for Java is a fast, powerful, user-friendly, and
+completely free Java library for communicating with LDAP directory servers and
+performing related tasks like reading and writing LDIF, encoding and
+decoding data using base64 and ASN.1 BER, and performing secure communication.
+
+%package javadoc
+Summary: Javadoc for %{name}
+
+%description javadoc
+This package contains the API documentation for %{name}.
+
+%prep
+%setup -q
+%patch1 -p1
+
+sed -i 's|source="1.5" target="1.5"|source="1.6" target="1.6"|' build-se.xml
+sed -i 's|source="1.5"|source="1.6"|' build-se.xml
+sed -i 's|target="1.5"|target="1.6"|' build-se.xml
+
+%build
+# checkstyle configuration files were in the ext directory
+# code doesn't pass checkstyle 5.6 disabling the check until upstream
+# fixes it
+ant -Dcheckstyle.enabled=false -f build-se.xml package
+
+%install
+%jar -xf build/package/unboundid-ldapsdk-*-maven.jar
+rm -fr META-INF
+mkdir javadoc
+cd javadoc
+%jar -xf ../unboundid-ldapsdk-*-javadoc.jar
+rm -fr META-INF
+cd ..
+
+%mvn_artifact %{name}-%{version}.pom %{name}-%{version}.jar
+%mvn_file com.unboundid:%{name} %{name}
+%mvn_install -J javadoc
+
+%files -f .mfiles
+%license dist-root-se/LICENSE.txt
+%license dist-root-se/LICENSE-LGPLv2.1.txt
+%license dist-root-se/LICENSE-UnboundID-LDAPSDK.txt
+%license dist-root-se/LICENSE-GPLv2.txt
+%doc dist-root-se/README.txt
+
+%files javadoc -f .mfiles-javadoc
+%license dist-root-se/LICENSE.txt
+%license dist-root-se/LICENSE-LGPLv2.1.txt
+%license dist-root-se/LICENSE-UnboundID-LDAPSDK.txt
+%license dist-root-se/LICENSE-GPLv2.txt
+
+%changelog
+* Wed Apr 22 2015 Sandro Bonazzola <sbonazzo at redhat.com> - 2.3.8-4
+- Fixed license as per Fedora Legal review
+
+* Mon Apr 20 2015 Sandro Bonazzola <sbonazzo at redhat.com> - 2.3.8-3
+- added unboundid-ldapsdk-2.3.8-javadoc patch from Gil Cattaneo <puntogil at libero.it>
+ fixing javadoc errors
+
+* Tue Apr 14 2015 Gil Cattaneo <puntogil at libero.it> - 2.3.8-2
+- removed ant and checkstyle from tarball
+- use xz for compression
+- move to javac source/target 1.6
+- use jdk tools instead of zip jdk
+- use {javapackages,maven}-local for installing artifacts
+
+* Mon Apr 13 2015 Sandro Bonazzola <sbonazzo at redhat.com> - 2.3.8-1
+- Initial packaging
+
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/unboundid-ldapsdk.git/commit/?h=master&id=73e4fbd4691dc26a48e95fc887323634e30396de
More information about the scm-commits
mailing list