multitail.spec 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. ##
  2. ## multitail.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2007 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2007 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: multitail
  26. Summary: Multi-Logfile Tail Watcher
  27. URL: http://www.vanheusden.com/multitail/
  28. Vendor: Folkert van Heusden
  29. Packager: OpenPKG Foundation e.V.
  30. Distribution: OpenPKG Community
  31. Class: BASE
  32. Group: Terminal
  33. License: GPL
  34. Version: 4.3.6
  35. Release: 20070329
  36. # list of sources
  37. Source0: http://www.vanheusden.com/multitail/multitail-%{version}.tgz
  38. Patch0: multitail.patch
  39. # build information
  40. Prefix: %{l_prefix}
  41. BuildRoot: %{l_buildroot}
  42. BuildPreReq: OpenPKG, openpkg >= 20040130, ncurses, gcc
  43. PreReq: OpenPKG, openpkg >= 20040130, ncurses
  44. AutoReq: no
  45. AutoReqProv: no
  46. %description
  47. Multitail lets you view one or multiple files like the original
  48. tail(1) program. The difference is that this program creates
  49. multiple full-screen windows. It can also use colors while
  50. displaying the logfiles for faster recognizing which lines are
  51. important and which are not. It is optimized for terminal-sessions
  52. through slow links.
  53. %track
  54. prog multitail = {
  55. version = %{version}
  56. url = http://www.vanheusden.com/multitail/download.html
  57. regex = multitail-(__VER__)\.tgz
  58. }
  59. %prep
  60. %setup -q
  61. %patch -p0
  62. %build
  63. libs="-lpanel -lncurses -lm"
  64. case "%{l_platform -t}" in
  65. *-freebsd* )
  66. libs="$libs -lutil"
  67. %{l_shtool} subst \
  68. -e 's;off64_t;off_t;g' \
  69. -e 's;stat64;stat;g' \
  70. -e 's;open64;open;g' \
  71. utils.c utils.h mt.c
  72. ;;
  73. *-linux* | *-netbsd* )
  74. libs="$libs -lutil"
  75. ;;
  76. *-sunos* )
  77. libs="$libs -lsocket -lnsl"
  78. ;;
  79. esac
  80. %{l_make} %{l_mflags} \
  81. CC="%{l_cc}" \
  82. OPENPKG_CFLAGS="%{l_cflags -O} %{l_cppflags ncurses}" \
  83. OPENPKG_LDFLAGS="%{l_ldflags} $libs"
  84. %install
  85. rm -rf $RPM_BUILD_ROOT
  86. %{l_shtool} mkdir -f -p -m 755 \
  87. $RPM_BUILD_ROOT%{l_prefix}/bin \
  88. $RPM_BUILD_ROOT%{l_prefix}/man/man1
  89. %{l_shtool} install -c -s -m 755 \
  90. multitail $RPM_BUILD_ROOT%{l_prefix}/bin/
  91. %{l_shtool} install -c -m 644 \
  92. multitail.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
  93. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  94. %files -f files
  95. %clean
  96. rm -rf $RPM_BUILD_ROOT