lv-vl.spec 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. %global srcver 4.51
  2. %global shortsrcver %(echo %{srcver} | sed -e 's/\\.//')
  3. %global _configure ../configure
  4. Summary: a powerful multilingual file viewer
  5. Summary(ja): パワフルな多言語対応ファイルビュウワー
  6. Name: lv
  7. Epoch: 1
  8. Version: %{srcver}.d
  9. Release: 1%{?_dist_release}
  10. License: GPL
  11. Group: Applications/Text
  12. Source: http://www.ff.iij4u.or.jp/~nrt/freeware/lv%{shortsrcver}.tar.gz
  13. URL: http://www.ff.iij4u.or.jp/~nrt/lv/
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  15. # from https://github.com/k-takata/lv-mod
  16. Patch1: lv-mod-4.51.d.patch
  17. Provides: pager
  18. Requires(post,preun): alternatives
  19. BuildRequires: ncurses-devel >= 5.6
  20. Vendor: Project Vine
  21. Distribution: Vine Linux
  22. %description
  23. lv is a powerful file viewer like less. lv can decode and encode
  24. multilingual streams through many coding systems: ISO-8859, ISO-2022,
  25. EUC, SJIS, Big5, HZ, Unicode. It recognizes multi-bytes patterns as
  26. regular expressions, lv also provides multilingual grep. In addition,
  27. lv can recognize ANSI escape sequences for text devoration.
  28. %description -l ja
  29. lv は less に似たパワフルなファイルビュウワーです。lv は多言語文字列を
  30. ISO-8859, ISO-2022, EUC, SJIS, Big5, HZ, Unicode といった様々な文字コー
  31. ドにエンコード・デコードできます。また多バイト正規表現をサポートしてお
  32. り、多言語 grep としての機能も備えています。さらに lv は ANSI エスケー
  33. プシーケンスによるテキスト装飾を扱うこともできます。
  34. %prep
  35. %setup -q -n lv%{shortsrcver}
  36. %patch1 -p1
  37. autoreconf -ivf
  38. %build
  39. pushd build
  40. %configure
  41. make %{_smp_mflags}
  42. popd
  43. %install
  44. rm -rf %{buildroot}
  45. mkdir -p %{buildroot}%{_bindir}
  46. mkdir -p %{buildroot}%{_mandir}/man1
  47. # installing binaries ...
  48. pushd build
  49. %makeinstall
  50. popd
  51. # listing all files in drb-all.files
  52. (find \
  53. %{buildroot}%{_bindir} \
  54. %{buildroot}%{_mandir} \
  55. -type f -o -type l) |
  56. sort | sed -e "s,^%{buildroot},," \
  57. -e "s,\(/man/man./.*\)$,\1*," > lv-all.files
  58. %clean
  59. rm -rf %{buildroot}
  60. rm -f *.files
  61. #%post -p /sbin/ldconfig -n lv
  62. %post
  63. %{_syssbindir}/update-alternatives --install %{_bindir}/pager pager %{_bindir}/lv 20
  64. %preun
  65. if [ "$1" = "0" ]; then
  66. %{_syssbindir}/update-alternatives --remove pager %{_bindir}/lv
  67. fi
  68. #%postun -p /sbin/ldconfig -n lv
  69. %files -f lv-all.files
  70. %defattr(-, root, root)
  71. %license GPL.txt
  72. %doc README
  73. %doc hello.sample
  74. %doc hello.sample.gif
  75. %doc index.html
  76. %doc relnote.html
  77. %{_libdir}/lv
  78. %changelog
  79. * Mon Mar 09 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.51.d-1
  80. - added Patch1: from https://github.com/k-takata/lv-mod
  81. * Sun Jan 26 2014 IWAI, Masaharu <iwaim.sub@gmail.com> 4.51.0-3
  82. - rebuild with current VineSeed
  83. * Tue Apr 05 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 4.51.0-2
  84. - rebuild for Vine 6
  85. * Sun Aug 10 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 4.51.0-1
  86. - new versioning policy
  87. - build with ncurses-5.6
  88. * Fri Apr 13 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 4.51.0-0vl6
  89. - add Provides: pager
  90. - add Requires(post,preun): alternatives
  91. * Mon Apr 09 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 4.51.0-0vl5
  92. - add update-alternatives: pager in %%post and %%preun scriptlet
  93. * Tue Apr 20 2004 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 4.51.0-0vl4
  94. - rebuild on VineSeed
  95. * Tue Apr 20 2004 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 4.51.0-0vl3
  96. - add (Build)Requires: libtermcap(-devel)
  97. - add Vendor/Distribution tag
  98. - add GPL.txt
  99. * Wed Feb 11 2004 KAZUKI SHIMURA <rito@pos.to> 4.51.0-0vl2
  100. - rebuild on VineSeed
  101. * Wed Feb 11 2004 KAZUKI SHIMURA <rito@pos.to> 4.51.0-0vl1
  102. - upstream release
  103. - drop obsolete patch lv-Makefile.in.patch (Patch1)
  104. * Sat Jan 10 2004 KAZUKI SHIMURA <rito@pos.to> 4.50.0-0vl1
  105. - upstream release
  106. - define %%{srcname}
  107. - s/Copyright/License/
  108. * Thu May 15 2003 IWAI Masaharu <iwai@alib.jp> 4.49.5-0vl2
  109. - rebuild on VineSeed
  110. * Thu May 15 2003 IWAI Masaharu <iwai@alib.jp> 4.49.5-0vl1
  111. - SECURITY FIX - upstream release
  112. - fix CAN-2003-0188: possible local root exploit using config files
  113. * Mon Mar 24 2003 IWAI Masaharu <iwai@alib.jp> 4.49.4-0vl4
  114. - rebuild with new toolchain
  115. * Fri Sep 20 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 4.49.4-0vl3
  116. - URL was incorrect (http was hhttp)... Fixed the typo.
  117. * Sun Jul 21 2002 IWAI Masaharu <iwai@alib.jp> 4.49.4-0vl2
  118. - added the help file for executing with h option
  119. * Wed Jan 10 2001 akira yamada <akira@vinelinux.org>
  120. - Initial packaging.