aft.spec 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. ##
  2. ## aft.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. %define V_real 5078b
  26. %define V_here 5.078b
  27. # package information
  28. Name: aft
  29. Summary: Almost Free Text
  30. URL: http://www.maplefish.com/todd/aft.html
  31. Vendor: Todd Coram
  32. Packager: The OpenPKG Project
  33. Distribution: OpenPKG [EXP]
  34. Group: Text
  35. License: GPL
  36. Version: %{V_here}
  37. Release: 20020318
  38. # list of sources
  39. Source0: http://www.maplefish.com/todd/aft%{V_real}.tar.gz
  40. # build information
  41. Prefix: %{l_prefix}
  42. BuildRoot: %{l_buildroot}
  43. BuildPreReq: OpenPKG, openpkg >= 20020206
  44. PreReq: OpenPKG, openpkg >= 20020206, perl
  45. AutoReq: no
  46. AutoReqProv: no
  47. %description
  48. AFT is a document preparation system. It is mostly free form meaning that
  49. there is little intrusive markup. AFT source documents look a lot like
  50. plain old ASCII text. AFT has a few rules for structuring your document
  51. and these rules have more to do with formatting your text rather than
  52. embedding commands. Right now, AFT produces pretty good (weblint-able)
  53. HTML, XHTML, LaTeX, lout and RTF. It can, in fact, be coerced into
  54. producing all types of output (e.g. roll-your-own XML). All that needs to
  55. be done is to edit a rule file. You can even customize your own HTML rule
  56. files for specialized output.
  57. %prep
  58. %setup -q -n aft
  59. %build
  60. # no-op
  61. %install
  62. rm -rf $RPM_BUILD_ROOT
  63. %{l_shtool} mkdir -f -p -m 755 \
  64. $RPM_BUILD_ROOT%{l_prefix}/bin \
  65. $RPM_BUILD_ROOT%{l_prefix}/share/aft
  66. ( echo "$RPM_BUILD_ROOT%{l_prefix}/share/aft"
  67. echo "$RPM_BUILD_ROOT%{l_prefix}/bin"
  68. echo ""
  69. ) | %{l_prefix}/bin/perl install.pl
  70. %{l_shtool} subst \
  71. -e "s;$RPM_BUILD_ROOT%{l_prefix}/share/aft;%{l_prefix}/share/aft;" \
  72. $RPM_BUILD_ROOT%{l_prefix}/bin/aft
  73. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  74. %files -f files
  75. %clean
  76. rm -rf $RPM_BUILD_ROOT