multitail.spec 3.4 KB

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