rpms/ftp/devel netkit-ftp-0.17-bitrate.patch, NONE, 1.1 ftp.spec, 1.43, 1.44
Marcela Mašláňová (mmaslano)
fedora-extras-commits at redhat.com
Mon Jan 28 11:07:42 UTC 2008
Author: mmaslano
Update of /cvs/pkgs/rpms/ftp/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv27976
Modified Files:
ftp.spec
Added Files:
netkit-ftp-0.17-bitrate.patch
Log Message:
- changed bitrate from 1e+03 KBytes/sec to 1000 kBytes/sec
- Resolves: rhbz#430457
netkit-ftp-0.17-bitrate.patch:
--- NEW FILE netkit-ftp-0.17-bitrate.patch ---
diff -up netkit-ftp-0.17/ftp/ftp.c.old netkit-ftp-0.17/ftp/ftp.c
--- netkit-ftp-0.17/ftp/ftp.c.old 2008-01-28 10:23:17.000000000 +0100
+++ netkit-ftp-0.17/ftp/ftp.c 2008-01-28 10:32:01.000000000 +0100
@@ -1609,8 +1609,8 @@ ptransfer(const char *direction, long lo
s = td.tv_sec + (td.tv_usec / 1000000.);
#define nz(x) ((x) == 0 ? 1 : (x))
bs = bytes / nz(s);
- printf("%lld bytes %s in %.3g secs (%.2g Kbytes/sec)\n",
- bytes, direction, s, bs / 1024.0);
+ printf("%lld bytes %s in %.3g secs (%.2f Kbytes/sec)\n",
+ bytes, direction, s, bs / 1000.0);
}
}
Index: ftp.spec
===================================================================
RCS file: /cvs/pkgs/rpms/ftp/devel/ftp.spec,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -r1.43 -r1.44
--- ftp.spec 15 Nov 2007 12:52:22 -0000 1.43
+++ ftp.spec 28 Jan 2008 11:07:04 -0000 1.44
@@ -1,7 +1,7 @@
Summary: The standard UNIX FTP (File Transfer Protocol) client
Name: ftp
Version: 0.17
-Release: 44%{?dist}
+Release: 45%{?dist}
License: BSD with advertising
Group: Applications/Internet
Source0: ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/netkit-ftp-%{version}.tar.gz
@@ -27,6 +27,7 @@
Patch19: netkit-ftp-0.17-size.patch
Patch20: netkit-ftp-0.17-fdleak.patch
Patch21: netkit-ftp-0.17-fprintf.patch
+Patch22: netkit-ftp-0.17-bitrate.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: glibc-devel, readline-devel, ncurses-devel
@@ -62,6 +63,7 @@
%patch19 -p1 -b .size
%patch20 -p1 -b .fdleak
%patch21 -p1 -b .fprintf
+%patch22 -p1 -b .bitrate
%build
sh configure --with-c-compiler=gcc --enable-ipv6
@@ -95,6 +97,10 @@
%{_mandir}/man5/netrc.*
%changelog
+* Mon Jan 28 2008 Marcela Maslanova <mmaslano at redhat.com> - 0.17-45
+- changed bitrate from 1e+03 KBytes/sec to 1000 kBytes/sec
+- Resolves: rhbz#430457
+
* Thu Nov 15 2007 Marcela Maslanova <mmaslano at redhat.com> - 0.17-44
- using fprintf instead of printf
More information about the fedora-extras-commits
mailing list