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