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 @@ + + + +- javax.xml.stream ++ stax + stax-api + 1.0-2 + +- ++ + + ++ ++ spec-comments@jsr222.java.net ++ Dec 2009 ++ ++ + + +- ++ ++ org.apache.maven.plugins ++ maven-compiler-plugin ++ 2.3.2 ++ ++ 1.5 ++ 1.5 ++ ++ ++ ++ ++ ++ org.apache.felix ++ maven-bundle-plugin ++ 2.0.0 ++ ++ ++ ${project.artifactId} ++ ${project.artifactId} ++ ${project.version} ++ org.glassfish.hk2.osgiresourcelocator ++ javax.xml.bind.*;version="${project.version}" ++ * ++ javax.xml.bind ++ ++ ++ ++ ++ bundle-manifest ++ process-classes ++ ++ manifest ++ ++ ++ ++ ++ ++ ++ org.apache.maven.plugins ++ maven-jar-plugin ++ 2.3.2 ++ ++ ++ ++ ${project.build.outputDirectory}/META-INF/MANIFEST.MF ++ ++ ++ ++ ++ ++ org.apache.maven.plugins ++ maven-javadoc-plugin ++ 2.8 ++ ++ false ++ false ++ true ++ true ++ ++JAXB ${project.version} Runtime Library ++${project.name} specification, ${release.spec.date}
++Comments to: ${release.spec.feedback}
++More information at: http://jaxb.java.net
++ 
 

${project.name}


++
 
]]> ++
++
v${project.version}]]> ++
++ ++
Comments to: ${release.spec.feedback} ++
More information at: http://jaxb.java.net ++

Copyright © 2004-2011 Oracle ]]> ++ ++ false ++ ++ ++ http://download.oracle.com/javase/6/docs/api/ ++ ${basedir}/offline-javadoc ++ ++ ++ + ++ + +- ++ + +- + + + m2.dev.java.net 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|${basedir}/offline-javadoc|%{_javadocdir}/java|' 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 2.2.3-2 +- revert to 2.2.3 (stable release) +- fix License field + +* Fri Jul 22 2011 gil cattaneo 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 @@ + + + + + 4.0.0 + javax.xml.bind + jaxb-api + 2.2.3 + jar + + JAXB API bundle for GlassFish V3 + http://jaxb.java.net/ + + + Oracle Corporation + http://www.oracle.com/ + + + + + CDDL 1.1 + https://glassfish.java.net/public/CDDL+GPL_1_1.html + repo + + + GPL2 w/ CPE + https://glassfish.java.net/public/CDDL+GPL_1_1.html + repo + + + + + https://svn.java.net/svn/jaxb~version2/jaxb-ri + + + + JAXB (JSR 222) API + + + + + javax.xml.stream + stax-api + 1.0-2 + + + javax.activation + activation + 1.1 + + + + + + + + org.jvnet.maven-antrun-extended-plugin + maven-antrun-extended-plugin + + + package + + run + + + + + + + + + + + + + org.jvnet.wagon-svn + wagon-svn + 1.8 + + + + + + + m2.dev.java.net + http://download.java.net/maven/2 + default + + + + + + maven2-repository.dev.java.net + Java.net Repository for Maven + http://download.java.net/maven/2/ + + + + + + false + java.net-maven2-repository + svn:https://svn.java.net/svn/maven2-repository~svn/trunk/repository + + + + 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