trafshow-vl.spec 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. Summary:Ncurses based UP traffic monitoring
  2. Summary(ja):Ncurses ベースのトラフィック・モニタ
  3. Name: trafshow
  4. Version: 1.3
  5. Release: 5vl3
  6. License: GPL2
  7. Group: Applications/Internet
  8. Source0: ftp://sunsite.unc.edu/pub/Linux/system/network/management/trafshow-1.3.tar.gz
  9. Patch0: trafshow-1.3-glibc.patch
  10. Patch1: trafshow-1.3-config.patch
  11. Buildroot: %{_tmppath}/%{name}-root
  12. ExclusiveArch: %{ix86}
  13. Vendor: Project Vine
  14. Distribution: Vine Linux
  15. %description
  16. Ncurses based UP traffic monitoring
  17. %description -l ja
  18. ncurses ベースのネットワーク・トラフィックモニタです。
  19. %prep
  20. %setup -q
  21. %patch -p1
  22. %patch1 -p1
  23. %build
  24. make clean
  25. make
  26. %install
  27. rm -rf %{buildroot}
  28. mkdir -p %{buildroot}{/usr/bin,%{_mandir}/man1}
  29. install -s -m 4711 trafshow %{buildroot}/usr/bin
  30. install -m 644 trafshow.1 %{buildroot}%{_mandir}/man1
  31. # prepare applnk
  32. %define applnkdir /etc/X11/applnk/Administration
  33. mkdir -p %{buildroot}/%{applnkdir}
  34. cat > %{buildroot}/%{applnkdir}/%{name}.desktop <<EOF
  35. [Desktop Entry]
  36. Name=%{name}
  37. Type=Administration
  38. Comment=Network Traffic Monitor
  39. Comment[ja]=ネットワーク・トラフィック・モニタ
  40. Exec=kterm -e trafshow
  41. Terminal=false
  42. EOF
  43. %clean
  44. rm -rf %{buildroot}
  45. %files
  46. %defattr(-,root,root)
  47. %doc COPYING TODO
  48. %config(missingok) %{applnkdir}/%{name}.desktop
  49. /usr/bin/trafshow
  50. %{_mandir}/man1/trafshow.1*
  51. %changelog
  52. * Thu Feb 07 2002 Toru Sagami <sagami@vinelinux.org> 1.3-5vl3
  53. - install man pages into %%{_mandir}
  54. - ExclusiveArch: %%{ix86} instead of i386
  55. * Thu Sep 21 2000 Jun Nishii <jun@vinelinux.org>
  56. - 1.3-5vl2
  57. - tiny fix of spec file
  58. - use applink instead of wmconfig
  59. - build for Vine Linux 2.1
  60. * Sat Jan 22 2000 Jun Nishii <jun@vinelinux.org>
  61. - build for Vine Linux 2.0
  62. * Sun Jun 7 1998 Alexey Nogin <ayn2@cornell.edu>
  63. - wmconfig should be %config'ed
  64. * Sun May 3 1998 Alexey Nogin <ayn2@cornell.edu>
  65. - added BuildRoot directive
  66. - added man page to binary RPM
  67. - added trafshow wmconfig file
  68. * Fri Dec 5 1997 Otto Hammersmith <otto@redhat.com>
  69. - made exclusive to i386 -- there is asm code in there
  70. * Tue Nov 18 1997 Otto Hammersmith <otto@redhat.com>
  71. - added changelog
  72. - fixed src url
  73. - updated version