ftp-vl.spec 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. Summary: The standard UNIX FTP (File Transfer Protocol) client.
  2. Summary(ja): 標準的な UNIX FTP (ファイル転送プロトコル) クライアント
  3. Name: ftp
  4. Version: 0.17
  5. Release: 33%{?_dist_release}
  6. License: BSD
  7. Group: Applications/Internet
  8. Source0: ftp://ftp.uk.linux.org/pub/linux/Networking/netkit-devel/netkit-ftp-%{version}.tar.bz2
  9. Patch1: netkit-ftp-0.17-pre20000412.pasv-security.patch
  10. Patch2: netkit-ftp-0.17-acct.patch
  11. Patch3: netkit-ftp.usagi-ipv6.patch
  12. Patch4: netkit-ftp-0.17-segv.patch
  13. Patch5: netkit-ftp-0.17-volatile.patch
  14. Patch6: netkit-ftp-0.17-runique_mget.patch
  15. Patch7: netkit-ftp-locale.patch
  16. Patch8: netkit-ftp-0.17-printf.patch
  17. Patch9: netkit-ftp-0.17-longint.patch
  18. Patch10: netkit-ftp-0.17-vsftp165083.patch
  19. Patch11: netkit-ftp-0.17-C-Frame121.patch
  20. Patch12: netkit-ftp-0.17-data.patch
  21. Patch13: netkit-ftp-0.17-multihome.patch
  22. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  23. BuildRequires: gcc, glibc-devel, readline-devel, ncurses-devel, perl
  24. %description
  25. The ftp package provides the standard UNIX command-line FTP (File
  26. Transfer Protocol) client. FTP is a widely used protocol for
  27. transferring files over the Internet and for archiving files.
  28. If your system is on a network, you should install ftp in order to do
  29. file transfers.
  30. %description -l ja
  31. この ftp パッケージは標準的な UNIX コマンドラインベースの FTP (フ
  32. ァイル転送プロトコル) クライアントです。FTP はインターネット経由で
  33. ファイルを転送したり、ファイルを格納したりするのに広く使われている
  34. プロトコルです。
  35. もしあなたのシステムがネットワークに接続されていて、そこにファイ
  36. ルを転送したい場合は、このパッケージをインストールして下さい。
  37. %prep
  38. %setup -q -n netkit-ftp-%{version}
  39. %patch1 -p1
  40. %patch2 -p1 -b .acct
  41. %patch3 -p1 -b .ipv6
  42. %patch4 -p1 -b .segv
  43. %patch5 -p1 -b .volatile
  44. %patch6 -p1 -b .runique_mget
  45. %patch7 -p1 -b .locale
  46. %patch8 -p1 -b .printf
  47. %patch9 -p1 -b .longint
  48. %patch10 -p1 -b .vsftp165083
  49. %patch11 -p1 -b .C-Frame121
  50. %patch12 -p1 -b .data
  51. %patch13 -p1 -b .multihome
  52. %build
  53. sh configure --with-c-compiler=gcc --enable-ipv6
  54. perl -pi -e '
  55. s,^CC=.*$,CC=cc,;
  56. s,-O2,\$(RPM_OPT_FLAGS) -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64,;
  57. s,^BINDIR=.*$,BINDIR=%{_bindir},;
  58. s,^MANDIR=.*$,MANDIR=%{_mandir},;
  59. s,^SBINDIR=.*$,SBINDIR=%{_sbindir},;
  60. ' MCONFIG
  61. make %{?_smp_mflags}
  62. %install
  63. rm -rf ${RPM_BUILD_ROOT}
  64. mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
  65. mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1
  66. mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man5
  67. make INSTALLROOT=${RPM_BUILD_ROOT} install
  68. %clean
  69. rm -rf ${RPM_BUILD_ROOT}
  70. %files
  71. %defattr(-,root,root)
  72. %{_bindir}/ftp
  73. %{_bindir}/pftp
  74. %{_mandir}/man1/ftp.*
  75. %{_mandir}/man1/pftp.*
  76. %{_mandir}/man5/netrc.*
  77. %changelog
  78. * Tue Aug 5 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.17-33
  79. - rebuilt with readline 5.2
  80. - applied new versioning policy
  81. - spec in UTF-8
  82. * Sat Apr 15 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.17-32vl1
  83. - rebuilt with readline 5.1
  84. - added patches(9-13) from Fedora
  85. * Thu Jan 12 2006 Petr Raszyk <praszyk@redhat.com> - 0.17-32
  86. - support for multi-homed clients
  87. See #171621, netkit-ftp-0.17-multihome.patch
  88. * Fri Dec 2 2005 Petr Raszyk <praszyk@redhat.com> - 0.17-31
  89. - ftp does not close socket descriptor (if the remote file
  90. does not exist).
  91. See #174599, netkit-ftp-0.17-data.patch
  92. * Wed Oct 26 2005 Petr Raszyk <praszyk@redhat.com> - 0.17-30
  93. - The patch netkit-ftp-0.17-C-Frame121.patch adds some
  94. comments/hints for C-Frame 121. It can be removed any time.
  95. * Tue Aug 30 2005 Petr Raszyk <praszyk@redhat.com> - 0.17-28
  96. - This 'hack' will avoid a bug in ftp-server
  97. ( < vsftpd-2.0.1-5 ). See #165083 (server prints the
  98. '150 FILE:...' line twice).
  99. This patch can be (later ?) removed.
  100. * Mon Aug 22 2005 Petr Raszyk <praszyk@redhat.com> - 0.17-27
  101. - overflow using 'hash mode' (printing '#' but
  102. not reading data from network - #79367)
  103. * Sat May 28 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.17-26vl1
  104. - added patches from Fedora
  105. * Tue May 24 2005 Miloslav Trmac <mitr@redhat.com> - 0.17-26
  106. - Fix passive mode with SELinux (#158234, patch by Nalin Dahyabhai)
  107. - Fix format string mismatch
  108. * Wed Dec 15 2004 Tim Waugh <twaugh@redhat.com>
  109. - Call setlocale() so that readline works correctly (bug #142265).
  110. * Tue Dec 7 2004 Thomas Woerner <twoerner@redhat.com> 0.17-23
  111. - fixed mget with runique (#79367)
  112. * Mon Jun 14 2004 Alan Cox <alan@redhat.com>
  113. - Re-arranged some totally bogus old bezerkly code that could
  114. segfault ftp on connection loss. (BZ #122295)
  115. - added Japanese summary and description from spec translation project
  116. * Wed Apr 02 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 0.17-15vl2
  117. - rebuild with readline-4.3
  118. * Wed Dec 04 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.17-15vl1
  119. - based on 0.17-15 from Rawhide and built for Vine Linux
  120. * Fri Jun 21 2002 Tim Powers <timp@redhat.com>
  121. - automated rebuild
  122. * Thu May 23 2002 Tim Powers <timp@redhat.com>
  123. - automated rebuild
  124. * Fri Apr 12 2002 Bernhard Rosenkraenzer <bero@redhat.com> 0.17-13
  125. - Recompile with support for files > 2 GB
  126. * Mon Jun 25 2001 Bernhard Rosenkraenzer <bero@redhat.com> 0.17-12
  127. - Add some Build dependencies (#45007)
  128. * Fri May 18 2001 Bernhard Rosenkraenzer <bero@redhat.com> 0.17-11
  129. - Actually apply Patch #3
  130. * Fri May 11 2001 Bernhard Rosenkraenzer <bero@redhat.com> 0.17-10
  131. - Rebuild with new readline
  132. * Sun Apr 15 2001 Bernhard Rosenkraenzer <bero@redhat.com>
  133. - Add IPv6 patch (RFE #35642)
  134. * Wed Apr 4 2001 Jakub Jelinek <jakub@redhat.com>
  135. - don't let configure to guess compiler, it can pick up egcs
  136. * Sun Jan 21 2001 Bernhard Rosenkraenzer <bero@redhat.com>
  137. - Update to 0.17 final
  138. - Fix up ACCT support in netrc (Bug #17353)
  139. * Wed Aug 16 2000 Philipp Knirsch <pknirsch@redhat.com>
  140. - Switched the default transfer protocol from PORT to PASV as proposed on
  141. bugzilla (#16134)
  142. - Fixed a small compiler warning in ftp.c line 886
  143. * Fri Jul 14 2000 Jeff Johnson <jbj@redhat.com>
  144. - add netrc man page (#7443).
  145. - fix possible buffer overflows in ftp client.
  146. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  147. - automatic rebuild
  148. * Sun Jun 18 2000 Jeff Johnson <jbj@redhat.com>
  149. - FHS packaging.
  150. - update to 0.17-pre20000412.
  151. * Wed Apr 5 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  152. - rebuild with current libreadline
  153. * Fri Mar 24 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  154. - 0.17
  155. * Fri Feb 4 2000 Bill Nottingham <notting@redhat.com>
  156. - handle compressed man pages
  157. * Tue Jan 4 2000 Bill Nottingham <notting@redhat.com>
  158. - the ftp client does not require inetd
  159. * Wed Dec 22 1999 Jeff Johnson <jbj@redhat.com>
  160. - update to 0.16.
  161. * Mon Aug 30 1999 Jeff Johnson <jbj@redhat.com>
  162. - update to 0.15.
  163. - enable readline support (#3796).
  164. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  165. - auto rebuild in the new build environment (release 22)
  166. * Mon Mar 15 1999 Jeff Johnson <jbj@redhat.com>
  167. - compile for 6.0.
  168. * Tue Aug 11 1998 Jeff Johnson <jbj@redhat.com>
  169. - build root
  170. * Mon Apr 27 1998 Prospector System <bugs@redhat.com>
  171. - translations modified for de, fr, tr