pdksh-vl.spec 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. Summary: A public domain clone of the Korn shell (ksh).
  2. Summary(ja): Korn shell (ksh) のパブリックドメイン版クローン
  3. Name: pdksh
  4. Version: 5.2.14
  5. Release: 24%{?_dist_release}
  6. License: Public Domain
  7. Group: System Environment/Shells
  8. Patch0: pdksh-5.2.14-manloc.patch
  9. Patch1: pdksh-5.2.14-patches1.patch
  10. Patch2: pdksh-5.2.14-alignia64.patch
  11. Patch3: pdksh-5.2.14-patches2.patch
  12. Patch4: pdksh-5.2.14-coreutils-posix-fix.patch
  13. Source: ftp://ftp.cs.mun.ca/pub/pdksh/pdksh-%{version}.tar.gz
  14. URL: http://www.cs.mun.ca/~michael/pdksh/
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  16. PreReq: grep, fileutils
  17. %description
  18. The pdksh package contains PD-ksh, a clone of the Korn shell (ksh).
  19. The ksh shell is a command interpreter intended for both interactive
  20. and shell script use. Ksh's command language is a superset of the sh
  21. shell language.
  22. Install the pdksh package if you want to use a version of the ksh
  23. shell.
  24. %description -l ja
  25. pdksh パッケージには Korn シェル (ksh) のクローンである PD-ksh が
  26. 収められています.ksh のシェルは対話的な使用とシェルスクリプトの使用の
  27. 両方を念頭に置いて作成されたコマンドインタプリタです.ksh のコマンド文法は
  28. sh シェル言語の上位互換となっています.
  29. ksh シェルを使いたい場合は pdksh パッケージをインストールして下さい.
  30. %prep
  31. %setup -q
  32. %patch0 -p1
  33. %patch1 -p1
  34. %patch2 -p1
  35. %patch3 -p1
  36. %patch4 -p1 -b .coreutils-posix-fix
  37. %build
  38. export CFLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE"
  39. %configure --bindir=/bin
  40. make
  41. %install
  42. rm -rf $RPM_BUILD_ROOT
  43. %makeinstall bindir=$RPM_BUILD_ROOT/bin
  44. mkdir -p $RPM_BUILD_ROOT%{_bindir}
  45. ln -sf ../../bin/ksh $RPM_BUILD_ROOT%{_bindir}/ksh
  46. ln -sf ../../bin/ksh $RPM_BUILD_ROOT%{_bindir}/pdksh
  47. ln -sf ksh.1 $RPM_BUILD_ROOT/%{_mandir}/man1/pdksh.1
  48. %clean
  49. rm -rf $RPM_BUILD_ROOT
  50. %post
  51. if [ ! -f /etc/shells ]; then
  52. echo "/bin/ksh" > /etc/shells
  53. else
  54. if ! grep -q '^/bin/ksh$' /etc/shells ; then
  55. echo "/bin/ksh" >> /etc/shells
  56. fi
  57. fi
  58. %postun
  59. if [ ! -f /bin/ksh ]; then
  60. grep -v /bin/ksh /etc/shells > /etc/shells.new
  61. mv /etc/shells.new /etc/shells
  62. fi
  63. %verifyscript
  64. echo -n "Looking for ksh in /etc/shells... "
  65. if ! grep '^/bin/ksh$' /etc/shells > /dev/null; then
  66. echo "missing"
  67. echo "ksh missing from /etc/shells" >&2
  68. else
  69. echo "found"
  70. fi
  71. %files
  72. %defattr(-,root,root)
  73. %doc README NOTES PROJECTS NEWS BUG-REPORTS
  74. /bin/ksh
  75. %{_bindir}/ksh
  76. %{_bindir}/pdksh
  77. %{_mandir}/*/*
  78. %changelog
  79. * Thu Oct 09 2008 Shu KONNO <owa@bg.wakwak.com> 5.2.14-24vl5
  80. - added pdksh-5.2.14-coreutils-posix-fix.patch from gentoo
  81. - applied new versioning policy, spec in utf-8
  82. * Sun Jul 15 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.2.14-23vl1
  83. - based on 5.2.14-23 from Rawhide
  84. - Tue Jun 03 2003 Karsten Hopp <karsten@redhat.de> 5.2.14-22
  85. - rebuild for AS to support large files (#76307, #87937)
  86. - Fri Jun 28 2002 Trond Eivind Glomsrφd <teg@redhat.com> 5.2.14-19
  87. - Make it handle large files by adding compiler flags (#67662)
  88. - Tue Jan 23 2001 Trond Eivind Glomsrφd <teg@redhat.com>
  89. - add fileutils and grep to PreReq: (#24720)
  90. - Mon Jan 08 2001 Trond Eivind Glomsrφd <teg@redhat.com>
  91. - add patch to fix alignment problems on IA64 (#23351)
  92. - rebuild with new toolchains
  93. * Wed Jan 10 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  94. - 5.2.14-9vl1
  95. - based on 5.2.14-9 from Rawhide
  96. - use better macros (%%{_bindir})
  97. - added Japanese summary and description
  98. * Tue Nov 28 2000 Trond Eivind Glomsr <teg@redhat.com>
  99. - redid some patches, which should fix #19517
  100. * Mon Aug 14 2000 Trond Eivind Glomsr <teg@redhat.com>
  101. - use relative symlinks (#16127)
  102. * Sat Jul 29 2000 Trond Eivind Glomsr <teg@redhat.com>
  103. - added patch to handle readonly variables correctly
  104. * Mon Jul 24 2000 Trond Eivind Glomsr <teg@redhat.com>
  105. - add patch from author to fix "-x" problem (#10758)
  106. - add another author patch (some fixes wrt. job handling)
  107. * Fri Jul 21 2000 Trond Eivind Glomsr <teg@redhat.com>
  108. - add URL
  109. - use %%makeinstall and add a patch to make it work
  110. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  111. - automatic rebuild
  112. * Tue Jun 13 2000 Trond Eivind Glomsr <teg@redhat.com>
  113. - use %%{_mandir}, %%configure and %{_tmpdir}
  114. * Mon Feb 7 2000 Jeff Johnson <jbj@redhat.com>
  115. - compress man pages.
  116. * Tue Jul 20 1999 Jeff Johnson <jbj@redhat.com>
  117. - update to 5.2.14.
  118. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  119. - auto rebuild in the new build environment (release 3)
  120. * Wed Mar 17 1999 Jeff Johnson <jbj@redhat.com>
  121. - glibc 2.1 doesn't init sys_siglist for 32 <= i < NSIG (#1473)
  122. * Fri Mar 12 1999 Jeff Johnson <jbj@redhat.com>
  123. - upgrade to 5.2.13.
  124. * Sun Aug 16 1998 Jeff Johnson <jbj@redhat.com>
  125. - build root
  126. * Mon Apr 27 1998 Prospector System <bugs@redhat.com>
  127. - translations modified for de, fr, tr
  128. * Wed Oct 21 1997 Cristian Gafton <gafton@redhat.com>
  129. - fixed the spec file
  130. * Fri Jul 18 1997 Erik Troan <ewt@redhat.com>
  131. - built against glibc