lout.spec 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. ##
  2. ## lout.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2005 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2005 Ralf S. Engelschall <http://engelschall.com/>
  5. ##
  6. ## Permission to use, copy, modify, and distribute this software for
  7. ## any purpose with or without fee is hereby granted, provided that
  8. ## the above copyright notice and this permission notice appear in all
  9. ## copies.
  10. ##
  11. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  12. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  13. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  14. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  15. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  16. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  17. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  18. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  19. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  20. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  21. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  22. ## SUCH DAMAGE.
  23. ##
  24. # package information
  25. Name: lout
  26. Summary: The Lout Documentation System
  27. URL: http://snark.ptc.spbu.ru/~uwe/lout/
  28. Vendor: Jeffrey Kingston
  29. Packager: OpenPKG
  30. Distribution: OpenPKG
  31. Class: BASE
  32. Group: Text
  33. License: GPL
  34. Version: 3.31
  35. Release: 20050824
  36. # list of sources
  37. Source0: ftp://ftp.cs.usyd.edu.au/jeff/lout/lout-%{version}.tar.gz
  38. Source1: ftp://ftp.cs.usyd.edu.au/jeff/lout/lout-%{version}.user.ps.gz
  39. # build information
  40. Prefix: %{l_prefix}
  41. BuildRoot: %{l_buildroot}
  42. BuildPreReq: OpenPKG, openpkg >= 20040130
  43. PreReq: OpenPKG, openpkg >= 20040130
  44. BuildPreReq: zlib
  45. PreReq: zlib
  46. AutoReq: no
  47. AutoReqProv: no
  48. %description
  49. Lout is a document formatting system which offers an unprecedented
  50. range of advanced features, including optimal paragraph breaking,
  51. automatic hyphenation, PostScript EPS file inclusion and generation,
  52. equation formatting, tables, diagrams, rotation and scaling, sorted
  53. indexes, bibliographic databases, running headers and odd-even
  54. pages, automatic cross referencing, multilingual documents including
  55. hyphenation (most European languages are supported, including
  56. Russian), formatting of C/C++ programs, and much more, all ready to
  57. use. Furthermore, Lout is easily extended with definitions which are
  58. very much easier to write than troff of TeX macros because Lout is a
  59. high-level language, the outcome of an eight-year research project
  60. that went back to the beginning.
  61. %track
  62. prog lout = {
  63. version = %{version}
  64. url = ftp://ftp.cs.usyd.edu.au/jeff/lout/
  65. regex = lout-(__VER__)\.tar\.gz
  66. }
  67. %prep
  68. %setup -q
  69. %build
  70. %{l_make} %{l_mflags -O} lout prg2lout \
  71. BINDIR=%{l_prefix}/bin \
  72. LIBDIR=%{l_prefix}/share/lout \
  73. MANDIR=%{l_prefix}/man/man1 \
  74. OSUNIX=1 DEBUGGING=0 TRACING= \
  75. PDF_COMPRESSION=1 \
  76. ZLIB="%{l_prefix}/lib/libz.a" \
  77. ZLIB_PATH="%{l_cppflags}" \
  78. CHARIN=1 CHAROUT=1 \
  79. CC="%{l_cc}" \
  80. COPTS="%{l_cflags -O} %{l_cppflags}"
  81. %install
  82. rm -rf $RPM_BUILD_ROOT
  83. %{l_shtool} mkdir -f -p -m 755 \
  84. $RPM_BUILD_ROOT%{l_prefix}/bin \
  85. $RPM_BUILD_ROOT%{l_prefix}/share \
  86. $RPM_BUILD_ROOT%{l_prefix}/man/man1
  87. LOUTLIB=$RPM_BUILD_ROOT%{l_prefix}/share/lout
  88. export LOUTLIB
  89. %{l_make} %{l_mflags} install installman \
  90. BINDIR=$RPM_BUILD_ROOT%{l_prefix}/bin \
  91. LIBDIR=$RPM_BUILD_ROOT%{l_prefix}/share/lout \
  92. MANDIR=$RPM_BUILD_ROOT%{l_prefix}/man/man1
  93. %{l_shtool} mkdir -f -p -m 755 \
  94. $RPM_BUILD_ROOT%{l_prefix}/share/lout/doc
  95. for doc in design expert slides; do
  96. %{l_shtool} install -c -m 644 \
  97. doc/$doc/outfile.ps \
  98. $RPM_BUILD_ROOT%{l_prefix}/share/lout/doc/$doc.ps
  99. %{l_gzip} -9 \
  100. $RPM_BUILD_ROOT%{l_prefix}/share/lout/doc/$doc.ps
  101. done
  102. %{l_shtool} install -c -m 644 \
  103. %{SOURCE lout-%{version}.user.ps.gz} \
  104. $RPM_BUILD_ROOT%{l_prefix}/share/lout/doc/user.ps.gz
  105. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  106. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  107. %files -f files
  108. %clean
  109. rm -rf $RPM_BUILD_ROOT