perl-xml.spec 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. ##
  2. ## perl-xml.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2002 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2002 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2002 Ralf S. Engelschall <rse@engelschall.com>
  6. ##
  7. ## Permission to use, copy, modify, and distribute this software for
  8. ## any purpose with or without fee is hereby granted, provided that
  9. ## the above copyright notice and this permission notice appear in all
  10. ## copies.
  11. ##
  12. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  13. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  14. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  15. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  16. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  17. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  18. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  19. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  20. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  21. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  22. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  23. ## SUCH DAMAGE.
  24. ##
  25. # versions of individual parts
  26. %define V_xml_parser 2.31
  27. %define V_xml_libxml_common 0.12_1
  28. %define V_xml_libxml 1.54_3
  29. %define V_xml_libxslt 1.52
  30. %define V_xml_simple 1.08
  31. %define V_xml_namespacesupport 1.08
  32. %define V_xml_sax 0.12
  33. %define V_xml_sax_base 1.02
  34. %define V_xml_xslt 0.40
  35. %define V_xml_twig 3.09
  36. %define V_xml_xpath 1.12
  37. %define V_xml_xpath_simple 0.05
  38. %define V_xml_easyobj 1.12
  39. %define V_xml_rss 0.97
  40. %define V_xml_xupdate_libxml 0.3.0
  41. %define V_html_tagset 3.03
  42. %define V_html_parser 3.26
  43. %define V_html_tree 3.15
  44. %define V_rpc_xml 0.45
  45. %define V_soap_lite 0.55
  46. %define V_soap_lite_smartproxy 0.11
  47. %define V_soap_payload 1.02
  48. %define V_xml_xsh 1.6
  49. # package options
  50. %ifndef with_libxml
  51. %define with_libxml %{l_test -p libxml}
  52. %endif
  53. %ifndef with_libxslt
  54. %define with_libxslt %{l_test -p libxslt}
  55. %endif
  56. %if "%{with_libxslt}" == "yes" && "%{with_libxml}" == "no"
  57. %define with_libxml yes
  58. %endif
  59. # package information
  60. Name: perl-xml
  61. Summary: Perl Modules for use with XML
  62. URL: http://www.cpan.org/
  63. Vendor: Perl Community
  64. Packager: The OpenPKG Project
  65. Distribution: OpenPKG [BASE]
  66. Group: Language
  67. License: GPL/Artistic
  68. Version: 20021120
  69. Release: 20021120
  70. # list of sources
  71. Source0: http://www.cpan.org/modules/by-module/XML/XML-Parser-%{V_xml_parser}.tar.gz
  72. Source1: http://www.cpan.org/modules/by-module/XML/XML-Simple-%{V_xml_simple}.tar.gz
  73. Source2: http://www.cpan.org/modules/by-module/XML/XML-NamespaceSupport-%{V_xml_namespacesupport}.tar.gz
  74. Source3: http://www.cpan.org/modules/by-module/XML/XML-SAX-%{V_xml_sax}.tar.gz
  75. Source4: http://www.cpan.org/modules/by-module/XML/XML-SAX-Base-%{V_xml_sax_base}.tar.gz
  76. Source5: http://www.cpan.org/modules/by-module/XML/XML-XSLT-%{V_xml_xslt}.tar.gz
  77. Source6: http://www.cpan.org/modules/by-module/XML/XML-Twig-%{V_xml_twig}.tar.gz
  78. Source7: http://www.cpan.org/modules/by-module/XML/XML-XPath-%{V_xml_xpath}.tar.gz
  79. Source8: http://www.cpan.org/modules/by-module/XML/XML-XPath-Simple-%{V_xml_xpath_simple}.tar.gz
  80. Source9: http://www.cpan.org/modules/by-module/XML/XML-EasyOBJ-%{V_xml_easyobj}.tar.gz
  81. Source10: http://www.cpan.org/modules/by-module/XML/XML-RSS-%{V_xml_rss}.tar.gz
  82. Source11: http://www.cpan.org/modules/by-module/XML/XML-XUpdate-LibXML-%{V_xml_xupdate_libxml}.tar.gz
  83. Source12: http://www.cpan.org/modules/by-module/HTML/HTML-Tagset-%{V_html_tagset}.tar.gz
  84. Source13: http://www.cpan.org/modules/by-module/HTML/HTML-Parser-%{V_html_parser}.tar.gz
  85. Source14: http://www.cpan.org/modules/by-module/HTML/HTML-Tree-%{V_html_tree}.tar.gz
  86. Source15: http://www.cpan.org/modules/by-module/SOAP/SOAP-Lite-%{V_soap_lite}.tar.gz
  87. Source16: http://www.cpan.org/modules/by-module/SOAP/SOAP-Lite-SmartProxy-%{V_soap_lite_smartproxy}.tar.gz
  88. Source17: http://www.cpan.org/modules/by-module/SOAP/SOAP-payload-%{V_soap_payload}.tar.gz
  89. Source18: http://www.cpan.org/modules/by-module/RPC/RPC-XML-%{V_rpc_xml}.tar.gz
  90. Source19: http://www.cpan.org/authors/id/P/PH/PHISH/XML-LibXML-Common-%{V_xml_libxml_common}.tar.gz
  91. Source20: http://www.cpan.org/authors/id/P/PH/PHISH/XML-LibXML-%{V_xml_libxml}.tar.gz
  92. Source21: http://telia.dl.sourceforge.net/sourceforge/xsh/XML-XSH-%{V_xml_xsh}.tar.gz
  93. Source22: http://www.cpan.org/authors/id/M/MS/MSERGEANT/XML-LibXSLT-%{V_xml_libxslt}.tar.gz
  94. # build information
  95. Prefix: %{l_prefix}
  96. BuildRoot: %{l_buildroot}
  97. BuildPreReq: OpenPKG, openpkg >= 20021002, perl >= 5.8.0, expat
  98. PreReq: OpenPKG, openpkg >= 20021002, perl >= 5.8.0
  99. %if "%{with_libxml}" == "yes"
  100. BuildPreReq: libxml
  101. %endif
  102. %if "%{with_libxslt}" == "yes"
  103. BuildPreReq: libxslt
  104. %endif
  105. AutoReq: no
  106. AutoReqProv: no
  107. %description
  108. Perl modules for use with XML:
  109. - XML::Parser (%{V_xml_parser})
  110. %if "%{with_libxml}" == "yes"
  111. - XML::LibXML::Common (%{V_xml_libxml_common})
  112. - XML::LibXML (%{V_xml_libxml})
  113. - XML::XUpdate::LibXML (%{V_xml_xupdate_libxml})
  114. - XML::XSH (%{V_xml_xsh})
  115. %endif
  116. %if "%{with_libxslt}" == "yes"
  117. - XML::LibXSLT (%{V_xml_libxslt})
  118. %endif
  119. - XML::Simple (%{V_xml_simple})
  120. - XML::NamespaceSupport (%{V_xml_namespacesupport})
  121. - XML::SAX (%{V_xml_sax})
  122. - XML::SAX::Base (%{V_xml_sax_base})
  123. - XML::XSLT (%{V_xml_xslt})
  124. - XML::Twig (%{V_xml_twig})
  125. - XML::XPath (%{V_xml_xpath})
  126. - XML::XPath::Simple (%{V_xml_xpath_simple})
  127. - XML::EasyOBJ (%{V_xml_easyobj})
  128. - XML::RSS (%{V_xml_rss})
  129. - HTML::Tagset (%{V_html_tagset})
  130. - HTML::Parser (%{V_html_parser})
  131. - HTML::Tree (%{V_html_tree})
  132. - RPC::XML (%{V_rpc_xml})
  133. - SOAP::Lite (%{V_soap_lite})
  134. - SOAP::Lite::SmartProxy (%{V_soap_lite_smartproxy})
  135. - SOAP::payload (%{V_soap_payload})
  136. %prep
  137. %setup0 -q -c
  138. %setup1 -q -T -D -a 1
  139. %setup2 -q -T -D -a 2
  140. %setup3 -q -T -D -a 3
  141. %setup4 -q -T -D -a 4
  142. %setup5 -q -T -D -a 5
  143. %setup6 -q -T -D -a 6
  144. %setup7 -q -T -D -a 7
  145. %setup8 -q -T -D -a 8
  146. %setup9 -q -T -D -a 9
  147. %setup10 -q -T -D -a 10
  148. %setup11 -q -T -D -a 11
  149. %setup12 -q -T -D -a 12
  150. %setup13 -q -T -D -a 13
  151. %setup14 -q -T -D -a 14
  152. %setup15 -q -T -D -a 15
  153. %setup16 -q -T -D -a 16
  154. %setup17 -q -T -D -a 17
  155. %setup18 -q -T -D -a 18
  156. %setup19 -q -T -D -a 19
  157. %setup20 -q -T -D -a 20
  158. %setup21 -q -T -D -a 21
  159. %setup22 -q -T -D -a 22
  160. %build
  161. %install
  162. # perform common prolog operations
  163. %{l_prefix}/bin/perl-openpkg prolog
  164. # build and install individual modules
  165. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE0} \
  166. EXPATLIBPATH=%{l_prefix}/lib EXPATINCPATH=%{l_prefix}/include
  167. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE1}
  168. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE2}
  169. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE3}
  170. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE4}
  171. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE5}
  172. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE6}
  173. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE7}
  174. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE8}
  175. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE9}
  176. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE10}
  177. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE11}
  178. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE12}
  179. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE13}
  180. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE14}
  181. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE15}
  182. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE16}
  183. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE17}
  184. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE18}
  185. %if "%{with_libxml}" == "yes"
  186. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE19} XMLPREFIX=%{l_prefix}
  187. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE20} XMLPREFIX=%{l_prefix}
  188. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE21}
  189. %endif
  190. %if "%{with_libxslt}" == "yes"
  191. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE22} XMLPREFIX=%{l_prefix}
  192. %endif
  193. # perform common epilog operations
  194. %{l_prefix}/bin/perl-openpkg epilog
  195. %files -f files
  196. %clean
  197. rm -rf $RPM_BUILD_ROOT