fop.spec 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. ##
  2. ## fop.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ##
  5. ## Permission to use, copy, modify, and distribute this software for
  6. ## any purpose with or without fee is hereby granted, provided that
  7. ## the above copyright notice and this permission notice appear in all
  8. ## copies.
  9. ##
  10. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  11. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  12. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  13. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  14. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  15. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  16. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  17. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  18. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  19. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  20. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  21. ## SUCH DAMAGE.
  22. ##
  23. # package information
  24. Name: fop
  25. Summary: Formatting Objects (XML-FO) Processor
  26. URL: http://xmlgraphics.apache.org/fop/
  27. Vendor: Apache Software Foundation
  28. Packager: OpenPKG Foundation e.V.
  29. Distribution: OpenPKG Community
  30. Class: EVAL
  31. Group: Typesetting
  32. License: GPL
  33. Version: 0.94
  34. Release: 20080328
  35. # list of sources
  36. Source0: http://www.apache.org/dist/xmlgraphics/fop/binaries/fop-%{version}-bin-jdk1.4.tar.gz
  37. Source1: fop.sh
  38. # build information
  39. Prefix: %{l_prefix}
  40. BuildRoot: %{l_buildroot}
  41. BuildPreReq: OpenPKG, openpkg >= 20040130
  42. PreReq: OpenPKG, openpkg >= 20040130, java, JAVA-JDK
  43. AutoReq: no
  44. AutoReqProv: no
  45. %description
  46. FOP (Formatting Objects Processor) is the world's first print
  47. formatter driven by XSL formatting objects and the world's first
  48. output independent formatter. It is a Java application that reads
  49. a formatting object tree and then renders the resulting pages to a
  50. specified output. Output formats currently supported are PDF, PCL,
  51. PS, SVG, XML (area tree representation), Print, AWT, MIF and TXT.
  52. The primary output target is PDF.
  53. %track
  54. prog fop = {
  55. version = %{version}
  56. url = http://www.apache.org/dist/xmlgraphics/fop/binaries/
  57. regex = fop-(\d+\.\d+(?:\.\d+)?)-bin(?:-jdk1.[456])?\.tar\.gz
  58. }
  59. %prep
  60. %setup -q
  61. %build
  62. # no-op
  63. %install
  64. rm -rf $RPM_BUILD_ROOT
  65. %{l_shtool} mkdir -f -p -m 755 \
  66. $RPM_BUILD_ROOT%{l_prefix}/bin \
  67. $RPM_BUILD_ROOT%{l_prefix}/lib/fop \
  68. $RPM_BUILD_ROOT%{l_prefix}/etc/fop/conf \
  69. $RPM_BUILD_ROOT%{l_prefix}/share/fop/conf
  70. %{l_shtool} install -c -m 644 \
  71. build/*.jar lib/*.jar \
  72. $RPM_BUILD_ROOT%{l_prefix}/lib/fop/
  73. %{l_shtool} install -c -m 644 \
  74. docs/*.pdf \
  75. $RPM_BUILD_ROOT%{l_prefix}/share/fop/
  76. %{l_shtool} install -c -m 644 \
  77. conf/* $RPM_BUILD_ROOT%{l_prefix}/etc/fop/conf/
  78. %{l_shtool} install -c -m 755 %{l_value -s -a} \
  79. %{SOURCE fop.sh} \
  80. $RPM_BUILD_ROOT%{l_prefix}/bin/fop
  81. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  82. %{l_files_std} \
  83. '%config %{l_prefix}/etc/fop/conf/*' \
  84. '%doc %{l_prefix}/share/fop/*.pdf'
  85. %files -f files
  86. %clean
  87. rm -rf $RPM_BUILD_ROOT