Blame SPECS/glassfish-jaxb.spec

558672
Name: glassfish-jaxb
558672
Version: 2.2.5
558672
Release: 6%{?dist}
558672
Summary: JAXB Reference Implementation
558672
558672
Group: Development/Libraries
558672
License: CDDL and GPLv2 with exceptions
558672
URL: http://jaxb.java.net
558672
558672
# svn export https://svn.java.net/svn/jaxb~version2/tags/jaxb-2_2_5/ glassfish-jaxb-2.2.5
558672
# find glassfish-jaxb-2.2.5/ -name '*.class' -delete
558672
# find glassfish-jaxb-2.2.5/ -name '*.jar' -delete
558672
# find glassfish-jaxb-2.2.5/ -name '*.zip' -delete
558672
# find glassfish-jaxb-2.2.5/ -name '*.dll' -delete
558672
# tar czf glassfish-jaxb-2.2.5.tar.gz glassfish-jaxb-2.2.5
558672
Source0: %{name}-%{version}.tar.gz
558672
558672
# JAXB implementation POM:
558672
Source1: http://repo1.maven.org/maven2/com/sun/xml/bind/jaxb-impl/2.2.5/jaxb-impl-2.2.5.pom
558672
558672
# JAXB XJC POM:
558672
Source2: http://repo1.maven.org/maven2/com/sun/xml/bind/jaxb-xjc/2.2.5/jaxb-xjc-2.2.5.pom
558672
558672
# Ant build file used to generate the Javadoc (this is not part of the original
558672
# source but written on purpose for the packaging):
558672
Source3: build-javadoc.xml
558672
558672
# Use resolver from xml-commons-resolver instead of an internal rebundled one:
558672
Patch0: %{name}-dont-use-internal-resolver.patch
558672
558672
# Don't try to generate the 1.0 runtime:
558672
Patch1: %{name}-dont-generate-1.0-runtime.patch
558672
558672
# Removing Jing driver because of incompatibility issues:
558672
Patch2: %{name}-dont-generate-jing-rnc-driver.patch
558672
558672
# Don't bundle the contents of other jar files in the XJC compiler jar file:
558672
Patch3: %{name}-dont-bundle-other-jars.patch
558672
558672
# Remove the class-path entry from the generated manifest files:
558672
Patch4: %{name}-remove-classpath-from-manifests.patch
558672
558672
# Patch the POM files to include the dependencies corresponding to the jar
558672
# files that we aren't bundling within the jat files of this package:
558672
Patch5: %{name}-add-dependencies.patch
558672
558672
# Don't use the prebuilt javadocs:
558672
Patch6: %{name}-dont-use-prebuilt-javadocs.patch
558672
558672
# Don't build the examples as they need additional dependencies:
558672
Patch7: %{name}-dont-build-examples.patch
558672
558672
BuildArch: noarch
558672
558672
BuildRequires: jpackage-utils
558672
BuildRequires: java-devel
558672
558672
BuildRequires: ant
558672
BuildRequires: codemodel
558672
BuildRequires: istack-commons
558672
BuildRequires: relaxngcc
558672
BuildRequires: xml-commons-resolver
558672
BuildRequires: txw2
558672
BuildRequires: relaxngDatatype
558672
BuildRequires: glassfish-dtd-parser
558672
BuildRequires: glassfish-jaxb-api
558672
BuildRequires: glassfish-fastinfoset
558672
BuildRequires: jing
558672
BuildRequires: stax-ex
558672
BuildRequires: isorelax
558672
BuildRequires: xsom
558672
BuildRequires: rngom
558672
558672
Requires: glassfish-dtd-parser
558672
Requires: xml-commons-resolver
558672
Requires: xsom
558672
Requires: rngom
558672
Requires: isorelax
558672
Requires: jing
558672
Requires: stax-ex
558672
Requires: glassfish-fastinfoset
558672
Requires: glassfish-jaxb-api
558672
Requires: relaxngDatatype
558672
Requires: txw2
558672
Requires: istack-commons
558672
Requires: codemodel
558672
Requires: jpackage-utils
558672
Requires: java
558672
558672
558672
%description
558672
GlassFish JAXB Reference Implementation.
558672
558672
558672
%package javadoc
558672
Summary: Javadocs for %{name}
558672
Group: Documentation
558672
Requires: jpackage-utils
558672
558672
558672
%description javadoc
558672
This package contains the API documentation for %{name}.
558672
558672
558672
%prep
558672
558672
# Unpack the sources:
558672
%setup -q
558672
558672
# Put the POM files in place (we do this before patching because we need to
558672
# patch the POMs in order to add the dependencies for the artifacts that we are
558672
# not bundling):
558672
cp %{SOURCE1} jaxb-impl.pom
558672
cp %{SOURCE2} jaxb-xjc.pom
558672
558672
# Apply the patches:
558672
%patch0 -p1
558672
%patch1 -p1
558672
%patch2 -p1
558672
%patch3 -p1
558672
%patch4 -p1
558672
%patch5 -p1
558672
%patch6 -p1
558672
%patch7 -p1
558672
558672
# Link the libraries where the build script expects them:
558672
ln -s $(build-classpath codemodel) tools/lib/rebundle/compiler/codemodel.jar
558672
ln -s $(build-classpath glassfish-dtd-parser) tools/lib/rebundle/compiler/dtd-parser.jar
558672
ln -s $(build-classpath istack-commons-tools) tools/lib/rebundle/compiler/istack-commons-tools.jar
558672
ln -s $(build-classpath relaxngDatatype) tools/lib/rebundle/compiler/relaxngDatatype.jar
558672
ln -s $(build-classpath xml-commons-resolver) tools/lib/rebundle/compiler/resolver.jar
558672
ln -s $(build-classpath rngom) tools/lib/rebundle/compiler/rngom.jar
558672
ln -s $(build-classpath xsom) tools/lib/rebundle/compiler/xsom.jar
558672
ln -s $(build-classpath isorelax) tools/lib/rebundle/runtime/isorelax.jar
558672
ln -s $(build-classpath msv-msv) tools/lib/rebundle/runtime/msv.jar
558672
ln -s $(build-classpath relaxngDatatype) tools/lib/rebundle/runtime/relaxngDatatype.jar
558672
ln -s $(build-classpath istack-commons-runtime) tools/lib/rebundle/runtime2/istack-commons-runtime.jar
558672
ln -s $(build-classpath txw2) tools/lib/rebundle/runtime2/txw2.jar
558672
ln -s $(build-classpath jaxb-api) tools/lib/redist/jaxb-api.jar
558672
ln -s %{_javadir}/glassfish-fastinfoset/FastInfoset.jar tools/lib/util/FastInfoset.jar
558672
ln -s $(build-classpath args4j) tools/lib/util/args4j.jar
558672
ln -s $(build-classpath codemodel-annotation-compiler) tools/lib/util/codemodel-annotation-compiler.jar
558672
ln -s $(build-classpath dom4j) tools/lib/util/dom4j.jar
558672
ln -s $(build-classpath jing) tools/lib/util/jing.jar
558672
ln -s $(build-classpath relaxngcc) tools/lib/util/relaxngcc.jar
558672
ln -s $(build-classpath stax-ex) tools/lib/util/stax-ex.jar
558672
ln -s $(build-classpath txwc2) tools/lib/util/txwc2.jar
558672
558672
# Put the Javadoc build file in place (no patching needed here, as this is not
558672
# part of the original source):
558672
cp %{SOURCE3} build-javadoc.xml
558672
558672
558672
%build
558672
558672
# Build the binaries:
558672
ant \
558672
  -Dbuild.sysclasspath=last \
