[cxf-xjc-utils] Initial import (#822635).

Patryk Obara dreamertan at fedoraproject.org
Thu May 24 15:53:51 UTC 2012


commit ac6f510cfd327ca625a57dce0a5eb99752e3f151
Author: Patryk Obara <dreamer.tan at gmail.com>
Date:   Thu May 24 17:53:28 2012 +0200

    Initial import (#822635).

 .gitignore                    |    1 +
 cxf-xjc-utils-2.6.0-pom.patch |   20 +++++++
 cxf-xjc-utils.spec            |  112 +++++++++++++++++++++++++++++++++++++++++
 sources                       |    1 +
 4 files changed, 134 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..3c66e36 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/cxf-xjc-utils-2.6.0.tar.xz
diff --git a/cxf-xjc-utils-2.6.0-pom.patch b/cxf-xjc-utils-2.6.0-pom.patch
new file mode 100644
index 0000000..8d5da2c
--- /dev/null
+++ b/cxf-xjc-utils-2.6.0-pom.patch
@@ -0,0 +1,20 @@
+diff -Naur -x '*java' cxf-xjc-utils-2.6.0/pom.xml cxf-xjc-utils-2.6.0-work/pom.xml
+--- cxf-xjc-utils-2.6.0/pom.xml	2012-03-30 17:47:45.856348000 +0200
++++ cxf-xjc-utils-2.6.0-work/pom.xml	2012-05-17 15:13:33.660366727 +0200
+@@ -172,16 +172,6 @@
+     <build>
+         <defaultGoal>install</defaultGoal>
+ 
+-        <plugins>
+-            <plugin>
+-                 <groupId>org.apache.maven.plugins</groupId>
+-                 <artifactId>maven-checkstyle-plugin</artifactId>
+-            </plugin>
+-            <plugin>
+-                 <groupId>org.apache.maven.plugins</groupId>
+-                 <artifactId>maven-pmd-plugin</artifactId>
+-            </plugin>
+-        </plugins>
+         <pluginManagement>
+             <plugins>
+                 <plugin>
diff --git a/cxf-xjc-utils.spec b/cxf-xjc-utils.spec
new file mode 100644
index 0000000..62c11c4
--- /dev/null
+++ b/cxf-xjc-utils.spec
@@ -0,0 +1,112 @@
+Name:             cxf-xjc-utils
+Version:          2.6.0
+Release:          2%{?dist}
+Summary:          Apache CXF XJC-Utils
+Group:            Development/Libraries
+License:          ASL 2.0
+URL:              http://cxf.apache.org/xjc-utils.html
+
+# svn export http://svn.apache.org/repos/asf/cxf/xjc-utils/tags/xjc-utils-2.6.0/ cxf-xjc-utils-2.6.0
+# tar cafJ cxf-xjc-utils-2.6.0.tar.xz cxf-xjc-utils-2.6.0
+
+Source0:          %{name}-%{version}.tar.xz
+
+Patch0:           %{name}-%{version}-pom.patch
+
+BuildArch:        noarch
+
+BuildRequires:    jpackage-utils
+BuildRequires:    java-devel
+BuildRequires:    maven
+BuildRequires:    maven-compiler-plugin
+BuildRequires:    maven-install-plugin
+BuildRequires:    maven-jar-plugin
+BuildRequires:    maven-javadoc-plugin
+BuildRequires:    maven-shade-plugin
+BuildRequires:    apache-commons-lang
+BuildRequires:    glassfish-jaxb
+BuildRequires:    glassfish-jaxb-api
+BuildRequires:    junit
+BuildRequires:    jvnet-parent
+BuildRequires:    maven-project
+BuildRequires:    maven-shared-downloader
+BuildRequires:    maven-surefire-provider-junit4
+BuildRequires:    ws-jaxme
+BuildRequires:    wsdl4j
+
+Requires:         jpackage-utils
+Requires:         java
+Requires:         apache-commons-lang
+Requires:         glassfish-jaxb
+Requires:         junit
+Requires:         ws-jaxme
+Requires:         wsdl4j
+
+%description
+The Apache CXF XJC-Utils provides a bunch of utilities for working
+with JAXB to generate better or more usable code.
+
+%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}-%{version}
+
+%patch0 -p1
+
+%build
+# test fail because of missing dependencies
+mvn-rpmbuild \
+    -Dmaven.test.skip=true \
+    -Dproject.build.sourceEncoding=UTF-8 \
+    package javadoc:aggregate
+
+
+%install
+install -d -m 755 %{buildroot}%{_javadir}/%{name}
+install -d -m 755 %{buildroot}%{_mavenpomdir}
+install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
+
+for module in boolean bug671 cxf-xjc-plugin dv \
+              property-listener runtime ts wsdlextension;
+do
+    pushd $module
+
+    case $module in
+    cxf-xjc-plugin)    module=plugin ;;
+    property-listener) module=pl ;;
+    esac
+
+    install -pm 644 target/cxf-xjc-$module-%{version}.jar %{buildroot}%{_javadir}/%{name}/cxf-xjc-$module.jar
+    install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP.%{name}-cxf-xjc-$module.pom
+    %add_maven_depmap JPP.%{name}-cxf-xjc-$module.pom %{name}/cxf-xjc-$module.jar
+    popd
+done
+
+install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP.%{name}.pom
+%add_maven_depmap JPP.%{name}.pom
+
+# javadoc
+cp -rp target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
+
+%files
+%{_mavenpomdir}/*
+%{_mavendepmapfragdir}/*
+%{_javadir}/*
+
+%files javadoc
+%{_javadocdir}/%{name}
+
+%changelog
+* Thu May 10 2012 Patryk Obara <pobara at redhat.com> 2.6.0-2
+- Install phase cleaned (whitespace warnings and unnecessary dir)
+- maven removed from requires
+
+* Thu May 10 2012 Patryk Obara <pobara at redhat.com> 2.6.0-1
+- Initial packaging
+
diff --git a/sources b/sources
index e69de29..3aa3f35 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+b51370d33f601a82df61e9de4b359a14  cxf-xjc-utils-2.6.0.tar.xz


More information about the scm-commits mailing list