arjitkumar / rpms / ftp

Forked from rpms/ftp 5 years ago
Clone

Blame SPECS/ftp.spec

09d58c
Summary: The standard UNIX FTP (File Transfer Protocol) client
09d58c
Name: ftp
09d58c
Version: 0.17
09d58c
Release: 64%{?dist}
09d58c
License: BSD with advertising
09d58c
Group: Applications/Internet
09d58c
Source0: ftp://ftp.linux.org.uk/pub/linux/Networking/netkit/netkit-ftp-%{version}.tar.gz
09d58c
URL: ftp://ftp.linux.org.uk/pub/linux/Networking/netkit
09d58c
Patch1: netkit-ftp-0.17-pre20000412.pasv-security.patch
09d58c
Patch2: netkit-ftp-0.17-acct.patch
09d58c
Patch3: netkit-ftp.usagi-ipv6.patch
09d58c
Patch4: netkit-ftp-0.17-segv.patch
09d58c
Patch5: netkit-ftp-0.17-volatile.patch
09d58c
Patch6: netkit-ftp-0.17-runique_mget.patch
09d58c
Patch7: netkit-ftp-locale.patch
09d58c
Patch8: netkit-ftp-0.17-printf.patch
09d58c
Patch9: netkit-ftp-0.17-longint.patch
09d58c
Patch10: netkit-ftp-0.17-vsftp165083.patch
09d58c
Patch11: netkit-ftp-0.17-C-Frame121.patch
09d58c
Patch12: netkit-ftp-0.17-data.patch
09d58c
Patch13: netkit-ftp-0.17-multihome.patch
09d58c
Patch14: netkit-ftp-0.17-longnames.patch
09d58c
Patch15: netkit-ftp-0.17-multiipv6.patch
09d58c
Patch16: netkit-ftp-0.17-nodebug.patch
09d58c
Patch17: netkit-ftp-0.17-stamp.patch
09d58c
Patch18: netkit-ftp-0.17-sigseg.patch
09d58c
Patch19: netkit-ftp-0.17-size.patch
09d58c
Patch20: netkit-ftp-0.17-fdleak.patch
09d58c
Patch21: netkit-ftp-0.17-fprintf.patch
09d58c
Patch22: netkit-ftp-0.17-bitrate.patch
09d58c
Patch23: netkit-ftp-0.17-arg_max.patch
09d58c
Patch24: netkit-ftp-0.17-case.patch
09d58c
Patch25: netkit-ftp-0.17-chkmalloc.patch
09d58c
Patch26: netkit-ftp-0.17-man.patch
09d58c
Patch27: netkit-ftp-0.17-acct_ovl.patch
09d58c
Patch28: netkit-ftp-0.17-remove-nested-include.patch
09d58c
Patch29: netkit-ftp-0.17-linelen.patch
09d58c
Patch30: netkit-ftp-0.17-active-mode-option.patch
09d58c
Patch31: netkit-ftp-0.17-commands-leaks.patch
09d58c
Patch32: netkit-ftp-0.17-lsn-timeout.patch
09d58c
Patch33: netkit-ftp-0.17-getlogin.patch
09d58c
Patch34: netkit-ftp-0.17-token.patch
09d58c
09d58c
BuildRequires: glibc-devel, readline-devel, ncurses-devel
09d58c
09d58c
%description
09d58c
The ftp package provides the standard UNIX command-line FTP (File
09d58c
Transfer Protocol) client.  FTP is a widely used protocol for
09d58c
transferring files over the Internet and for archiving files.
09d58c
09d58c
If your system is on a network, you should install ftp in order to do
09d58c
file transfers.
09d58c
09d58c
%prep
09d58c
%setup -q -n netkit-ftp-%{version}
09d58c
%patch1 -p1
09d58c
%patch2 -p1 -b .acct
09d58c
%patch3 -p1 -b .ipv6
09d58c
%patch4 -p1 -b .segv
09d58c
%patch5 -p1 -b .volatile
09d58c
%patch6 -p1 -b .runique_mget
09d58c
%patch7 -p1 -b .locale
09d58c
%patch8 -p1 -b .printf
09d58c
%patch9 -p1 -b .longint
09d58c
%patch10 -p1 -b .vsftp165083
09d58c
%patch11 -p1 -b .C-Frame121
09d58c
%patch12 -p1 -b .data
09d58c
%patch13 -p1 -b .multihome
09d58c
%patch14 -p1 -b .patch
09d58c
%patch15 -p1 -b .multiipv6
09d58c
%patch16 -p1 -b .nodebug
09d58c
%patch17 -p1 -b .stamp
09d58c
%patch18 -p1 -b .sigseg
09d58c
%patch19 -p1 -b .size
09d58c
%patch20 -p1 -b .fdleak
09d58c
%patch21 -p1 -b .fprintf
09d58c
%patch22 -p1 -b .bitrate
09d58c
%patch23 -p1 -b .arg_max
09d58c
%patch24 -p1 -b .case
09d58c
%patch25 -p1 -b .chkmalloc
09d58c
%patch26 -p1 -b .man
09d58c
%patch27 -p1 -b .acct_ovl
09d58c
%patch28 -p1
09d58c
%patch29 -p1 -b .linelen
09d58c
%patch30 -p1 -b .activemode
09d58c
%patch31 -p1 -b .cmds-leaks
09d58c
%patch32 -p1 -b .lsn-timeout
09d58c
%patch33 -p1 -b .getlogin
09d58c
%patch34 -p1 -b .token
09d58c
09d58c
%build
09d58c
sh configure --with-c-compiler=gcc --enable-ipv6
09d58c
perl -pi -e '
09d58c
    s,^CC=.*$,CC=cc,;
