Blame SPECS/xml-commons-apis.spec

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