xml-commons-apis-vl.spec 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. Name: xml-commons-apis
  2. Version: 1.4.01
  3. Release: 1%{?_dist_release}
  4. Summary: APIs for DOM, SAX, and JAXP
  5. Summary(ja): DOX, SAX, JAXP 用 API
  6. Group: Development/Libraries
  7. License: ASL 2.0 and W3C and Public Domain
  8. URL: http://xml.apache.org/commons/
  9. # From source control because the published tarball doesn't include some docs:
  10. # svn export http://svn.apache.org/repos/asf/xml/commons/tags/xml-commons-external-1_4_01/java/external/
  11. # tar czf xml-commons-external-1.4.01-src.tar.gz external
  12. Source0: xml-commons-external-%{version}-src.tar.gz
  13. Source1: %{name}-MANIFEST.MF
  14. Source2: %{name}-ext-MANIFEST.MF
  15. Source3: http://repo1.maven.org/maven2/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.pom
  16. Source4: http://repo1.maven.org/maven2/xml-apis/xml-apis-ext/1.3.04/xml-apis-ext-1.3.04.pom
  17. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  18. BuildArch: noarch
  19. BuildRequires: java-devel
  20. BuildRequires: jpackage-utils
  21. BuildRequires: ant
  22. BuildRequires: zip
  23. Requires: java-headless
  24. Requires: jpackage-utils
  25. Obsoletes: xml-commons < %{version}-%{release}
  26. Provides: xml-commons = %{version}-%{release}
  27. # TODO: Ugh, this next line should be dropped since it actually provides JAXP 1.4 now...
  28. Provides: xml-commons-jaxp-1.3-apis = %{version}-%{release}
  29. %description
  30. xml-commons-apis is designed to organize and have common packaging for
  31. the various externally-defined standard interfaces for XML. This
  32. includes the DOM, SAX, and JAXP.
  33. %package manual
  34. Summary: Manual for %{name}
  35. Summary(ja): %{name} のマニュアル
  36. Group: Documentation
  37. %description manual
  38. Manual for %{name}.
  39. %package javadoc
  40. Summary: Javadoc for %{name}
  41. Summary(ja): %{name} の Javadoc
  42. Group: Documentation
  43. %description javadoc
  44. %{summary}.
  45. # -----------------------------------------------------------------------------
  46. %prep
  47. %setup -q -n external
  48. # Make sure upstream hasn't sneaked in any jars we don't know about
  49. find -name '*.class' -exec rm -f '{}' \;
  50. find -name '*.jar' -exec rm -f '{}' \;
  51. # Fix file encodings
  52. iconv -f iso8859-1 -t utf-8 LICENSE.dom-documentation.txt > \
  53. LICENSE.dom-doc.temp && mv -f LICENSE.dom-doc.temp LICENSE.dom-documentation.txt
  54. iconv -f iso8859-1 -t utf-8 LICENSE.dom-software.txt > \
  55. LICENSE.dom-sof.temp && mv -f LICENSE.dom-sof.temp LICENSE.dom-software.txt
  56. # remove bogus section from poms
  57. cp %{SOURCE3} %{SOURCE4} .
  58. sed -i '/distributionManagement/,/\/distributionManagement/ {d}' *.pom
  59. %build
  60. ant -Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5 jar javadoc
  61. %install
  62. rm -rf $RPM_BUILD_ROOT
  63. mkdir -p META-INF
  64. cp -p %{SOURCE1} META-INF/MANIFEST.MF
  65. touch META-INF/MANIFEST.MF
  66. zip -u build/xml-apis.jar META-INF/MANIFEST.MF
  67. cp -p %{SOURCE2} META-INF/MANIFEST.MF
  68. touch META-INF/MANIFEST.MF
  69. zip -u build/xml-apis-ext.jar META-INF/MANIFEST.MF
  70. # Jars
  71. install -pD -T build/xml-apis.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
  72. #install -pDm 644 xml-apis-[0-9]*.pom $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP-%{name}.po
  73. #add_maven_depmap -a xerces:dom3-xml-apis
  74. install -pD -T build/xml-apis-ext.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-ext.jar
  75. #install -pDm 644 xml-apis-ext*.pom $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP-%{name}-ext.pom
  76. #add_maven_depmap JPP-%{name}-ext.pom %{name}-ext.jar
  77. # for better interoperability with the jpp apis packages
  78. ln -sf %{name}.jar $RPM_BUILD_ROOT%{_javadir}/jaxp13.jar
  79. ln -sf %{name}.jar $RPM_BUILD_ROOT%{_javadir}/jaxp.jar
  80. ln -sf %{name}.jar $RPM_BUILD_ROOT%{_javadir}/xml-commons-jaxp-1.3-apis.jar
  81. # Javadocs
  82. mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}
  83. cp -pr build/docs/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
  84. # prevent apis javadoc from being included in doc
  85. rm -rf build/docs/javadoc
  86. %clean
  87. rm -rf $RPM_BUILD_ROOT
  88. %files
  89. %defattr(-,root,root,-)
  90. %doc LICENSE NOTICE
  91. %doc LICENSE.dom-documentation.txt README.dom.txt
  92. %doc LICENSE.dom-software.txt LICENSE.sac.html
  93. %doc LICENSE.sax.txt README-sax README.sax.txt
  94. %{_javadir}/*
  95. %files manual
  96. %defattr(-,root,root,-)
  97. %doc build/docs/*
  98. %files javadoc
  99. %defattr(-,root,root,-)
  100. %{_javadocdir}/*
  101. %changelog
  102. * Fri Jan 23 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.4.01-1
  103. - updated to 1.4.01
  104. * Sat Feb 04 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.3.04-2
  105. - rebuild with Vine6 environment
  106. * Fri Aug 27 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.3.04-1
  107. - Initial build for Vine Linux
  108. - used version 1.3.04
  109. * Sat Jan 9 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.4.01-1
  110. - Update to 1.4.01.
  111. * Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.3.04-3.5
  112. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  113. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.3.04-2.5
  114. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  115. * Fri Feb 6 2009 Alexander Kurtakov <akurtako@redhat.com> 0:1.3.04-1.5
  116. - Add osgi metadata to the ext jar too.
  117. * Fri Jan 30 2009 Alexander Kurtakov <akurtako@redhat.com> 0:1.3.04-1.4
  118. - Add osgi metadata.
  119. * Fri Sep 19 2008 Matt Wringe <mwringe@redhat.com> - 0:1.3.04-1.3
  120. - Remove natively compiled bits from the javadoc package (462809)
  121. * Thu Jul 10 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:1.3.04-1.2
  122. - drop repotag
  123. - fix license tag
  124. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0:1.3.04-1jpp.1
  125. - Autorebuild for GCC 4.3
  126. * Tue Mar 06 2007 Matt Wringe <mwringe@redhat.com> - 0:1.3.04-0jpp.1
  127. - Update to 1.3.04
  128. * Tue Mar 06 2007 Matt Wringe <mwringe@redhat.com> - 0:1.3.03-0jpp.1
  129. - Split xml-commons package up into 2 separate package: xml-commons-apis
  130. and xml-commons-which.
  131. * Mon Aug 21 2006 Fernando Nasser <fnasser@redhat.com> - 0:1.3.02-0.b2.7jpp.10
  132. - Add missing Requires for post and postun javadoc sections
  133. * Sat Jul 22 2006 Jakub Jelinek <jakub@redhat.com> - 0:1.3.02-0.b2.7jpp_9fc
  134. - Rebuilt
  135. * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0:1.3.02-0.b2.7jpp_8fc
  136. - rebuild
  137. * Mon Mar 6 2006 Jeremy Katz <katzj@redhat.com> - 0:1.3.02-0.b2.7jpp_7fc
  138. - stop scriptlet spew
  139. * Wed Feb 22 2006 Rafael Schloming <rafaels@redhat.com> - 0:1.3.02-0.b2.7jpp_6fc
  140. - Updated to 1.3
  141. * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0:1.0-0.b2.7jpp_5fc
  142. - bump again for double-long bug on ppc(64)
  143. * Wed Dec 21 2005 Jesse Keating <jkeating@redhat.com> 0:1.0-0.b2.7jpp_4fc
  144. - rebuilt again
  145. * Tue Dec 13 2005 Jesse Keating <jkeating@redhat.com>
  146. - rebuilt for new gcj
  147. * Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
  148. - rebuilt
  149. * Fri Jul 15 2005 Gary Benson <gbenson@redhat.com> - 0:1.0-0.b2.7jpp_3fc
  150. - Build on ia64, ppc64, s390 and s390x.
  151. - Switch to aot-compile-rpm (also BC-compiles the which jar).
  152. * Wed Jun 15 2005 Gary Benson <gbenson@redhat.com> - 0:1.0-0.b2.7jpp_2fc
  153. - Remove all prebuilt stuff from the tarball.
  154. * Thu May 26 2005 Gary Benson <gbenson@redhat.com> - 0:1.0-0.b2.7jpp_1fc
  155. - Upgrade to 1.0-0.b2.7jpp.
  156. - Remove now-unnecessary workaround for #130162.
  157. - Rearrange how BC-compiled stuff is built and installed.
  158. * Mon May 23 2005 Gary Benson <gbenson@redhat.com> - 0:1.0-0.b2.6jpp_13fc
  159. - Add alpha to the list of build architectures (#157522).
  160. - Use absolute paths for rebuild-gcj-db.
  161. * Thu May 5 2005 Gary Benson <gbenson@redhat.com> - 0:1.0-0.b2.6jpp_12fc
  162. - Add dependencies for %%post and %%postun scriptlets (#156901).
  163. * Tue May 3 2005 Gary Benson <gbenson@redhat.com> - 0:1.0-0.b2.6jpp_11fc
  164. - BC-compile the API jar.
  165. * Tue Apr 26 2005 Gary Benson <gbenson@redhat.com> - 0:1.0-0.b2.6jpp_10fc
  166. - Remove gcj endorsed dir support (#155693).
  167. * Mon Apr 25 2005 Gary Benson <gbenson@redhat.com> - 0:1.0-0.b2.6jpp_9fc
  168. - Provide a default transformer when running under libgcj.
  169. * Mon Apr 25 2005 Gary Benson <gbenson@redhat.com> - 0:1.0-0.b2.6jpp_8fc
  170. - Provide a default DOM builder when running under libgcj (#155693).
  171. * Fri Apr 22 2005 Gary Benson <gbenson@redhat.com> - 0:1.0-0.b2.6jpp_7fc
  172. - Provide a default SAX parser when running under libgcj (#155693).
  173. * Thu Apr 21 2005 Gary Benson <gbenson@redhat.com> - 0:1.0-0.b2.6jpp_6fc
  174. - Add gcj endorsed dir support.
  175. * Tue Jan 11 2005 Gary Benson <gbenson@redhat.com> - 0:1.0-0.b2.6jpp_5fc
  176. - Sync with RHAPS.
  177. * Thu Nov 4 2004 Gary Benson <gbenson@redhat.com> - 0:1.0-0.b2.6jpp_4fc
  178. - Build into Fedora.
  179. * Thu Oct 28 2004 Gary Benson <gbenson@redhat.com> - 0:1.0-0.b2.6jpp_3fc
  180. - Bootstrap into Fedora.
  181. * Fri Oct 1 2004 Andrew Overholt <overholt@redhat.com> - 0:1.0-0.b2.6jpp_3rh
  182. - add coreutils BuildRequires
  183. * Thu Mar 4 2004 Frank Ch. Eigler <fche@redhat.com> - 0:1.0-0.b2.6jpp_2rh
  184. - RH vacuuming part II
  185. * Tue Mar 2 2004 Frank Ch. Eigler <fche@redhat.com> - 0:1.0-0.b2.6jpp_1rh
  186. - RH vacuuming
  187. * Thu Aug 26 2003 Ralph Apel <r.apel at r-apel.de> - 0:1.0-0.b2.7jpp
  188. - Build with ant-1.6.2
  189. * Mon May 5 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.0-0.b2.6jpp
  190. - Fix non-versioned javadoc symlinking.
  191. * Mon Apr 21 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.0-0.b2.5jpp
  192. - Fix xml-which script.
  193. - Include non-versioned javadoc symlinks.
  194. - Add Epoch: 0.
  195. - Fix jpackage-utils dependency versions.
  196. * Thu Mar 13 2003 Nicolas Mailhot <Nicolas.Mailhot at jpackage.org> - 1.0-0.b2.4jpp
  197. - For jpackage-utils 1.5
  198. * Wed Nov 13 2002 Ville Skyttä <ville.skytta at iki.fi> - 1.0-0.b2.3jpp
  199. - Following upstream changes, resolver is now built from its own package.
  200. * Sun Nov 3 2002 Ville Skyttä <ville.skytta at iki.fi> 1.0-0.b2.2jpp
  201. - Split resolver into its own subpackage.
  202. - Fix Group, Vendor and Distribution tags.
  203. - Use sed instead of bash 2 extension when symlinking jars.
  204. - Add resolver and which shell scripts.
  205. * Thu Jul 11 2002 Henri Gomez <hgomez@users.sourceforge.net> 1.0-0.b2.1jpp
  206. - 1.0.b2
  207. - get tarball from xml.apache.org
  208. - add macro section
  209. * Fri Jan 18 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.0-0.b1.1jpp
  210. - first jpp release