09d58c
    s,-O2,\$(RPM_OPT_FLAGS) -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64,;
09d58c
    s,^BINDIR=.*$,BINDIR=%{_bindir},;
09d58c
    s,^MANDIR=.*$,MANDIR=%{_mandir},;
09d58c
    s,^SBINDIR=.*$,SBINDIR=%{_sbindir},;
09d58c
    ' MCONFIG
09d58c
09d58c
make %{?_smp_mflags}
09d58c
09d58c
%install
09d58c
mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
09d58c
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1
09d58c
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man5
09d58c
09d58c
make INSTALLROOT=${RPM_BUILD_ROOT} install
09d58c
09d58c
%files
09d58c
%{_bindir}/ftp
09d58c
%{_bindir}/pftp
09d58c
%{_mandir}/man1/ftp.*
09d58c
%{_mandir}/man1/pftp.*
09d58c
%{_mandir}/man5/netrc.*
09d58c
09d58c
%changelog
09d58c
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-64
09d58c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
09d58c
09d58c
* Tue Oct 30 2012 Jan Synáček <jsynacek@redhat.com> - 0.17-63
09d58c
- Fix buffer overflow in token parsing
09d58c
- Resolves: #871296
09d58c
09d58c
* Tue Oct 30 2012 Jan Synáček <jsynacek@redhat.com> - 0.17-62
09d58c
- Fix linelen patch
09d58c
- Resolves: #871290
09d58c
09d58c
* Wed Oct 03 2012 Jan Synáček <jsynacek@redhat.com> - 0.17-61
09d58c
- Fix: FTP client does not expand home directory correctly after sudo or su
09d58c
- Resolves: #861113
09d58c
09d58c
* Tue Sep 25 2012 Jan Synáček <jsynacek@redhat.com> - 0.17-60
09d58c
- Plug leaks in "put", "send", "append"
09d58c
- Add listening timeout
09d58c
09d58c
* Tue Aug 28 2012 Jan Synáček <jsynacek@redhat.com> - 0.17-59
09d58c
- Add active mode option
09d58c
09d58c
* Fri Aug 03 2012 Jan Synáček <jsynacek@redhat.com> - 0.17-58
09d58c
- Extend the input line buffer and the argument storage buffer
09d58c
- Prettify spec some more and remove trailing space
09d58c
09d58c
* Fri Jul 20 2012 Jan Synáček <jsynacek@redhat.com> - 0.17-57
09d58c
- Remove nested include (fix compilation in rawhide)
09d58c
09d58c
* Thu Jul 19 2012 Jan Synáček <jsynacek@redhat.com> - 0.17-56
09d58c
- Fixed Source0 and URL
09d58c
- Make spec fedora-review-friendly
09d58c
09d58c
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-56
09d58c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
09d58c
09d58c
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-55
09d58c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
09d58c
09d58c
* Fri Sep 09 2011 Jiri Skala <jskala@redhat.com> - 0.17-54
09d58c
- fixes #737016 - ftp: off-by-one in account command parsing
09d58c
09d58c
* Tue Mar 29 2011 Jiri Skala <jskala@redhat.com> - 0.17-53
09d58c
- fixes #673850 - ftp(1) manpage fixes
09d58c
09d58c
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-52
09d58c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
09d58c
09d58c
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-51
09d58c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
09d58c
09d58c
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-50
09d58c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
09d58c
09d58c
* Mon Dec 01 2008 Jiri Skala <jskala@redhat.com> - 0.17-49
09d58c
- Resolves: #473491  unchecked malloc
09d58c
09d58c
* Wed Apr 23 2008 Martin Nagy <mnagy@redhat.com> - 0.17-48
09d58c
- fix mget when using case
09d58c
- Resolves: #442712
09d58c
09d58c
* Mon Apr 07 2008 Martin Nagy <mnagy@redhat.com> - 0.17-47
09d58c
- Use sysconf to get ARG_MAX instead of a macro (#440782)
09d58c
09d58c
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.17-46
09d58c
- Autorebuild for GCC 4.3
09d58c
09d58c
* Mon Jan 28 2008 Marcela Maslanova <mmaslano@redhat.com> - 0.17-45
09d58c
- changed bitrate from 1e+03 KBytes/sec to 1000 kBytes/sec
09d58c
- Resolves: rhbz#430457
09d58c
09d58c
* Thu Nov 15 2007 Marcela Maslanova <mmaslano@redhat.com> - 0.17-44
09d58c
- using fprintf instead of printf
09d58c
09d58c
* Mon Oct 22 2007 Marcela Maslanova <mmaslano@redhat.com> - 0.17-43
09d58c
- feature: for cmd size is switching to TYPE_I automatized
09d58c
- bug: ftp leaks socket fds when it fails to open a file (#315241)
09d58c
- rhbz#306191
09d58c
09d58c
* Fri Aug 24 2007 Marcela Maslanova <mmaslano@redhat.com> - 0.17-42
09d58c
- rebuilt (for mass rebuild)
09d58c
- license tag checked
09d58c
09d58c
* Tue Aug 07 2007 Marcela Maslanova <mmaslano@redhat.com> - 0.17-41
09d58c
- #251074 add patch from Jan Kratochvil
09d58c
09d58c
* Wed Feb 15 2007 Marcela Maslanova <mmaslano@redhat.com> - 0.17-40
09d58c
- review again
09d58c
09d58c
* Wed Feb 14 2007 Marcela Maslanova <mmaslano@redhat.com> - 0.17-39
09d58c
- review again
09d58c
09d58c
* Mon Feb  7 2007 Marcela Maslanova <mmaslano@redhat.com> - 0.17-38
09d58c
- add gpl
09d58c
- spec fix 
09d58c
- rhbz#225774
09d58c
09d58c
* Tue Jan 30 2007 Marcela Maslanova <mmaslano@redhat.com> - 0.17-35
09d58c
- nodebug package
09d58c
09d58c
* Wed Sep 13 2006 Marcela Maslanova <mmaslano@redhat.com> - 0.17-33
09d58c
- rebuilt
09d58c
09d58c
* Wed Aug 2 2006 Marcela Maslanova <mmaslano@redhat.com> - 0.17-32.1.2.4
09d58c
- fix (#199145) patch for IPv6 multihome
09d58c
09d58c
* Thu Jul 25 2006 Marcela Maslanova <mmaslano@redhat.com> - 0.17-32.1.2.3
09d58c
- fix (#196103) patch for long filenames
09d58c
09d58c
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.17-32.1.2.1
09d58c
- rebuild
09d58c
09d58c
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.17-32.1.2
09d58c
- bump again for double-long bug on ppc(64)
09d58c
09d58c
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.17-32.1.1
09d58c
- rebuilt for new gcc4.1 snapshot and glibc changes
09d58c
09d58c
* Thu Jan 12 2006 Petr Raszyk <praszyk@redhat.com> - 0.17-32
09d58c
- support for multi-homed clients
09d58c
  See #171621, netkit-ftp-0.17-multihome.patch
09d58c
09d58c
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
09d58c
- rebuilt
09d58c
09d58c
* Fri Dec 2 2005 Petr Raszyk <praszyk@redhat.com> - 0.17-31
09d58c
- ftp does not close socket descriptor (if the remote file
09d58c
  does not exist).
09d58c
  See #174599, netkit-ftp-0.17-data.patch
09d58c
09d58c
* Wed Oct 26 2005 Petr Raszyk <praszyk@redhat.com> - 0.17-30
09d58c
- The patch netkit-ftp-0.17-C-Frame121.patch adds some
09d58c
  comments/hints for C-Frame 121. It can be removed any time.
09d58c
09d58c
* Tue Aug 30 2005 Petr Raszyk <praszyk@redhat.com> - 0.17-29
09d58c
- rebuild
09d58c
09d58c
* Tue Aug 30 2005 Petr Raszyk <praszyk@redhat.com> - 0.17-28
09d58c
- This 'hack' will avoid a bug in ftp-server
09d58c
  (  < vsftpd-2.0.1-5   ). See #165083 (server prints the 
09d58c
  '150 FILE:...' line twice).
09d58c
  This patch can be (later ?) removed. 
09d58c
09d58c
* Mon Aug 22 2005 Petr Raszyk <praszyk@redhat.com> - 0.17-27
09d58c
- overflow using 'hash mode' (printing '#' but
09d58c
  not reading data from network - #79367)
09d58c
09d58c
* Tue May 24 2005 Miloslav Trmac <mitr@redhat.com> - 0.17-26
09d58c
- Fix passive mode with SELinux (#158234, patch by Nalin Dahyabhai)
09d58c
- Fix format string mismatch
09d58c
09d58c
* Fri Mar 04 2005 Jiri Ryska <jryska@redhat.com>
09d58c
- rebuilt
09d58c
09d58c
* Wed Jan 12 2005 Tim Waugh <twaugh@redhat.com> 0.17-24
09d58c
- Rebuilt for new readline.
09d58c
09d58c
* Wed Dec 15 2004 Tim Waugh <twaugh@redhat.com>
09d58c
- Call setlocale() so that readline works correctly (bug #142265).
09d58c
09d58c
* Tue Dec  7 2004 Thomas Woerner <twoerner@redhat.com> 0.17-23
09d58c
- fixed mget with runique (#79367)
09d58c
09d58c
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
09d58c
- rebuilt
09d58c
09d58c
* Mon Jun 14 2004 Alan Cox <alan@redhat.com>
09d58c
- Re-arranged some totally bogus old bezerkly code that could
09d58c
  segfault ftp on connection loss. (BZ #122295)
09d58c
09d58c
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
09d58c
- rebuilt
09d58c
09d58c
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
09d58c
- rebuilt
09d58c
09d58c
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
09d58c
- rebuilt
09d58c
09d58c
* Fri Dec 13 2002 Elliot Lee <sopwith@redhat.com>
09d58c
- Rebuild
09d58c
09d58c
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
09d58c
- automated rebuild
09d58c
09d58c
* Thu May 23 2002 Tim Powers <timp@redhat.com>
09d58c
- automated rebuild
09d58c
09d58c
* Fri Apr 12 2002 Bernhard Rosenkraenzer <bero@redhat.com> 0.17-13
09d58c
- Recompile with support for files > 2 GB
09d58c
09d58c
* Mon Jun 25 2001 Bernhard Rosenkraenzer <bero@redhat.com> 0.17-12
09d58c
- Add some Build dependencies (#45007)
09d58c
09d58c
* Fri May 18 2001 Bernhard Rosenkraenzer <bero@redhat.com> 0.17-11
09d58c
- Actually apply Patch #3
09d58c
09d58c
* Fri May 11 2001 Bernhard Rosenkraenzer <bero@redhat.com> 0.17-10
09d58c
- Rebuild with new readline
09d58c
09d58c
* Sun Apr 15 2001 Bernhard Rosenkraenzer <bero@redhat.com>
09d58c
- Add IPv6 patch (RFE #35642)
09d58c
09d58c
* Wed Apr  4 2001 Jakub Jelinek <jakub@redhat.com>
09d58c
- don't let configure to guess compiler, it can pick up egcs
09d58c
09d58c
* Sun Jan 21 2001 Bernhard Rosenkraenzer <bero@redhat.com>
09d58c
- Update to 0.17 final
09d58c
- Fix up ACCT support in netrc (Bug #17353)
09d58c
09d58c
* Wed Aug 16 2000 Philipp Knirsch <pknirsch@redhat.com>
09d58c
- Switched the default transfer protocol from PORT to PASV as proposed on
09d58c
  bugzilla (#16134)
09d58c
- Fixed a small compiler warning in ftp.c line 886
09d58c
09d58c
* Fri Jul 14 2000 Jeff Johnson <jbj@redhat.com>
09d58c
- add netrc man page (#7443).
09d58c
- fix possible buffer overflows in ftp client.
09d58c
09d58c
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
09d58c
- automatic rebuild
09d58c
09d58c
* Sun Jun 18 2000 Jeff Johnson <jbj@redhat.com>
09d58c
- FHS packaging.
09d58c
- update to 0.17-pre20000412.
09d58c
09d58c
* Wed Apr  5 2000 Bernhard Rosenkraenzer <bero@redhat.com>
09d58c
- rebuild with current libreadline
09d58c
09d58c
* Fri Mar 24 2000 Bernhard Rosenkraenzer <bero@redhat.com>
09d58c
- 0.17
09d58c
09d58c
* Fri Feb  4 2000 Bill Nottingham <notting@redhat.com>
09d58c
- handle compressed man pages
09d58c
09d58c
* Tue Jan  4 2000 Bill Nottingham <notting@redhat.com>
09d58c
- the ftp client does not require inetd
09d58c
09d58c
* Wed Dec 22 1999 Jeff Johnson <jbj@redhat.com>
09d58c
- update to 0.16.
09d58c
09d58c
* Mon Aug 30 1999 Jeff Johnson <jbj@redhat.com>
09d58c
- update to 0.15.
09d58c
- enable readline support (#3796).
09d58c
09d58c
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
09d58c
- auto rebuild in the new build environment (release 22)
09d58c
09d58c
* Mon Mar 15 1999 Jeff Johnson <jbj@redhat.com>
09d58c
- compile for 6.0.
09d58c
09d58c
* Tue Aug 11 1998 Jeff Johnson <jbj@redhat.com>
09d58c
- build root
09d58c
09d58c
* Mon Apr 27 1998 Prospector System <bugs@redhat.com>
09d58c
- translations modified for de, fr, tr