[glassfish-jaxb-api] uploaded
gil
gil at fedoraproject.org
Mon Jan 30 10:28:19 UTC 2012
commit b3a9d015e27d4e32431907def6d838fbcd369d33
Author: gil <gil at pcgil.(none)>
Date: Mon Jan 30 10:31:18 2012 +0100
uploaded
.gitignore | 1 +
glassfish-jaxb-api-2.2.3-fixbuild.patch | 136 ++++++++++++++++++++++++++++
glassfish-jaxb-api.spec | 108 ++++++++++++++++++++++
jaxb-api-2.2.3.pom | 149 +++++++++++++++++++++++++++++++
sources | 1 +
5 files changed, 395 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..52189c0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/jaxb-api-2.2.3-sources.jar
diff --git a/glassfish-jaxb-api-2.2.3-fixbuild.patch b/glassfish-jaxb-api-2.2.3-fixbuild.patch
new file mode 100644
index 0000000..e3d5cdf
--- /dev/null
+++ b/glassfish-jaxb-api-2.2.3-fixbuild.patch
@@ -0,0 +1,136 @@
+--- pom.xml 2011-06-08 17:02:04.000000000 +0200
++++ pom.xml-gil 2012-01-14 15:58:24.533138357 +0100
+@@ -81,20 +81,35 @@
+
+ <dependencies>
+ <dependency>
+- <groupId>javax.xml.stream</groupId>
++ <groupId>stax</groupId>
+ <artifactId>stax-api</artifactId>
+ <version>1.0-2</version>
+ </dependency>
+- <dependency>
++ <!--dependency>
+ <groupId>javax.activation</groupId>
+ <artifactId>activation</artifactId>
+ <version>1.1</version>
+- </dependency>
++ </dependency-->
+ </dependencies>
+
++ <properties>
++ <release.spec.feedback>spec-comments at jsr222.java.net</release.spec.feedback>
++ <release.spec.date>Dec 2009</release.spec.date>
++ </properties>
++
+ <build>
+ <plugins>
+- <!-- fake out maven and install the binary artifact -->
++ <plugin>
++ <groupId>org.apache.maven.plugins</groupId>
++ <artifactId>maven-compiler-plugin</artifactId>
++ <version>2.3.2</version>
++ <configuration>
++ <source>1.5</source>
++ <target>1.5</target>
++ </configuration>
++ </plugin>
++
++ <!-- fake out maven and install the binary artifact
+ <plugin>
+ <groupId>org.jvnet.maven-antrun-extended-plugin</groupId>
+ <artifactId>maven-antrun-extended-plugin</artifactId>
+@@ -111,17 +126,90 @@
+ </configuration>
+ </execution>
+ </executions>
++ </plugin>-->
++ <plugin>
++ <groupId>org.apache.felix</groupId>
++ <artifactId>maven-bundle-plugin</artifactId>
++ <version>2.0.0</version>
++ <configuration>
++ <instructions>
++ <Bundle-Name>${project.artifactId}</Bundle-Name>
++ <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
++ <Bundle-Version>${project.version}</Bundle-Version>
++ <DynamicImport-Package>org.glassfish.hk2.osgiresourcelocator</DynamicImport-Package>
++ <Export-Package>javax.xml.bind.*;version="${project.version}"</Export-Package>
++ <Import-Package>*</Import-Package>
++ <Extension-Name>javax.xml.bind</Extension-Name>
++ </instructions>
++ </configuration>
++ <executions>
++ <execution>
++ <id>bundle-manifest</id>
++ <phase>process-classes</phase>
++ <goals>
++ <goal>manifest</goal>
++ </goals>
++ </execution>
++ </executions>
++ </plugin>
++
++ <plugin>
++ <groupId>org.apache.maven.plugins</groupId>
++ <artifactId>maven-jar-plugin</artifactId>
++ <version>2.3.2</version>
++ <configuration>
++ <archive>
++ <!-- add the generated manifest to the archive -->
++ <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
++ </archive>
++ </configuration>
++ </plugin>
++
++ <plugin>
++ <groupId>org.apache.maven.plugins</groupId>
++ <artifactId>maven-javadoc-plugin</artifactId>
++ <version>2.8</version>
++ <configuration>
++ <nodeprecated>false</nodeprecated>
++ <use>false</use>
++ <author>true</author>
++ <version>true</version>
++ <doctitle><![CDATA[<br>
++JAXB ${project.version} Runtime Library</h2>
++${project.name} specification, ${release.spec.date}<br>
++Comments to: <i><a href='mailto:${release.spec.feedback}'>${release.spec.feedback}</a></i><br>
++More information at: <i><a target='_top'
++href='http://jaxb.java.net'>http://jaxb.java.net</a></i><br>
++ <br> <br><hr width='65%'><h1>${project.name}</h1><hr width='75%'>
++<br> <br>]]>
++ </doctitle>
++ <header><![CDATA[JAXB<br>v${project.version}]]>
++ </header>
++ <bottom><![CDATA[<font size=-1>
++<br>Comments to: <a href='mailto:${release.spec.feedback}'><i>${release.spec.feedback}</i></a>
++<br>More information at: <a target='_top'
++href='http://jaxb.java.net'><i>http://jaxb.java.net</i></a>
++<p>Copyright © 2004-2011 Oracle </font>]]>
++ </bottom>
++ <detectJavaApiLink>false</detectJavaApiLink>
++ <offlineLinks>
++ <offlineLink>
++ <url>http://download.oracle.com/javase/6/docs/api/</url>
++ <location>${basedir}/offline-javadoc</location>
++ </offlineLink>
++ </offlineLinks>
++ </configuration>
+ </plugin>
++
+ </plugins>
+- <extensions>
++ <!--extensions>
+ <extension>
+ <groupId>org.jvnet.wagon-svn</groupId>
+ <artifactId>wagon-svn</artifactId>
+ <version>1.8</version>
+ </extension>
+- </extensions>
++ </extensions-->
+ </build>
+-
+ <repositories>
+ <repository>
+ <id>m2.dev.java.net</id>
diff --git a/glassfish-jaxb-api.spec b/glassfish-jaxb-api.spec
new file mode 100644
index 0000000..c5029c7
--- /dev/null
+++ b/glassfish-jaxb-api.spec
@@ -0,0 +1,108 @@
+%global oname jaxb-api
+Name: glassfish-jaxb-api
+Version: 2.2.3
+Release: 2%{?dist}
+Summary: Java Architecture for XML Binding
+Group: Development/Libraries
+License: CDDL or GPLv2 with exception
+URL: http://jaxb.java.net/
+Source0: http://download.java.net/maven/2/javax/xml/bind/jaxb-api/%{version}/jaxb-api-%{version}-sources.jar
+Source1: http://download.java.net/maven/2/javax/xml/bind/jaxb-api/%{version}/jaxb-api-%{version}.pom
+Patch0: %{name}-2.2.3-fixbuild.patch
+
+BuildRequires: java-devel >= 1:1.6.0
+BuildRequires: jpackage-utils
+
+BuildRequires: java-javadoc
+BuildRequires: bea-stax-api
+BuildRequires: forge-parent
+BuildRequires: maven
+BuildRequires: maven-compiler-plugin
+BuildRequires: maven-install-plugin
+BuildRequires: maven-jar-plugin
+BuildRequires: maven-javadoc-plugin
+BuildRequires: maven-plugin-bundle
+BuildRequires: maven-resources-plugin
+BuildRequires: maven-shared-osgi
+
+Requires: bea-stax-api
+Requires: java >= 1:1.6.0
+Requires: jpackage-utils
+BuildArch: noarch
+
+%description
+Glassfish - JAXB (JSR 222) API.
+
+%package javadoc
+Group: Documentation
+Summary: Javadoc for %{oname}
+Requires: %{name} = %{version}-%{release}
+Requires: jpackage-utils
+
+%description javadoc
+Glassfish - JAXB (JSR 222) API.
+
+This package contains javadoc for %{name}.
+
+%prep
+%setup -T -q -c
+
+# fixing incomplete source directory structure
+mkdir -p src/main/java src/main/resources
+
+(
+ cd src/main/java
+ jar -xf %{SOURCE0}
+ find . -iname 'package.html' -delete
+ rm -rf META-INF
+)
+
+cp -p %{SOURCE1} pom.xml
+
+%patch0 -p0
+
+sed -i 's|<location>${basedir}/offline-javadoc</location>|<location>%{_javadocdir}/java</location>|' pom.xml
+
+# clone source directory structure
+find src/ -type d | while read dirname ; do
+ newdirname=`echo $dirname | sed "s:src/main/java:src/main/resources:g"`
+ mkdir -p $newdirname
+done
+
+# copy Messages.properties files except *.java sources
+find src/ -type f | grep -v "\.java" | while read cpfrom ; do
+ cpto=`echo $cpfrom | sed "s:src/main/java:src/main/resources:g"`
+ cp $cpfrom $cpto
+done
+
+%build
+
+mvn-rpmbuild install javadoc:javadoc
+
+%install
+
+mkdir -p %{buildroot}%{_javadir}
+install -m 644 target/%{oname}-%{version}.jar %{buildroot}%{_javadir}/%{oname}.jar
+
+mkdir -p %{buildroot}%{_mavenpomdir}
+install -m 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{oname}.pom
+%add_maven_depmap JPP-%{oname}.pom %{oname}.jar
+
+mkdir -p %{buildroot}%{_javadocdir}/%{oname}
+cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{oname}
+
+%files
+%{_javadir}/%{oname}.jar
+%{_mavenpomdir}/JPP-%{oname}.pom
+%{_mavendepmapfragdir}/%{name}
+
+%files javadoc
+%{_javadocdir}/%{oname}
+
+%changelog
+* Tue Jan 24 2012 gil cattaneo <puntogil at libero.it> 2.2.3-2
+- revert to 2.2.3 (stable release)
+- fix License field
+
+* Fri Jul 22 2011 gil cattaneo <puntogil at libero.it> 2.2.3-1
+- initial rpm
\ No newline at end of file
diff --git a/jaxb-api-2.2.3.pom b/jaxb-api-2.2.3.pom
new file mode 100644
index 0000000..cf95b64
--- /dev/null
+++ b/jaxb-api-2.2.3.pom
@@ -0,0 +1,149 @@
+<?xml version="1.0"?>
+<!--
+
+ DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
+
+ Copyright (c) 2010 Oracle and/or its affiliates. All rights reserved.
+
+ The contents of this file are subject to the terms of either the GNU
+ General Public License Version 2 only ("GPL") or the Common Development
+ and Distribution License("CDDL") (collectively, the "License"). You
+ may not use this file except in compliance with the License. You can
+ obtain a copy of the License at
+ https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html
+ or packager/legal/LICENSE.txt. See the License for the specific
+ language governing permissions and limitations under the License.
+
+ When distributing the software, include this License Header Notice in each
+ file and include the License file at packager/legal/LICENSE.txt.
+
+ GPL Classpath Exception:
+ Oracle designates this particular file as subject to the "Classpath"
+ exception as provided by Oracle in the GPL Version 2 section of the License
+ file that accompanied this code.
+
+ Modifications:
+ If applicable, add the following below the License Header, with the fields
+ enclosed by brackets [] replaced by your own identifying information:
+ "Portions Copyright [year] [name of copyright owner]"
+
+ Contributor(s):
+ If you wish your version of this file to be governed by only the CDDL or
+ only the GPL Version 2, indicate your decision by adding "[Contributor]
+ elects to include this software in this distribution under the [CDDL or GPL
+ Version 2] license." If you don't indicate a single choice of license, a
+ recipient has the option to distribute your version of this file under
+ either the CDDL, the GPL Version 2 or to extend the choice of license to
+ its licensees as provided above. However, if you add GPL Version 2 code
+ and therefore, elected the GPL Version 2 license, then the option applies
+ only if the new code is made subject to such option by the copyright
+ holder.
+
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>javax.xml.bind</groupId>
+ <artifactId>jaxb-api</artifactId>
+ <version>2.2.3</version>
+ <packaging>jar</packaging>
+
+ <name>JAXB API bundle for GlassFish V3</name>
+ <url>http://jaxb.java.net/</url>
+
+ <organization>
+ <name>Oracle Corporation</name>
+ <url>http://www.oracle.com/</url>
+ </organization>
+
+ <licenses>
+ <license>
+ <name>CDDL 1.1</name>
+ <url>https://glassfish.java.net/public/CDDL+GPL_1_1.html</url>
+ <distribution>repo</distribution>
+ </license>
+ <license>
+ <name>GPL2 w/ CPE</name>
+ <url>https://glassfish.java.net/public/CDDL+GPL_1_1.html</url>
+ <distribution>repo</distribution>
+ </license>
+ </licenses>
+
+ <scm>
+ <url>https://svn.java.net/svn/jaxb~version2/jaxb-ri</url>
+ </scm>
+
+ <description>
+ JAXB (JSR 222) API
+ </description>
+
+ <dependencies>
+ <dependency>
+ <groupId>javax.xml.stream</groupId>
+ <artifactId>stax-api</artifactId>
+ <version>1.0-2</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.activation</groupId>
+ <artifactId>activation</artifactId>
+ <version>1.1</version>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <!-- fake out maven and install the binary artifact -->
+ <plugin>
+ <groupId>org.jvnet.maven-antrun-extended-plugin</groupId>
+ <artifactId>maven-antrun-extended-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <tasks>
+ <attachArtifact file="jaxb-api.jar"/>
+ </tasks>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ <extensions>
+ <extension>
+ <groupId>org.jvnet.wagon-svn</groupId>
+ <artifactId>wagon-svn</artifactId>
+ <version>1.8</version>
+ </extension>
+ </extensions>
+ </build>
+
+ <repositories>
+ <repository>
+ <id>m2.dev.java.net</id>
+ <url>http://download.java.net/maven/2</url>
+ <layout>default</layout>
+ </repository>
+ </repositories>
+
+ <pluginRepositories>
+ <pluginRepository>
+ <id>maven2-repository.dev.java.net</id>
+ <name>Java.net Repository for Maven</name>
+ <url>http://download.java.net/maven/2/</url>
+ </pluginRepository>
+ </pluginRepositories>
+
+ <distributionManagement>
+ <repository>
+ <uniqueVersion>false</uniqueVersion>
+ <id>java.net-maven2-repository</id>
+ <url>svn:https://svn.java.net/svn/maven2-repository~svn/trunk/repository</url>
+ </repository>
+ </distributionManagement>
+
+</project>
diff --git a/sources b/sources
index e69de29..b6846b3 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+87c95083c6d18d66ec7a68268468d6a4 jaxb-api-2.2.3-sources.jar
More information about the scm-commits
mailing list