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