xalan.spec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. ##
  2. ## xalan.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2004 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2004 Cable & Wireless <http://www.cw.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. # package versions
  26. %define V_here 2.6.0
  27. %define V_real 2_6_0
  28. # package information
  29. Name: xalan
  30. Summary: XSLT Processor
  31. URL: http://xml.apache.org/xalan-j/
  32. Vendor: Apache Software Foundation
  33. Packager: The OpenPKG Project
  34. Distribution: OpenPKG
  35. Class: EVAL
  36. Group: Text
  37. License: Apache
  38. Version: %{V_here}
  39. Release: 20041025
  40. # list of sources
  41. Source0: http://www.apache.org/dist/xml/xalan-j/binaries/xalan-j_%{V_real}-bin.tar.gz
  42. Source1: xalan.sh
  43. # build information
  44. Prefix: %{l_prefix}
  45. BuildRoot: %{l_buildroot}
  46. BuildPreReq: OpenPKG, openpkg >= 20040130
  47. PreReq: OpenPKG, openpkg >= 20040130, JDK
  48. AutoReq: no
  49. AutoReqProv: no
  50. %description
  51. Xalan provides high-performance XSLT stylesheet processing. Xalan fully
  52. implements the W3C XSLT and XPath recommendations. The stylesheet
  53. processor is feature-rich and robust. The XPath Processor is useable as a
  54. stand-alone unit. Xalan uses the Bean Scripting Framework (BSF) to
  55. implement Java or script extensions, features multiple document output
  56. extensions, and we are working on data-binding extensions for SQL/JDBC and
  57. other data providers.
  58. %track
  59. prog xalan = {
  60. version = %{V_real}
  61. url = http://www.apache.org/dist/xml/xalan-j/binaries/
  62. regex = xalan-j_([\d_]+)-bin\.tar\.gz
  63. }
  64. %prep
  65. %setup -q -n xalan-j_%{V_real}
  66. %build
  67. # noop
  68. %install
  69. rm -rf $RPM_BUILD_ROOT
  70. %{l_shtool} mkdir -f -p -m 755 \
  71. $RPM_BUILD_ROOT%{l_prefix}/bin \
  72. $RPM_BUILD_ROOT%{l_prefix}/libexec/xalan
  73. %{l_shtool} install -c -m 755 %{l_value -s -a} \
  74. %{SOURCE xalan.sh} $RPM_BUILD_ROOT%{l_prefix}/bin/xalan
  75. %{l_shtool} install -c -m 644 \
  76. bin/* $RPM_BUILD_ROOT%{l_prefix}/libexec/xalan/
  77. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  78. %files -f files
  79. %clean
  80. rm -rf $RPM_BUILD_ROOT