6e5970
Name:          xml-commons-apis
6e5970
Version:       1.4.01
21d5ba
Release:       16%{?dist}
6e5970
Summary:       APIs for DOM, SAX, and JAXP
6e5970
License:       ASL 2.0 and W3C and Public Domain
6e5970
URL:           http://xml.apache.org/commons/
6e5970
6e5970
# From source control because the published tarball doesn't include some docs:
6e5970
#   svn export http://svn.apache.org/repos/asf/xml/commons/tags/xml-commons-external-1_4_01/java/external/
6e5970
#   tar czf xml-commons-external-1.4.01-src.tar.gz external
6e5970
Source0:       xml-commons-external-%{version}-src.tar.gz
6e5970
Source1:       %{name}-MANIFEST.MF
6e5970
Source2:       %{name}-ext-MANIFEST.MF
6e5970
Source3:       http://repo1.maven.org/maven2/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.pom
6e5970
Source4:       http://repo1.maven.org/maven2/xml-apis/xml-apis-ext/1.3.04/xml-apis-ext-1.3.04.pom
6e5970
6e5970
BuildArch:     noarch
6e5970
6e5970
BuildRequires: java-devel >= 1:1.6.0
6e5970
BuildRequires: jpackage-utils
6e5970
BuildRequires: ant
6e5970
BuildRequires: zip
6e5970
Requires:      java
6e5970
Requires:      jpackage-utils
6e5970
6e5970
Obsoletes:     xml-commons < %{version}-%{release}
6e5970
Provides:      xml-commons = %{version}-%{release}
6e5970
6e5970
# TODO: Ugh, this next line should be dropped since it actually provides JAXP 1.4 now...
6e5970
Provides:      xml-commons-jaxp-1.3-apis = %{version}-%{release}
6e5970
6e5970
%description
6e5970
xml-commons-apis is designed to organize and have common packaging for
6e5970
the various externally-defined standard interfaces for XML. This
6e5970
includes the DOM, SAX, and JAXP.
6e5970
6e5970
%package manual
6e5970
Summary:       Manual for %{name}
6e5970
6e5970
%description manual
6e5970
%{summary}.
6e5970
6e5970
%package javadoc
6e5970
Summary:       Javadoc for %{name}
6e5970
6e5970
%description javadoc
6e5970
%{summary}.
6e5970
6e5970
%prep
6e5970
%setup -q -n external
6e5970
# Make sure upstream hasn't sneaked in any jars we don't know about
6e5970
find -name '*.class' -exec rm -f '{}' \;
6e5970
find -name '*.jar' -exec rm -f '{}' \;
6e5970
6e5970
# Fix file encodings
6e5970
iconv -f iso8859-1 -t utf-8 LICENSE.dom-documentation.txt > \
6e5970
  LICENSE.dom-doc.temp && mv -f LICENSE.dom-doc.temp LICENSE.dom-documentation.txt
6e5970
iconv -f iso8859-1 -t utf-8 LICENSE.dom-software.txt > \
6e5970
  LICENSE.dom-sof.temp && mv -f LICENSE.dom-sof.temp LICENSE.dom-software.txt
