[uddi4j] Initial import (#825890).
Gerard Ryan
galileo at fedoraproject.org
Thu May 31 15:16:27 UTC 2012
commit 4acc4819143fff40f82972714b6bd64099c805c3
Author: Gerard Ryan <gerard at ryan.lt>
Date: Thu May 31 16:01:22 2012 +0100
Initial import (#825890).
.gitignore | 1 +
sources | 1 +
uddi4j-2.0.5.pom | 10 ++++
uddi4j-MANIFEST.MF | 22 ++++++++
uddi4j-remove-nonutf8-chars.patch | 26 +++++++++
uddi4j-set-javac-path.patch | 20 +++++++
uddi4j.spec | 105 +++++++++++++++++++++++++++++++++++++
7 files changed, 185 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..9cf6efd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/uddi4j-src-2.0.5.zip
diff --git a/sources b/sources
index e69de29..d77df55 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+cd358e19acb9b3a4197fce7481c0cce1 uddi4j-src-2.0.5.zip
diff --git a/uddi4j-2.0.5.pom b/uddi4j-2.0.5.pom
new file mode 100644
index 0000000..7be4b29
--- /dev/null
+++ b/uddi4j-2.0.5.pom
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?><project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.uddi4j</groupId>
+ <artifactId>uddi4j</artifactId>
+ <version>2.0.5</version>
+ <description>POM was created from install:install-file</description>
+ <distributionManagement>
+ <status>deployed</status>
+ </distributionManagement>
+</project>
\ No newline at end of file
diff --git a/uddi4j-MANIFEST.MF b/uddi4j-MANIFEST.MF
new file mode 100644
index 0000000..217593e
--- /dev/null
+++ b/uddi4j-MANIFEST.MF
@@ -0,0 +1,22 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %Bundle-Name.0
+Bundle-SymbolicName: org.uddi4j
+Bundle-Version: 2.0.5.v201205280513
+Bundle-ClassPath: lib/uddi4j.jar
+Bundle-Vendor: %Bundle-Vendor.0
+Bundle-Localization: plugin
+Export-Package: org.uddi4j,
+ org.uddi4j.client,
+ org.uddi4j.datatype,
+ org.uddi4j.datatype.assertion,
+ org.uddi4j.datatype.binding,
+ org.uddi4j.datatype.business,
+ org.uddi4j.datatype.service,
+ org.uddi4j.datatype.tmodel,
+ org.uddi4j.request,
+ org.uddi4j.response,
+ org.uddi4j.transport,
+ org.uddi4j.util
+Require-Bundle: org.apache.axis
+Eclipse-BuddyPolicy: registered
diff --git a/uddi4j-remove-nonutf8-chars.patch b/uddi4j-remove-nonutf8-chars.patch
new file mode 100644
index 0000000..53d32a7
--- /dev/null
+++ b/uddi4j-remove-nonutf8-chars.patch
@@ -0,0 +1,26 @@
+diff -ur uddi4j/src.orig/org/uddi4j/datatype/business/Contact.java uddi4j/src/org/uddi4j/datatype/business/Contact.java
+--- uddi4j/src.orig/org/uddi4j/datatype/business/Contact.java 2006-06-27 10:07:38.000000000 +0100
++++ uddi4j/src/org/uddi4j/datatype/business/Contact.java 2012-05-28 18:25:04.646879563 +0100
+@@ -33,7 +33,7 @@
+ * responses from methods in the UDDIProxy class.
+ *
+ * <p><b>Element description:</b>
+- * <p>Data: Can contain a contacts name, address, phone, e-mail, and a description
++ * <p>Data: Can contain a contact's name, address, phone, e-mail, and a description
+ * of the contact.
+ *
+ * @author David Melgar (dmelgar at us.ibm.com)
+diff -ur uddi4j/src.orig/org/uddi4j/datatype/tmodel/TModel.java uddi4j/src/org/uddi4j/datatype/tmodel/TModel.java
+--- uddi4j/src.orig/org/uddi4j/datatype/tmodel/TModel.java 2006-06-27 10:07:36.000000000 +0100
++++ uddi4j/src/org/uddi4j/datatype/tmodel/TModel.java 2012-05-28 18:25:44.969109399 +0100
+@@ -120,8 +120,8 @@
+ public static final String OPERATORS_TMODEL_KEY = "UUID:327A56F0-3299-4461-BC23-5CD513E95C55";
+
+ /**
+- * D-U-N-S® Number Identifier System [dnb-com:D-U-N-S]<BR>
+- * This tModel is used for the Dun & Bradstreet D-U-N-S® Number identifier.
++ * D-U-N-S Number Identifier System [dnb-com:D-U-N-S]<BR>
++ * This tModel is used for the Dun & Bradstreet D-U-N-S Number identifier.
+ */
+ public static final String D_U_N_S_TMODEL_KEY = "UUID:8609C81E-EE1F-4D5A-B202-3EB13AD01823";
+
diff --git a/uddi4j-set-javac-path.patch b/uddi4j-set-javac-path.patch
new file mode 100644
index 0000000..195b33b
--- /dev/null
+++ b/uddi4j-set-javac-path.patch
@@ -0,0 +1,20 @@
+--- uddi4j/build.xml.orig 2012-05-28 18:18:35.350315223 +0100
++++ uddi4j/build.xml 2012-05-28 19:16:41.540728041 +0100
+@@ -102,7 +102,7 @@
+
+ <!-- Edit these property values to point to the correct locations of these jars. -->
+ <property name="w3cdom.location" value="xerces.jar;"/>
+- <property name="jaxrpc.location" value="j2ee.jar"/>
++ <property name="jaxrpc.location" value="jaxrpc.jar"/>
+ <property name="saaj.location" value="saaj.jar"/>
+ <property name="apache.soap.location" value="soap.jar"/>
+ <property name="apache.axis.location" value="axis.jar"/>
+@@ -121,7 +121,7 @@
+ <echo message="UDDI4J build classpath = ${classpath.to.echo}"/>
+
+ <!-- Edit this property value to point to the correct location of the javac.exe file. -->
+- <property name="javac.executable" value="javac.exe"/>
++ <property name="javac.executable" value="javac"/>
+
+ <available classname="org.apache.soap.messaging.Message"
+ classpathref="uddi4j.build.classpath"
diff --git a/uddi4j.spec b/uddi4j.spec
new file mode 100644
index 0000000..fa2de24
--- /dev/null
+++ b/uddi4j.spec
@@ -0,0 +1,105 @@
+Name: uddi4j
+Version: 2.0.5
+Release: 3%{?dist}
+Summary: Universal Description, Discovery and Integration registry API for Java
+Group: Development/Libraries
+License: IBM
+URL: http://sourceforge.net/projects/uddi4j/
+
+Source0: http://heanet.dl.sourceforge.net/project/uddi4j/uddi4j/%{version}/uddi4j-src-%{version}.zip
+Source1: %{name}-MANIFEST.MF
+Source2: http://repo1.maven.org/maven2/org/uddi4j/uddi4j/%{version}/uddi4j-%{version}.pom
+
+# Set javac path in build.xml
+Patch0: uddi4j-set-javac-path.patch
+
+# A couple of utf8 incompatible chars prevent compile
+Patch1: uddi4j-remove-nonutf8-chars.patch
+
+BuildArch: noarch
+
+BuildRequires: ant
+BuildRequires: axis
+BuildRequires: xerces-j2
+BuildRequires: java-devel
+BuildRequires: jpackage-utils
+
+Requires: java
+Requires: axis
+Requires: xerces-j2
+Requires: jpackage-utils
+
+%description
+UDDI4J is a Java class library that provides an API to interact with a
+UDDI (Universal Description, Discovery and Integration) registry.
+
+%package javadoc
+Summary: Javadocs for %{name}
+Group: Documentation
+Requires: jpackage-utils
+
+%description javadoc
+This package contains the API documentation for %{name}.
+
+%prep
+%setup -q -n %{name}
+%patch0 -p1
+%patch1 -p1
+
+find -name '*.class' -exec rm -f '{}' \;
+find -name '*.jar' -exec rm -f '{}' \;
+
+ln -s %{_datadir}/java/axis/saaj.jar
+ln -s %{_datadir}/java/axis/axis.jar
+ln -s %{_datadir}/java/axis/jaxrpc.jar
+ln -s %{_datadir}/java/xerces-j2.jar xerces.jar
+
+%build
+ant compile javadocs
+
+%install
+# inject OSGi manifests
+mkdir -p META-INF
+cp -p %{SOURCE1} META-INF/MANIFEST.MF
+touch META-INF/MANIFEST.MF
+zip -u build/lib/%{name}.jar META-INF/MANIFEST.MF
+
+install -d -m 0755 $RPM_BUILD_ROOT%{_javadir}
+cp -p build/lib/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
+
+install -d -m 0755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
+cp -rp build/javadocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
+
+# POMs
+install -d -m 0755 $RPM_BUILD_ROOT%{_mavenpomdir}
+install -p -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
+%add_maven_depmap JPP-%{name}.pom %{name}.jar
+
+%files
+%doc README
+%doc LICENSE.html
+%doc BuildDate.txt
+%doc ReleaseNotes.html
+%{_javadir}/*
+%{_mavenpomdir}/*
+%{_mavendepmapfragdir}/*
+
+%files javadoc
+%doc README
+%doc LICENSE.html
+%{_javadocdir}/%{name}
+
+%changelog
+* Tue May 29 2012 Gerard Ryan <galileo at fedoraproject.org> - 2.0.5-3
+- Add line to copy javadocs
+
+* Tue May 29 2012 Gerard Ryan <galileo at fedoraproject.org> - 2.0.5-2
+- Fix rpmlint issues: source urls; tabs and space warnings
+- Remove BuildDate.txt and ReleaseNotes.html from javadoc
+- Drop -version from javadoc install path
+- Change group to Development/Libraries
+- Remove defattr(-,root,root,-)
+- Remove rm -rf RPM_BUILD_ROOT
+
+* Mon May 28 2012 Gerard Ryan <galileo at fedoraproject.org> - 2.0.5-1
+- Initial packaging
More information about the scm-commits
mailing list