[cxf] Initial import (#833333).
Patryk Obara
dreamertan at fedoraproject.org
Wed Jul 11 11:21:12 UTC 2012
commit b74744fc0d1b975572f05b2029ced4506f8a0a0a
Author: Patryk Obara <pobara at redhat.com>
Date: Wed Jul 11 13:20:52 2012 +0200
Initial import (#833333).
.gitignore | 1 +
0001-replace-geronimo-j2ee-connector.patch | 42 +++
0002-replace-cglib-nodep-with-cglib.patch | 46 +++
0003-disable-common-submodules.patch | 29 ++
0004-disable-maven-plugins-submodules.patch | 27 ++
0005-disable-modules.patch | 32 ++
0006-disable-rt-submodules.patch | 76 +++++
0007-disable-tools-submodules.patch | 57 ++++
0008-disable-plugin-for-ws-policy.patch | 29 ++
0009-replace-geronimo-javamail.patch | 29 ++
0010-disable-maven-remote-resources-plugin.patch | 29 ++
0011-disable-optional-xsd-validation.patch | 28 ++
cxf.spec | 357 ++++++++++++++++++++++
sources | 1 +
14 files changed, 783 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..f9eb91c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/apache-cxf-2.4.8-src.tar.gz
diff --git a/0001-replace-geronimo-j2ee-connector.patch b/0001-replace-geronimo-j2ee-connector.patch
new file mode 100644
index 0000000..df3e5dd
--- /dev/null
+++ b/0001-replace-geronimo-j2ee-connector.patch
@@ -0,0 +1,42 @@
+From de8350769996417fc9c7d3a584d76f9a2641b4e7 Mon Sep 17 00:00:00 2001
+From: Patryk Obara <dreamer.tan at gmail.com>
+Date: Tue, 10 Jul 2012 13:50:13 +0200
+Subject: [PATCH] replace geronimo-j2ee-connector
+
+---
+ api/pom.xml | 4 ++--
+ parent/pom.xml | 6 +++---
+ 2 files changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/api/pom.xml b/api/pom.xml
+index c4e41a3..aabbb28 100644
+--- a/api/pom.xml
++++ b/api/pom.xml
+@@ -67,8 +67,8 @@
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+- <groupId>org.apache.geronimo.specs</groupId>
+- <artifactId>geronimo-j2ee-connector_1.5_spec</artifactId>
++ <groupId>org.jboss.spec.javax.resource</groupId>
++ <artifactId>jboss-connector-api_1.6_spec</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+diff --git a/parent/pom.xml b/parent/pom.xml
+index 7bf5af6..c120b8d 100644
+--- a/parent/pom.xml
++++ b/parent/pom.xml
+@@ -1112,9 +1112,9 @@
+ <version>${cxf.geronimo.jms.version}</version>
+ </dependency>
+ <dependency>
+- <groupId>org.apache.geronimo.specs</groupId>
+- <artifactId>geronimo-j2ee-connector_1.5_spec</artifactId>
+- <version>2.0.0</version>
++ <groupId>org.jboss.spec.javax.resource</groupId>
++ <artifactId>jboss-connector-api_1.6_spec</artifactId>
++ <version>1.0.1-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.geronimo.specs</groupId>
diff --git a/0002-replace-cglib-nodep-with-cglib.patch b/0002-replace-cglib-nodep-with-cglib.patch
new file mode 100644
index 0000000..ad93aa2
--- /dev/null
+++ b/0002-replace-cglib-nodep-with-cglib.patch
@@ -0,0 +1,46 @@
+From 40062f6e95781b166c561a624846a7ed5d3f7fad Mon Sep 17 00:00:00 2001
+From: Patryk Obara <dreamer.tan at gmail.com>
+Date: Tue, 10 Jul 2012 13:55:00 +0200
+Subject: [PATCH] replace cglib-nodep with cglib
+
+---
+ common/common/pom.xml | 4 ++--
+ parent/pom.xml | 10 +++++-----
+ 2 files changed, 7 insertions(+), 7 deletions(-)
+
+diff --git a/common/common/pom.xml b/common/common/pom.xml
+index edfc5c7..c700e77 100644
+--- a/common/common/pom.xml
++++ b/common/common/pom.xml
+@@ -104,8 +104,8 @@
+ </dependency>
+
+ <dependency>
+- <groupId>cglib</groupId>
+- <artifactId>cglib-nodep</artifactId>
++ <groupId>net.sf.cglib</groupId>
++ <artifactId>cglib</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+diff --git a/parent/pom.xml b/parent/pom.xml
+index c120b8d..4b27478 100644
+--- a/parent/pom.xml
++++ b/parent/pom.xml
+@@ -431,11 +431,11 @@
+ <version>${cxf.osgi.version}</version>
+ <scope>provided</scope>
+ </dependency>
+- <dependency>
+- <groupId>cglib</groupId>
+- <artifactId>cglib-nodep</artifactId>
+- <version>2.2.2</version>
+- </dependency>
++ <dependency>
++ <groupId>net.sf.cglib</groupId>
++ <artifactId>cglib</artifactId>
++ <version>2.2</version>
++ </dependency>
+ <dependency>
+ <groupId>com.sun.xml.fastinfoset</groupId>
+ <artifactId>FastInfoset</artifactId>
diff --git a/0003-disable-common-submodules.patch b/0003-disable-common-submodules.patch
new file mode 100644
index 0000000..3a4b9bf
--- /dev/null
+++ b/0003-disable-common-submodules.patch
@@ -0,0 +1,29 @@
+From 10df27121299888213611216e51b7b489c0ab281 Mon Sep 17 00:00:00 2001
+From: Patryk Obara <dreamer.tan at gmail.com>
+Date: Tue, 10 Jul 2012 13:57:10 +0200
+Subject: [PATCH] disable common submodules
+
+---
+ common/pom.xml | 10 +++++-----
+ 1 file changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/common/pom.xml b/common/pom.xml
+index 38663ca..c4378b9 100644
+--- a/common/pom.xml
++++ b/common/pom.xml
+@@ -32,10 +32,10 @@
+ <version>2.4.8</version>
+ </parent>
+
+- <modules>
+- <module>common</module>
+- <module>wstx-msv-validation</module>
+- <module>xerces-xsd-validation</module>
+- </modules>
++ <modules>
++ <module>common</module>
++ <!-- <module>wstx-msv-validation</module> -->
++ <!-- <module>xerces-xsd-validation</module> !! ListLSInput is not abstract -->
++ </modules>
+
+ </project>
diff --git a/0004-disable-maven-plugins-submodules.patch b/0004-disable-maven-plugins-submodules.patch
new file mode 100644
index 0000000..d8b9035
--- /dev/null
+++ b/0004-disable-maven-plugins-submodules.patch
@@ -0,0 +1,27 @@
+From fc210231500760caf711258ecff4b0ac1aa5abd1 Mon Sep 17 00:00:00 2001
+From: Patryk Obara <dreamer.tan at gmail.com>
+Date: Tue, 10 Jul 2012 13:58:29 +0200
+Subject: [PATCH] disable maven-plugins submodules
+
+---
+ maven-plugins/pom.xml | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/maven-plugins/pom.xml b/maven-plugins/pom.xml
+index f558e40..1698374 100644
+--- a/maven-plugins/pom.xml
++++ b/maven-plugins/pom.xml
+@@ -34,11 +34,13 @@
+
+ <modules>
+ <module>codegen-plugin</module>
++ <!--
+ <module>java2ws-plugin</module>
+ <module>wsdl-validator-plugin</module>
+ <module>wadl2java-plugin</module>
+ <module>corba</module>
+ <module>archetypes</module>
++ -->
+ </modules>
+
+ </project>
diff --git a/0005-disable-modules.patch b/0005-disable-modules.patch
new file mode 100644
index 0000000..e37ffb1
--- /dev/null
+++ b/0005-disable-modules.patch
@@ -0,0 +1,32 @@
+From 634c03ac4ee643992d449da2ababd4d134169395 Mon Sep 17 00:00:00 2001
+From: Patryk Obara <dreamer.tan at gmail.com>
+Date: Tue, 10 Jul 2012 14:02:32 +0200
+Subject: [PATCH] disable modules
+
+---
+ pom.xml | 10 +++++-----
+ 1 file changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/pom.xml b/pom.xml
+index 912731d..3b4a5fa 100644
+--- a/pom.xml
++++ b/pom.xml
+@@ -175,13 +175,13 @@
+ <module>common</module>
+ <module>api</module>
+ <module>tools</module>
+- <module>testutils</module>
++ <!-- <module>testutils</module> -->
+ <module>rt</module>
+- <module>integration</module>
++ <!-- <module>integration</module> -->
+ <module>maven-plugins</module>
+- <module>osgi/karaf</module>
+- <module>osgi/bundle</module>
+- <module>systests</module>
++ <!-- <module>osgi/karaf</module> -->
++ <!-- <module>osgi/bundle</module> -->
++ <!-- <module>systests</module> -->
+ </modules>
+
+
diff --git a/0006-disable-rt-submodules.patch b/0006-disable-rt-submodules.patch
new file mode 100644
index 0000000..f0e03c2
--- /dev/null
+++ b/0006-disable-rt-submodules.patch
@@ -0,0 +1,76 @@
+From 0069cb2a3e4c60a2096fb6fe04cecb322ab77731 Mon Sep 17 00:00:00 2001
+From: Patryk Obara <dreamer.tan at gmail.com>
+Date: Tue, 10 Jul 2012 14:15:26 +0200
+Subject: [PATCH] disable rt submodules
+
+---
+ rt/bindings/pom.xml | 6 +++---
+ rt/pom.xml | 30 +++++++++++++++---------------
+ 2 files changed, 18 insertions(+), 18 deletions(-)
+
+diff --git a/rt/bindings/pom.xml b/rt/bindings/pom.xml
+index 5ed576b..175b175 100644
+--- a/rt/bindings/pom.xml
++++ b/rt/bindings/pom.xml
+@@ -34,11 +34,11 @@
+ <modules>
+ <module>soap</module>
+ <module>xml</module>
+- <module>http</module>
++ <!-- <module>http</module> !! -->
+ <module>object</module>
+ <module>coloc</module>
+- <module>jbi</module>
+- <module>corba</module>
++ <!-- <module>jbi</module> -->
++ <!-- <module>corba</module> -->
+ </modules>
+
+
+diff --git a/rt/pom.xml b/rt/pom.xml
+index c7143e5..31452c7 100644
+--- a/rt/pom.xml
++++ b/rt/pom.xml
+@@ -36,27 +36,27 @@
+ <module>core</module>
+ <module>transports/local</module>
+ <module>databinding/jaxb</module>
+- <module>databinding/xmlbeans</module>
+- <module>databinding/aegis</module>
+- <module>databinding/sdo</module>
+- <module>databinding/jibx</module>
++ <!-- <module>databinding/xmlbeans</module> -->
++ <!-- <module>databinding/aegis</module> -->
++ <!-- <module>databinding/sdo</module> -->
++ <!-- <module>databinding/jibx</module> -->
+ <module>bindings</module>
+ <module>frontend/simple</module>
+- <module>frontend/jaxws</module>
+- <module>frontend/jaxrs</module>
+- <module>frontend/js</module>
++ <!-- <module>frontend/jaxws</module> !! transports/http -->
++ <!-- <module>frontend/jaxrs</module> -->
++ <!-- <module>frontend/js</module> -->
+ <module>transports/common</module>
+- <module>transports/http</module>
+- <module>transports/http-jetty</module>
+- <module>transports/jms</module>
+- <module>transports/jbi</module>
++ <!-- <module>transports/http</module> !! org.springframework:spring-web -->
++ <!-- <module>transports/http-jetty</module> -->
++ <!-- <module>transports/jms</module> !! org.springframework:spring-jms org.springframework:spring-tx -->
++ <!-- <module>transports/jbi</module> -->
+ <module>ws/policy</module>
+ <module>ws/addr</module>
+- <module>ws/rm</module>
+- <module>ws/security</module>
++ <!-- <module>ws/rm</module> -->
++ <!-- <module>ws/security</module> -->
+ <module>management</module>
+- <module>management-web</module>
+- <module>javascript</module>
++ <!-- <module>management-web</module> -->
++ <!-- <module>javascript</module> !! transports/http -->
+ </modules>
+
+ </project>
diff --git a/0007-disable-tools-submodules.patch b/0007-disable-tools-submodules.patch
new file mode 100644
index 0000000..ddb5286
--- /dev/null
+++ b/0007-disable-tools-submodules.patch
@@ -0,0 +1,57 @@
+From bd2f588b662211ebce0782adaac69ba756f5c62d Mon Sep 17 00:00:00 2001
+From: Patryk Obara <dreamer.tan at gmail.com>
+Date: Tue, 10 Jul 2012 14:19:29 +0200
+Subject: [PATCH] disable tools submodules
+
+---
+ tools/javato/pom.xml | 2 +-
+ tools/pom.xml | 4 ++--
+ tools/wsdlto/pom.xml | 6 +++---
+ 3 files changed, 6 insertions(+), 6 deletions(-)
+
+diff --git a/tools/javato/pom.xml b/tools/javato/pom.xml
+index 95b7448..b3a79c9 100644
+--- a/tools/javato/pom.xml
++++ b/tools/javato/pom.xml
+@@ -33,7 +33,7 @@
+ </parent>
+
+ <modules>
+- <module>ws</module>
++ <!-- <module>ws</module> !! rt/javascript -->
+ </modules>
+
+ </project>
+diff --git a/tools/pom.xml b/tools/pom.xml
+index 53b8e2f..1c775df 100644
+--- a/tools/pom.xml
++++ b/tools/pom.xml
+@@ -37,8 +37,8 @@
+ <module>validator</module>
+ <module>wsdlto</module>
+ <module>javato</module>
+- <module>wadlto</module>
+- <module>corba</module>
++ <!-- <module>wadlto</module> -->
++ <!-- <module>corba</module> -->
+ </modules>
+
+ </project>
+diff --git a/tools/wsdlto/pom.xml b/tools/wsdlto/pom.xml
+index d0775ad..7e52e04 100644
+--- a/tools/wsdlto/pom.xml
++++ b/tools/wsdlto/pom.xml
+@@ -35,10 +35,10 @@
+ <modules>
+ <module>core</module>
+ <module>frontend/jaxws</module>
+- <module>frontend/javascript</module>
++ <!-- <module>frontend/javascript</module> -->
+ <module>databinding/jaxb</module>
+- <module>test</module>
+- <module>misc</module>
++ <!-- <module>test</module> -->
++ <!-- <module>misc</module> -->
+ </modules>
+
+ </project>
diff --git a/0008-disable-plugin-for-ws-policy.patch b/0008-disable-plugin-for-ws-policy.patch
new file mode 100644
index 0000000..ce3b7f1
--- /dev/null
+++ b/0008-disable-plugin-for-ws-policy.patch
@@ -0,0 +1,29 @@
+From 096c3691732be83328b63958882afc7b126fe352 Mon Sep 17 00:00:00 2001
+From: Patryk Obara <dreamer.tan at gmail.com>
+Date: Tue, 10 Jul 2012 14:22:17 +0200
+Subject: [PATCH] disable plugin for ws-policy
+
+---
+ rt/ws/policy/pom.xml | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/rt/ws/policy/pom.xml b/rt/ws/policy/pom.xml
+index 9c8d67e..5356ae3 100644
+--- a/rt/ws/policy/pom.xml
++++ b/rt/ws/policy/pom.xml
+@@ -154,6 +154,7 @@
+ </execution>
+ </executions>
+ </plugin>
++ <!-- Exception in thread "main" java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal
+ <plugin>
+ <groupId>org.apache.cxf</groupId>
+ <artifactId>cxf-codegen-plugin</artifactId>
+@@ -177,6 +178,7 @@
+ </execution>
+ </executions>
+ </plugin>
++ -->
+ </plugins>
+ </build>
+
diff --git a/0009-replace-geronimo-javamail.patch b/0009-replace-geronimo-javamail.patch
new file mode 100644
index 0000000..fad4252
--- /dev/null
+++ b/0009-replace-geronimo-javamail.patch
@@ -0,0 +1,29 @@
+From bea1e91b8d96bca20a7701ee6c3d3bf92847c680 Mon Sep 17 00:00:00 2001
+From: Patryk Obara <dreamer.tan at gmail.com>
+Date: Tue, 10 Jul 2012 14:31:16 +0200
+Subject: [PATCH] replace geronimo-javamail
+
+---
+ rt/core/pom.xml | 9 +++++----
+ 1 file changed, 5 insertions(+), 4 deletions(-)
+
+diff --git a/rt/core/pom.xml b/rt/core/pom.xml
+index 46f1f1b..1504808 100644
+--- a/rt/core/pom.xml
++++ b/rt/core/pom.xml
+@@ -90,10 +90,11 @@
+ <artifactId>easymock</artifactId>
+ <scope>test</scope>
+ </dependency>
+- <dependency>
+- <groupId>org.apache.geronimo.specs</groupId>
+- <artifactId>geronimo-javamail_1.4_spec</artifactId>
+- </dependency>
++ <dependency>
++ <groupId>javax.mail</groupId>
++ <artifactId>mail</artifactId>
++ <version>1.4.3</version>
++ </dependency>
+ <dependency>
+ <groupId>com.sun.xml.fastinfoset</groupId>
+ <artifactId>FastInfoset</artifactId>
diff --git a/0010-disable-maven-remote-resources-plugin.patch b/0010-disable-maven-remote-resources-plugin.patch
new file mode 100644
index 0000000..58fd47e
--- /dev/null
+++ b/0010-disable-maven-remote-resources-plugin.patch
@@ -0,0 +1,29 @@
+From bf8a2028e8ffd582d658d88ee3bedb1e5791b454 Mon Sep 17 00:00:00 2001
+From: Patryk Obara <dreamer.tan at gmail.com>
+Date: Tue, 10 Jul 2012 14:34:56 +0200
+Subject: [PATCH] disable maven-remote-resources-plugin
+
+---
+ parent/pom.xml | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/parent/pom.xml b/parent/pom.xml
+index 4b27478..5d58f24 100644
+--- a/parent/pom.xml
++++ b/parent/pom.xml
+@@ -378,6 +378,7 @@
+ </execution>
+ </executions>
+ </plugin>
++ <!--
+ <plugin>
+ <artifactId>maven-remote-resources-plugin</artifactId>
+ <version>1.3</version>
+@@ -407,6 +408,7 @@
+ </execution>
+ </executions>
+ </plugin>
++ -->
+ </plugins>
+
+ <defaultGoal>install</defaultGoal>
diff --git a/0011-disable-optional-xsd-validation.patch b/0011-disable-optional-xsd-validation.patch
new file mode 100644
index 0000000..c2da59b
--- /dev/null
+++ b/0011-disable-optional-xsd-validation.patch
@@ -0,0 +1,28 @@
+From 294eeab19bf5fcc07d99665961878754af02dc1d Mon Sep 17 00:00:00 2001
+From: Patryk Obara <dreamer.tan at gmail.com>
+Date: Tue, 10 Jul 2012 14:38:00 +0200
+Subject: [PATCH] disable optional xsd validation
+
+---
+ rt/frontend/simple/pom.xml | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/rt/frontend/simple/pom.xml b/rt/frontend/simple/pom.xml
+index 2d51c82..26d51ab 100644
+--- a/rt/frontend/simple/pom.xml
++++ b/rt/frontend/simple/pom.xml
+@@ -110,12 +110,14 @@
+
+ <!-- if this is present, then the validation feature
+ will check W3C schema if Xerces is available. -->
++ <!--
+ <dependency>
+ <groupId>org.apache.cxf</groupId>
+ <artifactId>cxf-xerces-xsd-validation</artifactId>
+ <version>${project.version}</version>
+ <optional>true</optional>
+ </dependency>
++ -->
+ </dependencies>
+
+
diff --git a/cxf.spec b/cxf.spec
new file mode 100644
index 0000000..da86ddd
--- /dev/null
+++ b/cxf.spec
@@ -0,0 +1,357 @@
+# vim: set ts=4 sw=4 sts=4 et:
+%global tarname apache-%{name}-%{version}-src
+
+Name: cxf
+Version: 2.4.8
+Release: 2%{?dist}
+Summary: Apache CXF
+License: ASL 2.0
+Group: Development/Libraries
+URL: http://cxf.apache.org/
+
+Source0: http://archive.apache.org/dist/%{name}/%{version}/%{tarname}.tar.gz
+
+Patch0: 0001-replace-geronimo-j2ee-connector.patch
+Patch1: 0002-replace-cglib-nodep-with-cglib.patch
+Patch2: 0003-disable-common-submodules.patch
+Patch3: 0004-disable-maven-plugins-submodules.patch
+Patch4: 0005-disable-modules.patch
+Patch5: 0006-disable-rt-submodules.patch
+Patch6: 0007-disable-tools-submodules.patch
+Patch7: 0008-disable-plugin-for-ws-policy.patch
+Patch8: 0009-replace-geronimo-javamail.patch
+Patch9: 0010-disable-maven-remote-resources-plugin.patch
+Patch10: 0011-disable-optional-xsd-validation.patch
+
+BuildArch: noarch
+
+BuildRequires: java-devel
+BuildRequires: jpackage-utils
+BuildRequires: maven
+BuildRequires: maven-archetype-packaging
+BuildRequires: maven-assembly-plugin
+BuildRequires: maven-compiler-plugin
+BuildRequires: maven-assembly-plugin
+BuildRequires: maven-install-plugin
+BuildRequires: maven-jar-plugin
+BuildRequires: maven-javadoc-plugin
+BuildRequires: maven-release-plugin
+BuildRequires: maven-resources-plugin
+BuildRequires: maven-shared-artifact-resolver
+BuildRequires: maven-shared-downloader
+BuildRequires: maven-surefire-plugin
+BuildRequires: maven-war-plugin
+BuildRequires: apache-commons-lang
+BuildRequires: apache-mina
+BuildRequires: aries-blueprint
+BuildRequires: asm2
+BuildRequires: cglib
+BuildRequires: cxf-build-utils
+BuildRequires: cxf-xjc-utils
+BuildRequires: felix-osgi-core
+BuildRequires: geronimo-annotation
+BuildRequires: geronimo-saaj
+BuildRequires: glassfish-jaxb
+BuildRequires: glassfish-jaxb-api
+BuildRequires: glassfish-fastinfoset
+BuildRequires: javamail
+BuildRequires: jboss-connector-1.6-api
+BuildRequires: jibx
+BuildRequires: jra
+BuildRequires: neethi
+BuildRequires: springframework
+BuildRequires: springframework-aop
+BuildRequires: springframework-beans
+BuildRequires: springframework-context
+BuildRequires: velocity
+BuildRequires: wsdl4j
+BuildRequires: xml-commons-resolver
+BuildRequires: ws-xmlschema
+
+Requires: apache-commons-lang
+Requires: cxf-xjc-utils
+Requires: cglib
+Requires: geronimo-annotation
+Requires: glassfish-jaxb
+Requires: java
+Requires: jboss-connector-1.6-api
+Requires: jpackage-utils
+Requires: jra
+Requires: neethi
+Requires: ws-xmlschema
+Requires: wsdl4j
+
+
+%description
+Apache CXF is an open-source services framework that aids in
+the development of services using front-end programming APIs,
+like JAX-WS and JAX-RS.
+
+
+%package javadoc
+Summary: Javadocs for %{name}
+Group: Documentation
+Requires: jpackage-utils
+
+%description javadoc
+This package contains the API documentation for %{name}.
+
+
+%package api
+Summary: Apache CXF API
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: %{name}-common = %{version}-%{release}
+
+%description api
+Apache CXF API classes.
+
+
+%package common
+Summary: Apache CXF Common
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: glassfish-jaxb-api
+Requires: geronimo-saaj
+
+%description common
+This package contains Apache CXF Common classes (including
+Apache CXF Common Utilities).
+
+%package maven-plugins
+Summary: Apache CXF Maven Plugins
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: %{name}-api = %{version}-%{release}
+Requires: %{name}-common = %{version}-%{release}
+
+%description maven-plugins
+Maven plugins required for building or testing Apache CXF.
+
+
+%package rt
+Summary: Apache CXF Runtime
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: %{name}-api = %{version}-%{release}
+Requires: %{name}-common = %{version}-%{release}
+Requires: %{name}-tools = %{version}-%{release}
+Requires: apache-mina
+Requires: aries-blueprint
+Requires: asm2
+Requires: felix-osgi-core
+Requires: glassfish-fastinfoset
+Requires: javamail
+Requires: jibx
+Requires: springframework
+Requires: springframework-aop
+Requires: springframework-beans
+Requires: springframework-context
+Requires: xml-commons-resolver
+
+%description rt
+This package contains core feature set of Apache CXF;
+web service standards support, frontends, and protocols
+support.
+
+
+%package tools
+Summary: Apache CXF Tools
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires(pre): %{name}-rt = %{version}-%{release}
+Requires: velocity
+
+%description tools
+Apache CXF Command Line Tools.
+
+%prep
+
+%setup -q -n %{tarname}
+
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
+%patch5 -p1
+%patch6 -p1
+%patch7 -p1
+%patch8 -p1
+%patch9 -p1
+%patch10 -p1
+
+find . -name "*.jar" -delete
+find . -name "*.class" -delete
+
+iconv -f macintosh -t utf8 < licenses/cdd1-1.0.txt > cdd.txt
+mv -f cdd.txt licenses/cdd1-1.0.txt
+
+%build
+# tests are disabled because of lots of missing dependencies
+mvn-rpmbuild \
+ -Pfastinstall \
+ -Dmaven.test.skip=true \
+ -Dproject.build.sourceEncoding=UTF-8 \
+ package javadoc:aggregate
+
+
+%install
+
+install_pom_file ()
+{
+ local pom_file=${1}
+ install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/${pom_file}
+ %add_maven_depmap ${pom_file}
+}
+
+install_jar_file ()
+{
+ local pom_file=${1}
+ local source=${2}
+ local target=${3}
+
+ install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/${pom_file}
+ install -pm 644 ${source} %{buildroot}%{_javadir}/${target}
+ %add_maven_depmap ${pom_file} ${target}
+}
+
+guess_jar_file_and_target ()
+{
+ jar_found=true
+ jar_file=""
+ jar_target=""
+ local guess
+
+ guess=target/%{name}-${module}-${aid_name}-%{version}.jar
+ if [ -f ${guess} ]; then
+ jar_file=${guess}
+ jar_target=%{name}/${module}-${aid_name}.jar
+ return 0
+ fi
+
+ guess=target/%{name}-${module}-%{version}.jar
+ if [ -f ${guess} ]; then
+ jar_file=${guess}
+ jar_target=%{name}/${module}.jar
+ return 0
+ fi
+
+ guess=target/%{name}-${aid_name}-%{version}.jar
+ if [ -f ${guess} ]; then
+ jar_file=${guess}
+ jar_target=%{name}/${module}-${aid_name}.jar
+ return 0
+ fi
+
+ jar_found=false
+}
+
+install -d -m 755 %{buildroot}%{_javadir}/%{name}
+install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
+install -d -m 755 %{buildroot}%{_mavenpomdir}
+
+while read module subdir nontemplate_name
+do
+ dir=${module}/${subdir}
+
+ pushd $dir
+
+ if [ "${subdir}" = "" ]; then
+ aid_name=""
+ pom_file=JPP.%{name}-${module}.pom
+ else
+ aid_name=${nontemplate_name:-$(echo ${subdir} | tr / -)}
+ pom_file=JPP.%{name}-${module}-${aid_name}.pom
+ fi
+
+ guess_jar_file_and_target
+
+ if $jar_found; then
+ install_jar_file ${pom_file} ${jar_file} ${jar_target}
+ else
+ install_pom_file ${pom_file}
+ fi
+
+ popd
+
+done <<EOM
+api
+maven-plugins
+maven-plugins codegen-plugin
+common
+common common utilities
+parent
+rt
+rt bindings
+rt bindings/coloc
+rt bindings/object
+rt bindings/soap
+rt bindings/xml
+rt core
+rt databinding/jaxb
+rt frontend/simple
+rt management
+rt transports/common
+rt transports/local
+rt ws/addr
+rt ws/policy
+tools
+tools common
+tools javato
+tools validator
+tools wsdlto
+tools wsdlto/core
+tools wsdlto/databinding/jaxb
+tools wsdlto/frontend/jaxws
+EOM
+
+# javadoc
+cp -rp target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
+
+
+%files
+%doc README LICENSE NOTICE
+%doc licenses
+%{_mavenpomdir}/JPP.%{name}-parent.pom
+%{_mavendepmapfragdir}/*
+%dir %{_javadir}/%{name}
+
+%files javadoc
+%doc LICENSE NOTICE
+%doc licenses
+%{_javadocdir}/%{name}
+
+%files api
+%{_mavenpomdir}/JPP.%{name}-api.pom
+%{_javadir}/%{name}/api.jar
+
+%files common
+%{_mavenpomdir}/JPP.%{name}-common*
+%{_javadir}/%{name}/common-*
+
+%files maven-plugins
+%{_mavenpomdir}/JPP.%{name}-maven-plugins*
+%{_javadir}/%{name}/maven-plugins-*
+
+%files rt
+%{_mavenpomdir}/JPP.%{name}-rt*
+%{_javadir}/%{name}/rt-*
+
+%files tools
+%{_mavenpomdir}/JPP.%{name}-tools*
+%{_javadir}/%{name}/tools-*
+
+
+%changelog
+* Tue Jul 10 2012 Patryk Obara <pobara at redhat.com> 2.4.8-2
+- Change source0 url
+
+* Mon Jul 9 2012 Patryk Obara <pobara at redhat.com> 2.4.8-1
+- Upgrade to latest bugfix release
+- Fix submodule description
+- Patch splitting and cleanup
+- Added missing build dependencies
+
+* Mon Jun 18 2012 Patryk Obara <pobara at redhat.com> 2.4.7-1
+- Initial packaging
diff --git a/sources b/sources
index e69de29..e451029 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+592b93ee7a63c532e85bd7f4424c7a5a apache-cxf-2.4.8-src.tar.gz
More information about the scm-commits
mailing list