screen-vl.spec 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. Summary: A screen manager that supports multiple logins on one terminal.
  2. Summary(ja): スクリーンマネージャ - 一つの端末で多重ログイン
  3. Name: screen
  4. Version: 4.0.3
  5. Release: 2%{?_dist_release}
  6. License: GPL
  7. Group: Applications/System
  8. Source0: ftp://ftp.uni-erlangen.de/pub/utilities/screen/screen-%{version}.tar.gz
  9. Patch6: screen-3.9.8-hascrypt.patch
  10. Patch11: screen-3.9.11-utf8-install.patch
  11. # obtained Patch11 from redhat
  12. Patch12: screen-4.0.3-stropts.patch
  13. Requires: ncurses
  14. Requires(post,preun): /sbin/install-info
  15. BuildRequires: ncurses-devel, texinfo, perl
  16. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  17. Vendor: Project Vine
  18. Distribution: Vine Linux
  19. %description
  20. The screen utility allows you to have multiple logins on just one
  21. terminal. Screen is useful for users who telnet into a machine or
  22. are connected via a dumb terminal, but want to use more than just
  23. one login.
  24. Install the screen package if you need a screen manager that can
  25. support multiple logins on one terminal.
  26. %description -l ja
  27. 一つの端末プログラムだけで多重のログインを可能にするスクリーン管理
  28. ユーティリティです。telnetで操作しているユーザやダムターミナルから
  29. 接続しているユーザでもっと多くの端末画面を使いたい場合にはとても
  30. 便利なプログラムです。
  31. %prep
  32. %setup -q
  33. # avoid duplicated type declaration of crypt.
  34. %patch6 -p1 -b .hascrypt
  35. # to make directories under $RPM_BUILD_ROOT
  36. %patch11 -p1 -b .utf8
  37. # do not include <sys/stropts.h>
  38. %patch12 -p1 -b .stropts
  39. %build
  40. autoconf
  41. %configure \
  42. --enable-pam \
  43. --enable-locate \
  44. --enable-telnet \
  45. --enable-colors256 \
  46. --with-sys-screenrc=%{_sysconfdir}/screenrc
  47. # configure can figure out these values.
  48. #perl -pi -e 's|.*#.*PTYMODE.*|#define PTYMODE 0620|' config.h
  49. #perl -pi -e 's|.*#.*PTYGROUP.*|#define PTYGROUP 5|' config.h
  50. perl -pi -e 's|.*#undef HAVE_BRAILLE.*|#define HAVE_BRAILLE 1|' config.h
  51. perl -pi -e 's|/usr/local/etc/screenrc|/etc/screenrc|' etc/etcscreenrc doc/*
  52. perl -pi -e 's|/local/etc/screenrc|/etc/screenrc|' doc/*
  53. rm doc/screen.info*
  54. make CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE"
  55. %install
  56. rm -rf $RPM_BUILD_ROOT
  57. mkdir -p $RPM_BUILD_ROOT/etc/skel
  58. perl -pi -e 's,/usr/local/etc/screenrc,/etc/screenrc,' etc/etcscreenrc
  59. %makeinstall DDESTDIR=$RPM_BUILD_ROOT
  60. ( cd $RPM_BUILD_ROOT
  61. # gzip -9nf .%{_infodir}/screen.info*
  62. # strip .%{_bindir}/screen-%{version}
  63. rm -f .%{_bindir}/screen.old .%{_bindir}/screen
  64. mv .%{_bindir}/screen-%{version} .%{_bindir}/screen
  65. )
  66. install -c -m 0444 etc/etcscreenrc $RPM_BUILD_ROOT/etc/screenrc
  67. install -c -m 0644 etc/screenrc $RPM_BUILD_ROOT/etc/skel/.screenrc
  68. %clean
  69. rm -rf $RPM_BUILD_ROOT
  70. %post
  71. /sbin/install-info %{_infodir}/screen.info.* %{_infodir}/dir --entry="* screen: (screen). Terminal multiplexer."
  72. if [ -d /tmp/screens ]; then
  73. # we're not setuid root anymore
  74. chmod 777 /tmp/screens
  75. fi
  76. %preun
  77. if [ $1 = 0 ]; then
  78. /sbin/install-info --delete %{_infodir}/screen.info.* %{_infodir}/dir --entry="* screen: (screen). Terminal multiplexer."
  79. fi
  80. %files
  81. %defattr(-,root,root)
  82. %doc COPYING NEWS* README doc/FAQ TODO doc/README.DOTSCREEN terminfo
  83. #%attr(755,root,root) %{_bindir}/screen
  84. %{_bindir}/screen
  85. %{_mandir}/man1/screen.*
  86. %{_infodir}/screen.info*
  87. %{_datadir}/screen
  88. %config(noreplace) /etc/screenrc
  89. %config /etc/skel/.screenrc
  90. %changelog
  91. * Tue Sep 30 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 4.0.3-2
  92. - spec in UTF-8
  93. - add Patch12 to build against glibc-2.8
  94. - fix typo (from --enable-color256 to --enable-colors256)
  95. thanks Minematsu Hiroki-san for pointing this out
  96. * Wed Mar 26 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.0.3-1vl5
  97. - used %%{?_dist_release}
  98. * Mon Nov 20 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 4.0.3-0vl4
  99. - rebuild for VineSeed
  100. * Mon Nov 20 2006 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 4.0.3-0vl3
  101. - rebuilt without libelf-devel (ppc.rpm linked with libelf.so.0)
  102. * Thu Nov 02 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 4.0.3-0vl2
  103. - add BuildRequires: texinfo, perl
  104. * Tue Oct 31 2006 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 4.0.3-0vl1
  105. - upstream release with security fix (build for Vine 4.0)
  106. * Sat Jul 01 2006 NAKAMURA Kenta <kenta@vinelinux.org> 4.0.2-0vl2
  107. - use License instead of Copyright
  108. * Sat Jun 5 2004 IWAI, Masaharu <iwai@alib.jp> 4.0.2-0vl1
  109. - new upstream release
  110. - add %%{_datadir}/screen in %%files
  111. - no replace configuration file: /etc/screenrc
  112. * Mon Mar 17 2003 IWAI Masaharu <iwai@alib.jp> 3.9.13-0vl2
  113. - eliminate %%{_bindir} from %%files section
  114. * Thu Sep 12 2002 Yoshihiro Ota <ota@j.email.ne.jp> 3.9.13-0vl1
  115. - update to 3.9.13
  116. - add FAQ instead of a symbolic link to FAQ
  117. - remove unnecessary patches
  118. * Thu Nov 1 2001 Shoji Matsumoto <shom@vinelinux.org> 3.9.10-0vl1
  119. - update to 3.9.10 (security update)
  120. * Mon Aug 27 2001 Shoji Matsumoto <shom@vinelinux.org> 3.9.9-0vl1
  121. - update to 3.9.9
  122. - rebuild by current Seed
  123. - remove makeinfo patch, jbj patch
  124. * Sat Mar 10 2001 sagami@vinelinux.org
  125. - made minor spec fixes
  126. * Fri Mar 2 2001 Shoji Matsumoto <shom@vinelinux.org> 3.9.8-0vl1
  127. - update to 3.9.8
  128. - update 3.9.5-jbj.patch for 3.9.8
  129. - add hascrypt patch
  130. * Sat Dec 09 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  131. - 3.9.5-1vl3
  132. - built with gcc-2.95.3
  133. - partially used rpmmacros
  134. * Tue Oct 24 2000 Masato Bito <masato@nets.ce.hiroshima-cu.ac.jp>
  135. - 3.9.5-1vl2
  136. - fixed %files section to handle compressed man page
  137. * Fri Mar 3 2000 Taro FUNAKI <taro@KU3G.org>
  138. - updated to 3.9.5
  139. * Sun Feb 20 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  140. - 3.9.4-5vl1
  141. - merged missing patches from screen-3.9.4-3 on Red Hat 6.1
  142. * Wed Oct 20 1999 Bill Nottingham <notting@redhat.com>
  143. - you know, we weren't just patching in Unix98 pty support for fun.
  144. * Wed Aug 18 1999 Bill Nottingham <notting@redhat.com>
  145. - put screendir in ~
  146. * Wed Aug 18 1999 Jeff Johnson <jbj@redhat.com>
  147. - update to 3.9.4.
  148. * Wed Jun 16 1999 Bill Nottingham <notting@redhat.com>
  149. - force tty permissions/group
  150. * Wed Jun 5 1999 Dale Lovelace <dale@redhat.com>
  151. - permissions on /etc/skel/.screenrc to 644
  152. * Mon Apr 26 1999 Bill Nottingham <notting@redhat.com>
  153. - take out warning of directory permissions so root can still use screen
  154. * Wed Apr 07 1999 Bill Nottingham <notting@redhat.com>
  155. - take out warning of directory ownership so root can still use screen
  156. * Wed Apr 07 1999 Erik Troan <ewt@redhat.com>
  157. - patched in utempter support, turned off setuid bit
  158. * Fri Mar 26 1999 Erik Troan <ewt@redhat.com>
  159. - fixed unix98 pty support
  160. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  161. - auto rebuild in the new build environment (release 3)
  162. * Thu Mar 11 1999 Bill Nottingham <notting@redhat.com>
  163. - add patch for Unix98 pty support
  164. * Mon Dec 28 1998 Jeff Johnson <jbj@redhat.com>
  165. - update to 3.7.6.
  166. * Sun Aug 16 1998 Jeff Johnson <jbj@redhat.com>
  167. - build root
  168. * Mon Apr 27 1998 Prospector System <bugs@redhat.com>
  169. - translations modified for de, fr, tr
  170. * Wed Oct 21 1997 Cristian Gafton <gafton@redhat.com>
  171. - upgraded to 3.7.4
  172. * Wed Oct 08 1997 Erik Troan <ewt@redhat.com>
  173. - removed glibc 1.99 specific patch
  174. * Tue Sep 23 1997 Erik Troan <ewt@redhat.com>
  175. - added install-info support
  176. * Mon Jul 21 1997 Erik Troan <ewt@redhat.com>
  177. - built against glibc