6e5970
6e5970
# remove bogus section from poms
6e5970
cp %{SOURCE3} %{SOURCE4} .
6e5970
sed -i '/distributionManagement/,/\/distributionManagement/ {d}' *.pom
6e5970
6e5970
%build
6e5970
ant -Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5 jar javadoc
6e5970
6e5970
%install
6e5970
# inject OSGi manifests
6e5970
mkdir -p META-INF
6e5970
cp -p %{SOURCE1} META-INF/MANIFEST.MF
6e5970
touch META-INF/MANIFEST.MF
6e5970
zip -u build/xml-apis.jar META-INF/MANIFEST.MF
6e5970
cp -p %{SOURCE2} META-INF/MANIFEST.MF
6e5970
touch META-INF/MANIFEST.MF
6e5970
zip -u build/xml-apis-ext.jar META-INF/MANIFEST.MF
6e5970
6e5970
# Jars
6e5970
install -pD -T build/xml-apis.jar %{buildroot}%{_javadir}/%{name}.jar
6e5970
install -pDm 644 xml-apis-[0-9]*.pom %{buildroot}/%{_mavenpomdir}/JPP-%{name}.pom
6e5970
%add_maven_depmap -a xerces:dom3-xml-apis
6e5970
6e5970
install -pD -T build/xml-apis-ext.jar %{buildroot}%{_javadir}/%{name}-ext.jar
6e5970
install -pDm 644 xml-apis-ext*.pom %{buildroot}/%{_mavenpomdir}/JPP-%{name}-ext.pom
6e5970
%add_maven_depmap JPP-%{name}-ext.pom %{name}-ext.jar
6e5970
6e5970
# for better interoperability with the jpp apis packages
6e5970
ln -sf %{name}.jar %{buildroot}%{_javadir}/jaxp13.jar
6e5970
ln -sf %{name}.jar %{buildroot}%{_javadir}/jaxp.jar
6e5970
ln -sf %{name}.jar %{buildroot}%{_javadir}/xml-commons-jaxp-1.3-apis.jar
6e5970
6e5970
# Javadocs
6e5970
mkdir -p %{buildroot}%{_javadocdir}/%{name}
6e5970
cp -pr build/docs/javadoc/* %{buildroot}%{_javadocdir}/%{name}
6e5970
6e5970
# prevent apis javadoc from being included in doc
6e5970
rm -rf build/docs/javadoc
6e5970
6e5970
6e5970
%files
6e5970
%doc LICENSE NOTICE
6e5970
%doc LICENSE.dom-documentation.txt README.dom.txt
6e5970
%doc LICENSE.dom-software.txt LICENSE.sac.html
6e5970
%doc LICENSE.sax.txt README-sax  README.sax.txt
6e5970
%{_javadir}/*
6e5970
%{_mavendepmapfragdir}/%{name}
6e5970
%{_mavenpomdir}/JPP-%{name}.pom
6e5970
%{_mavenpomdir}/JPP-%{name}-ext.pom
6e5970
6e5970
%files manual
6e5970
%doc build/docs/*
6e5970
6e5970
%files javadoc
6e5970
%{_javadocdir}/*
6e5970
6e5970
%changelog
21d5ba
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.4.01-16
21d5ba
- Mass rebuild 2013-12-27
21d5ba
6e5970
* Thu Nov 07 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.4.01-15
6e5970
- Use add_maven_depmap instead of deprecated
6e5970
- Resolves: rhbz#1027721
6e5970
6e5970
* Fri Jul 12 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4.01-14
6e5970
- Remove workaround for rpm bug #646523
6e5970
- Update to current packaging guidelines
6e5970
6e5970
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4.01-13
6e5970
- Rebuild to regenerate API documentation
6e5970
- Resolves: CVE-2013-1571
6e5970
6e5970
* Mon May 20 2013 Krzysztof Daniel <kdaniel@redhat.com> 1.4.01-12
6e5970
- Update manifest to match Eclipse version (Resolved: rhbz#964039).
6e5970
6e5970
* Mon Mar  4 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4.01-11
6e5970
- Add Require-Bundle: system.bundle to manifest
6e5970
- Resolves: rhbz#917659
6e5970
6e5970
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.01-10
6e5970
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
6e5970
6e5970
* Fri Nov  2 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4.01-9
6e5970
- Add additional maven depmap
6e5970
6e5970
* Fri Aug 17 2012 Andy Grimm <agrimm@gmail.com> - 1.4.01-8
6e5970
- Remove osgi(system.bundle) requirement from manifest
6e5970
6e5970
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.01-7
6e5970
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
6e5970
6e5970
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.01-6
6e5970
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
6e5970
6e5970
* Fri Oct 21 2011 Orion Poplawski <orion@cora.nwra.com> - 1.4.01-5
6e5970
- Add missing packages to manifest - javax.xml.stream, javax.xml.stream.events,
6e5970
  javax.xml.stream.util, javax.xml.transform.stax (bug #743360)
6e5970
6e5970
* Fri May  6 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.4.01-4
6e5970
- Add maven metadata
6e5970
- Few guidelines tweaks (buildroot, clean, defattr)
6e5970
- Versionless jars & javadocs
6e5970
6e5970
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.01-3
6e5970
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
6e5970
6e5970
* Sun Dec 12 2010 Mat Booth <fedora@matbooth.co.uk> 1.4.01-2
6e5970
- Fix FTBFS and rpmlint warnings.
6e5970
- Don't package javadoc in manual package.
6e5970
6e5970
* Sat Jan 9 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.4.01-1
6e5970
- Update to 1.4.01.
6e5970
6e5970
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.3.04-3.5
6e5970
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
6e5970
6e5970
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.3.04-2.5
6e5970
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
6e5970
6e5970
* Fri Feb 6 2009 Alexander Kurtakov <akurtako@redhat.com> 0:1.3.04-1.5
6e5970
- Add osgi metadata to the ext jar too.
6e5970
6e5970
* Fri Jan 30 2009 Alexander Kurtakov <akurtako@redhat.com> 0:1.3.04-1.4
6e5970
- Add osgi metadata.
6e5970
6e5970
* Fri Sep 19 2008 Matt Wringe <mwringe@redhat.com> - 0:1.3.04-1.3
6e5970
- Remove natively compiled bits from the javadoc package (462809)
6e5970
6e5970
* Thu Jul 10 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:1.3.04-1.2
6e5970
- drop repotag
6e5970
- fix license tag
6e5970
6e5970
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0:1.3.04-1jpp.1
6e5970
- Autorebuild for GCC 4.3
6e5970
6e5970
* Tue Mar 06 2007 Matt Wringe <mwringe@redhat.com> - 0:1.3.04-0jpp.1
6e5970
- Update to 1.3.04
6e5970
6e5970
* Tue Mar 06 2007 Matt Wringe <mwringe@redhat.com> - 0:1.3.03-0jpp.1
6e5970
- Split xml-commons package up into 2 separate package: xml-commons-apis
6e5970
  and xml-commons-which.
6e5970
6e5970
* Mon Aug 21 2006 Fernando Nasser <fnasser@redhat.com> - 0:1.3.02-0.b2.7jpp.10
6e5970
- Add missing Requires for post and postun javadoc sections
6e5970
6e5970
* Sat Jul 22 2006 Jakub Jelinek <jakub@redhat.com> - 0:1.3.02-0.b2.7jpp_9fc
6e5970
- Rebuilt
6e5970
6e5970
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0:1.3.02-0.b2.7jpp_8fc
6e5970
- rebuild
6e5970
6e5970
* Mon Mar  6 2006 Jeremy Katz <katzj@redhat.com> - 0:1.3.02-0.b2.7jpp_7fc
6e5970
- stop scriptlet spew
6e5970
6e5970
* Wed Feb 22 2006 Rafael Schloming <rafaels@redhat.com> - 0:1.3.02-0.b2.7jpp_6fc
6e5970
- Updated to 1.3
6e5970
6e5970
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0:1.0-0.b2.7jpp_5fc
6e5970
- bump again for double-long bug on ppc(64)
6e5970
6e5970
* Wed Dec 21 2005 Jesse Keating <jkeating@redhat.com> 0:1.0-0.b2.7jpp_4fc
6e5970
- rebuilt again
6e5970
6e5970
* Tue Dec 13 2005 Jesse Keating <jkeating@redhat.com>
6e5970
- rebuilt for new gcj
6e5970
6e5970
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
6e5970
- rebuilt
6e5970
6e5970
* Fri Jul 15 2005 Gary Benson <gbenson@redhat.com> - 0:1.0-0.b2.7jpp_3fc
6e5970
- Build on ia64, ppc64, s390 and s390x.
6e5970
- Switch to aot-compile-rpm (also BC-compiles the which jar).
6e5970
6e5970
* Wed Jun 15 2005 Gary Benson <gbenson@redhat.com> - 0:1.0-0.b2.7jpp_2fc
6e5970
- Remove all prebuilt stuff from the tarball.
6e5970
6e5970
* Thu May 26 2005 Gary Benson <gbenson@redhat.com> - 0:1.0-0.b2.7jpp_1fc
6e5970
- Upgrade to 1.0-0.b2.7jpp.
6e5970
- Remove now-unnecessary workaround for #130162.
6e5970
- Rearrange how BC-compiled stuff is built and installed.
6e5970
6e5970
* Mon May 23 2005 Gary Benson <gbenson@redhat.com> - 0:1.0-0.b2.6jpp_13fc
6e5970
- Add alpha to the list of build architectures (#157522).
6e5970
- Use absolute paths for rebuild-gcj-db.
6e5970
6e5970
* Thu May  5 2005 Gary Benson <gbenson@redhat.com> - 0:1.0-0.b2.6jpp_12fc
6e5970
- Add dependencies for %%post and %%postun scriptlets (#156901).
6e5970
6e5970
* Tue May  3 2005 Gary Benson <gbenson@redhat.com> - 0:1.0-0.b2.6jpp_11fc
6e5970
- BC-compile the API jar.
6e5970
6e5970
* Tue Apr 26 2005 Gary Benson <gbenson@redhat.com> - 0:1.0-0.b2.6jpp_10fc
6e5970
- Remove gcj endorsed dir support (#155693).
6e5970
6e5970
* Mon Apr 25 2005 Gary Benson <gbenson@redhat.com> - 0:1.0-0.b2.6jpp_9fc
6e5970
- Provide a default transformer when running under libgcj.
6e5970
6e5970
* Mon Apr 25 2005 Gary Benson <gbenson@redhat.com> - 0:1.0-0.b2.6jpp_8fc
6e5970
- Provide a default DOM builder when running under libgcj (#155693).
6e5970
6e5970
* Fri Apr 22 2005 Gary Benson <gbenson@redhat.com> - 0:1.0-0.b2.6jpp_7fc
6e5970
- Provide a default SAX parser when running under libgcj (#155693).
6e5970
6e5970
* Thu Apr 21 2005 Gary Benson <gbenson@redhat.com> - 0:1.0-0.b2.6jpp_6fc
6e5970
- Add gcj endorsed dir support.
6e5970
6e5970
* Tue Jan 11 2005 Gary Benson <gbenson@redhat.com> - 0:1.0-0.b2.6jpp_5fc
6e5970
- Sync with RHAPS.
6e5970
6e5970
* Thu Nov  4 2004 Gary Benson <gbenson@redhat.com> - 0:1.0-0.b2.6jpp_4fc
6e5970
- Build into Fedora.
6e5970
6e5970
* Thu Oct 28 2004 Gary Benson <gbenson@redhat.com> - 0:1.0-0.b2.6jpp_3fc
6e5970
- Bootstrap into Fedora.
6e5970
6e5970
* Fri Oct 1 2004 Andrew Overholt <overholt@redhat.com> - 0:1.0-0.b2.6jpp_3rh
6e5970
- add coreutils BuildRequires
6e5970
6e5970
* Thu Mar  4 2004 Frank Ch. Eigler <fche@redhat.com> - 0:1.0-0.b2.6jpp_2rh
6e5970
- RH vacuuming part II
6e5970
6e5970
* Tue Mar  2 2004 Frank Ch. Eigler <fche@redhat.com> - 0:1.0-0.b2.6jpp_1rh
6e5970
- RH vacuuming