fop.spec 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. ##
  2. ## fop.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. # package information
  26. Name: fop
  27. Summary: Formatting Objects (XML-FO) Processor
  28. URL: http://xml.apache.org/fop/
  29. Vendor: Apache Software Foundation
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG [EVAL]
  32. Group: Misc
  33. License: GPL
  34. Version: 0.20.4
  35. Release: 20021110
  36. # list of sources
  37. Source0: http://xml.apache.org/dist/fop/fop-%{version}-bin.tar.gz
  38. Source1: fop.sh
  39. # build information
  40. Prefix: %{l_prefix}
  41. BuildRoot: %{l_buildroot}
  42. BuildPreReq: OpenPKG, openpkg >= 20020206
  43. PreReq: OpenPKG, openpkg >= 20020206, JRE
  44. AutoReq: no
  45. AutoReqProv: no
  46. %description
  47. FOP (Formatting Objects Processor) is the world's first print
  48. formatter driven by XSL formatting objects and the world's first
  49. output independent formatter. It is a Java application that reads
  50. a formatting object tree and then renders the resulting pages to a
  51. specified output. Output formats currently supported are PDF, PCL,
  52. PS, SVG, XML (area tree representation), Print, AWT, MIF and TXT.
  53. The primary output target is PDF.
  54. %prep
  55. %setup -q
  56. %build
  57. # no-op
  58. %install
  59. rm -rf $RPM_BUILD_ROOT
  60. %{l_shtool} mkdir -f -p -m 755 \
  61. $RPM_BUILD_ROOT%{l_prefix}/bin \
  62. $RPM_BUILD_ROOT%{l_prefix}/lib/fop \
  63. $RPM_BUILD_ROOT%{l_prefix}/share/fop/conf
  64. %{l_shtool} install -c -m 644 \
  65. build/*.jar lib/*.jar \
  66. $RPM_BUILD_ROOT%{l_prefix}/lib/fop/
  67. %{l_shtool} install -c -m 644 \
  68. docs/xslfoRef.pdf \
  69. $RPM_BUILD_ROOT%{l_prefix}/share/fop/
  70. %{l_shtool} install -c -m 644 \
  71. conf/* $RPM_BUILD_ROOT%{l_prefix}/share/fop/conf/
  72. %{l_shtool} install -c -m 755 \
  73. -e 's;@l_prefix@;%{l_prefix};g' \
  74. %{SOURCE fop.sh} \
  75. $RPM_BUILD_ROOT%{l_prefix}/bin/fop
  76. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  77. %files -f files
  78. %clean
  79. rm -rf $RPM_BUILD_ROOT