Blame SPECS/xml-commons-apis.spec

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