dialog-vl.spec 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. Summary: A utility for creating TTY dialog boxes.
  2. Summary(ja): TTY ダイアログボックスのユーティリティ
  3. Name: dialog
  4. %define SubVersion 20110707
  5. Version: 1.1
  6. Release: 1.svn%{SubVersion}%{?_dist_release}
  7. License: LGPLv2
  8. Group: Applications/System
  9. URL: http://invisible-island.net/dialog/dialog.html
  10. Source: ftp://invisible-island.net/dialog/dialog-1.1-%{SubVersion}.tgz
  11. Patch1: dialog-incdir.patch
  12. Patch2: dialog-multilib.patch
  13. Patch3: dialog-libs.patch
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  15. BuildRequires: ncurses-devel, gettext findutils libtool
  16. Requires: ncurses
  17. Vendor: Project Vine
  18. Distribution: Vine Linux
  19. %description
  20. Dialog is a utility that allows you to show dialog boxes (containing
  21. questions or messages) in TTY (text mode) interfaces. Dialog is called
  22. from within a shell script. The following dialog boxes are implemented:
  23. yes/no, menu, input, message, text, info, checklist, radiolist, and
  24. gauge.
  25. Install dialog if you would like to create TTY dialog boxes.
  26. %description -l ja
  27. Dialog は TTY (テキストモード) インタフェース上に、質問やメッセージを
  28. 含むダイアログボックスを表示するユーティリティです。
  29. Dialog はシェルスクリプトから (あるいはその中から) 呼び出すことが出来ます。
  30. 実装されているダイアログボックスには yes/no、メニュー、入力エリア、
  31. メッセージ、テキスト、情報、チェックリスト、ラジオボタン、ゲージ等が
  32. あります。
  33. TTY ダイアログボックスを作成したければ dialog をインストールして下さい。
  34. %package devel
  35. Summary: Development files for building applications with the dialog library
  36. Summary(ja): Dialog ライブラリ用開発ファイル
  37. Group: Development/Libraries
  38. Requires: %{name} = %{version}-%{release} ncurses-devel
  39. %description devel
  40. Dialog is a utility that allows you to show dialog boxes (containing
  41. questions or messages) in TTY (text mode) interfaces. This package
  42. contains the files needed for developing applications, which use the
  43. dialog library.
  44. %description devel -l ja
  45. Dialog は TTY (テキストモード) インタフェース上に、質問やメッセージを
  46. 含むダイアログボックスを表示するユーティリティです。
  47. このパッケージには Dialog ライブラリを使うアプリケーションの開発に
  48. 必要なファイルが収録されています。
  49. %prep
  50. %setup -q -n dialog-%{version}-%{SubVersion}
  51. %patch1 -p1 -b .incdir
  52. %patch2 -p1 -b .multilib
  53. %patch3 -p1 -b .libs
  54. %build
  55. %configure \
  56. --enable-nls \
  57. --with-libtool \
  58. --with-ncursesw \
  59. --includedir=%{_includedir}/dialog
  60. make %{?_smp_mflags}
  61. %install
  62. rm -rf %{buildroot}
  63. # prepare packaged samples
  64. rm -rf _samples
  65. mkdir _samples
  66. cp -a samples _samples
  67. rm -rf _samples/samples/install
  68. find _samples -type f -print0 | xargs -0 chmod a-x
  69. make install DESTDIR=%{buildroot}
  70. chmod 755 %{buildroot}%{_libdir}/libdialog.so.*.*.*
  71. rm -f %{buildroot}%{_libdir}/libdialog.{,l}a
  72. %find_lang %name
  73. %clean
  74. rm -rf %{buildroot}
  75. %post -p /sbin/ldconfig
  76. %postun -p /sbin/ldconfig
  77. %files -f %{name}.lang
  78. %defattr(-,root,root)
  79. %doc COPYING dialog.lsm README _samples/samples
  80. %{_bindir}/dialog
  81. %{_libdir}/libdialog.so.*
  82. %{_mandir}/man1/dialog.*
  83. %files devel
  84. %defattr(-,root,root,-)
  85. %{_bindir}/dialog-config
  86. %{_includedir}/dialog
  87. %{_libdir}/libdialog.so
  88. %{_mandir}/man3/dialog.*
  89. %changelog
  90. * Fri Mar 23 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.1-1.svn20110707
  91. - new upstream release
  92. - introduce -devel subpackage; sync with 1.1-15.20110707.fc17
  93. * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 1.0.20060221-1vl5
  94. - applied new versioning policy, spec in utf-8
  95. * Sun Jan 21 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.20060221-1vl1
  96. - new upstream release
  97. based on 1.0.20060221-1 from Fedora development
  98. * Tue Oct 19 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.20040731-1vl1
  99. - new upstream release
  100. based on 1.0.20040731-1 from Fedora development
  101. - add Requires ncurses
  102. * Fri Mar 26 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.9b-20031207.2vl1
  103. - s/Copyright/License/
  104. - based on 0.9b-20031207.2 from Fedora development
  105. * Mon Nov 24 2003 Harald Hoyer <harald@redhat.de> 0.9b-20031002.2
  106. - added gettext BuildReq (#109192)
  107. * Wed Dec 04 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.9b-20020814.1vl1
  108. - based on 0.9b-20020814.1 from Rawhide and built for Vine Linux
  109. * Tue Nov 05 2002 Harald Hoyer <harald@redhat.de> 0.9b-20020814.1
  110. * Fri Jun 21 2002 Tim Powers <timp@redhat.com>
  111. - automated rebuild
  112. * Sun May 26 2002 Tim Powers <timp@redhat.com>
  113. - automated rebuild
  114. * Wed May 22 2002 Harald Hoyer <harald@redhat.de> 0.9b-20020519.1
  115. - update to dialog-0.9b-20020519
  116. * Wed Jan 09 2002 Tim Powers <timp@redhat.com>
  117. - automated rebuild
  118. * Mon Jun 18 2001 Harald Hoyer <harald@redhat.de>
  119. - update to 20010527
  120. - added ncurses-devel dependency (#44733)
  121. - removed perl dependency
  122. * Tue Jan 09 2001 Harald Hoyer <harald@redhat.com>
  123. - update to 20001217
  124. * Mon Aug 7 2000 Bill Nottingham <notting@redhat.com>
  125. - fix one of the examples (#14073)
  126. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  127. - automatic rebuild
  128. * Wed Apr 5 2000 Bill Nottingham <notting@redhat.com>
  129. - rebuild against current ncurses/readline
  130. * Thu Feb 3 2000 Bill Nottingham <notting@redhat.com>
  131. - handle compressed man pages
  132. * Thu Jan 20 2000 Bill Nottingham <notting@redhat.com>
  133. - fix loop patch for reading from pipe
  134. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  135. - auto rebuild in the new build environment (release 14)
  136. * Fri Dec 18 1998 Bill Nottingham <notting@redhat.com>
  137. - build for 6.0
  138. * Tue Aug 11 1998 Jeff Johnson <jbj@redhat.com>
  139. - build root
  140. * Thu May 7 1998 Michael Maher <mike@redhat.com>
  141. - Added Sean Reifschneider <jafo@tummy.com> patches for
  142. infinite loop problems.
  143. * Fri Apr 24 1998 Prospector System <bugs@redhat.com>
  144. - translations modified for de, fr, tr
  145. * Wed Apr 15 1998 Erik Troan <ewt@redhat.com>
  146. - built against new ncurses
  147. * Thu Jul 10 1997 Erik Troan <ewt@redhat.com>
  148. - built against glibc