558672
  -Dbuild.number=1 \
558672
  dist
558672
558672
# Build the javadoc for the runtime and the compiler:
558672
ant \
558672
  -Dbuild.sysclasspath=last \
558672
  -f build-javadoc.xml
558672
558672
558672
%install
558672
558672
# Jar files:
558672
install -d -m 755 %{buildroot}%{_javadir}/%{name}
558672
install -m 644 dist/lib/jaxb-impl.jar %{buildroot}%{_javadir}/%{name}/jaxb-impl.jar
558672
install -m 644 dist/lib/jaxb-xjc.jar %{buildroot}%{_javadir}/%{name}/jaxb-xjc.jar
558672
install -m 644 tools/pretty-printer/build/pretty-printer.jar %{buildroot}%{_javadir}/%{name}/pretty-printer.jar
558672
install -m 644 tools/xmllint/build/xmllint.jar %{buildroot}%{_javadir}/%{name}/xmllint.jar
558672
558672
# POM files:
558672
install -d -m 755 %{buildroot}%{_mavenpomdir}
558672
install -m 644 jaxb-impl.pom %{buildroot}%{_mavenpomdir}/JPP.%{name}-jaxb-impl.pom
558672
install -m 644 jaxb-xjc.pom  %{buildroot}%{_mavenpomdir}/JPP.%{name}-jaxb-xjc.pom
558672
558672
# Javadoc files:
558672
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
558672
cp -rp apidocs/* %{buildroot}%{_javadocdir}/%{name}/.
558672
558672
# Dependencies map:
558672
%add_maven_depmap JPP.%{name}-jaxb-impl.pom %{name}/jaxb-impl.jar
558672
%add_maven_depmap JPP.%{name}-jaxb-xjc.pom %{name}/jaxb-xjc.jar
558672
558672
558672
%files
558672
%{_mavenpomdir}/*
558672
%{_mavendepmapfragdir}/*
558672
%{_javadir}/*
558672
%doc License.txt
558672
%doc License.html
558672
558672
558672
%files javadoc
558672
%{_javadocdir}/%{name}
558672
%doc License.txt
558672
%doc License.html
558672
558672
558672
%changelog
558672
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.2.5-6
558672
- Mass rebuild 2013-12-27
558672
558672
* Fri Oct 25 2013 Ade Lee <alee@redhat.com> - 2.2.5-5
558672
- Resolves rhbz#1017802 - glassfish-jaxb: mock build failed on RHEL 7
558672
558672
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.5-4
558672
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
558672
558672
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.5-3
558672
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
558672
558672
* Tue Mar 13 2012 Juan Hernandez <juan.hernandez@redhat.com> 2.2.5-2
558672
- Add missing xsom and rngom dependencies to the POM files
558672
558672
* Sat Mar 10 2012 Juan Hernandez <juan.hernandez@redhat.com> 2.2.5-1
558672
- Updated to upstream version 2.2.5
558672
- Removed classpath from manifest files
558672
558672
* Wed Mar 7 2012 Juan Hernandez <juan.hernandez@redhat.com> 2.2.4u1-4
558672
- Updated to reflect the change from glassfish-fi to glassfish-fastinfoset
558672
558672
* Wed Feb 22 2012 Juan Hernandez <juan.hernandez@redhat.com> 2.2.4u1-3
558672
- Updated to reflect the changes of the jar names in txw2
558672
558672
* Wed Feb 22 2012 Juan Hernandez <juan.hernandez@redhat.com> 2.2.4u1-2
558672
- Cleanup of the spec file
558672
558672
* Sat Jan 21 2012 Marek Goldmann <mgoldman@redhat.com> 2.2.4u1-1
558672
- Initial packaging
558672