diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..501ffb7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/jaxb-api-2.2.7-sources.jar diff --git a/.glassfish-jaxb-api.metadata b/.glassfish-jaxb-api.metadata new file mode 100644 index 0000000..27f3d43 --- /dev/null +++ b/.glassfish-jaxb-api.metadata @@ -0,0 +1 @@ +5fb055d3773b48d759d43290f33e5533b25d2d62 SOURCES/jaxb-api-2.2.7-sources.jar diff --git a/SOURCES/glassfish-jaxb-api-2.2.6-osgi-support.patch b/SOURCES/glassfish-jaxb-api-2.2.6-osgi-support.patch new file mode 100644 index 0000000..4f90940 --- /dev/null +++ b/SOURCES/glassfish-jaxb-api-2.2.6-osgi-support.patch @@ -0,0 +1,70 @@ +--- pom.xml 2011-12-01 09:20:20.000000000 +0100 ++++ pom.xml-gil 2012-04-27 10:24:01.741796876 +0200 +@@ -119,17 +119,61 @@ + + + ++ org.apache.felix ++ maven-bundle-plugin ++ 2.0.0 ++ ++ ++ ${project.description} bundled for OSGi distribution ++ ${project.artifactId} ++ ${project.artifactId} ++ org.glassfish.hk2.osgiresourcelocator ++ javax.xml.bind.*;version="${project.version}" ++ javax.activation, ++ javax.xml.bind;version="${project.version}", ++ javax.xml.bind.annotation;version="${project.version}", ++ javax.xml.bind.annotation.adapters;version="${project.version}", ++ javax.xml.bind.attachment;version="${project.version}", ++ javax.xml.bind.helpers;version="${project.version}", ++ javax.xml.bind.util;version="${project.version}", ++ javax.xml.datatype, ++ javax.xml.namespace, ++ javax.xml.parsers, ++ javax.xml.stream, ++ javax.xml.transform, ++ javax.xml.transform.dom, ++ javax.xml.transform.sax, ++ javax.xml.transform.stream, ++ javax.xml.validation, ++ org.w3c.dom, ++ org.xml.sax, ++ org.xml.sax.ext, ++ org.xml.sax.helpers ++ javax.xml.bind ++ ${project.name} ++ ${project.organization.name} ++ ${project.version} ++ ++ ++ ++ ++ bundle-manifest ++ process-classes ++ ++ manifest ++ ++ ++ ++ ++ ++ + org.apache.maven.plugins + maven-jar-plugin + 2.3.1 + + +- +- javax.xml.bind +- +- +- true +- ++ ++ ${project.build.outputDirectory}/META-INF/MANIFEST.MF + + + diff --git a/SOURCES/jaxb-api-2.2.7.pom b/SOURCES/jaxb-api-2.2.7.pom new file mode 100644 index 0000000..0ba7e86 --- /dev/null +++ b/SOURCES/jaxb-api-2.2.7.pom @@ -0,0 +1,207 @@ + + + + + + + net.java + jvnet-parent + 1 + + + 4.0.0 + javax.xml.bind + jaxb-api + 2.2.7 + jar + + Java Architecture for XML Binding + JAXB (JSR 222) API + http://jaxb.java.net/ + + + Oracle Corporation + http://www.oracle.com/ + + + + + Martin Grebac + martin.grebac@oracle.com + Oracle Corporation + + + + + + 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 + + + + + scm:svn:http://svn.java.net/svn/jsr222~svn/tags/jaxb-api-2.2.7 + scm:svn:https://svn.java.net/svn/jsr222~svn/tags/jaxb-api-2.2.7 + http://java.net/projects/jsr222/sources/svn/show/tags/jaxb-api-2.2.7 + + + + spec-comments@jsr222.java.net + Dec 2009 + + + + + + + src/main/java + + **/*.java + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 2.0.2 + + 1.5 + 1.5 + + + + + org.apache.maven.plugins + maven-jar-plugin + 2.3.1 + + + + javax.xml.bind + + + true + + + + + + + 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 + + + + + + + + + + + + release-sign-artifacts + + + performRelease + true + + + + + + org.apache.maven.plugins + maven-gpg-plugin + 1.1 + + + sign-artifacts + verify + + sign + + + + + + + + + + diff --git a/SPECS/glassfish-jaxb-api.spec b/SPECS/glassfish-jaxb-api.spec new file mode 100644 index 0000000..1c95b63 --- /dev/null +++ b/SPECS/glassfish-jaxb-api.spec @@ -0,0 +1,119 @@ +%global oname jaxb-api +Name: glassfish-jaxb-api +Version: 2.2.7 +Release: 4%{?dist} +Summary: Java Architecture for XML Binding +Group: Development/Libraries +License: CDDL or GPLv2 with exception +URL: http://jaxb.java.net/ +# jaxb api and impl have different version +# svn export https://svn.java.net/svn/jaxb~version2/tags/jaxb-2_2_6/tools/lib/redist/jaxb-api-src.zip + +Source0: http://repo1.maven.org/maven2/javax/xml/bind/%{oname}/%{version}/%{oname}-%{version}-sources.jar +Source1: http://repo1.maven.org/maven2/javax/xml/bind/%{oname}/%{version}/%{oname}-%{version}.pom + +Patch0: %{name}-2.2.6-osgi-support.patch + +BuildRequires: java-devel >= 1:1.6.0 +BuildRequires: jpackage-utils + +BuildRequires: java-javadoc +BuildRequires: jvnet-parent + +BuildRequires: maven-local +BuildRequires: maven-compiler-plugin +BuildRequires: maven-enforcer-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 +BuildRequires: maven-surefire-plugin + +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 + +( + cd src/main/java + unzip -qq %{SOURCE0} + rm -rf META-INF +) + +cp -p %{SOURCE1} pom.xml +%patch0 -p0 + +sed -i 's|${basedir}/offline-javadoc|%{_javadocdir}/java|' pom.xml + +%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 -pm 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 +* Fri Dec 27 2013 Daniel Mach - 2.2.7-4 +- Mass rebuild 2013-12-27 + +* Wed Feb 13 2013 Fedora Release Engineering - 2.2.7-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Wed Feb 06 2013 Java SIG - 2.2.7-2 +- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild +- Replace maven BuildRequires with maven-local + +* Sat Aug 04 2012 gil cattaneo 2.2.7-1 +- update to 2.2.7 + +* Thu Jul 19 2012 Fedora Release Engineering - 2.2.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri Apr 27 2012 gil cattaneo 2.2.6-1 +- update to 2.2.6 +- remove Build/Requires: bea-stax-api + +* 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