[ttcp] Fixed patches, thus package compiles successfully
Michal Sekletar
msekleta at fedoraproject.org
Wed Aug 17 15:04:37 UTC 2011
commit d7cf39311010a9c1a7affcfe0547504eb0fd2639
Author: Michal Sekletar <msekleta at redhat.com>
Date: Wed Aug 17 16:56:11 2011 +0200
Fixed patches, thus package compiles successfully
ttcp-inet.patch | 13 -------------
ttcp-malloc.patch | 2 +-
ttcp.c | 2 +-
ttcp.spec | 8 +++++++-
4 files changed, 9 insertions(+), 16 deletions(-)
---
diff --git a/ttcp-malloc.patch b/ttcp-malloc.patch
index 1f7f78e..481cb77 100644
--- a/ttcp-malloc.patch
+++ b/ttcp-malloc.patch
@@ -12,7 +12,7 @@
* Public Domain. Distribution Unlimited.
*/
#ifndef lint
- static char RCSid[] = "ttcp.c $Revision: 1.2 $";
+ static char RCSid[] = "ttcp.c $Revision: 1.12 $";
+/* avoid warning: `RCSid' defined but not used */
+static char * useRCSid = ( RCSid + ( (char *)&useRCSid - (char *)&useRCSid ) );
#endif
diff --git a/ttcp.c b/ttcp.c
index 03d173a..0edd963 100644
--- a/ttcp.c
+++ b/ttcp.c
@@ -36,7 +36,7 @@
* Public Domain. Distribution Unlimited.
*/
#ifndef lint
-static char RCSid[] = "ttcp.c $Revision: 1.1 $";
+static char RCSid[] = "ttcp.c $Revision: 1.12 $";
#endif
#define BSD43
diff --git a/ttcp.spec b/ttcp.spec
index e1221a1..f0683ce 100644
--- a/ttcp.spec
+++ b/ttcp.spec
@@ -1,13 +1,14 @@
Summary: A tool for testing TCP connections
Name: ttcp
Version: 1.12
-Release: 21%{?dist}
+Release: 22%{?dist}
URL: ftp://ftp.sgi.com/sgi/src/ttcp/
Source0: ftp://ftp.sgi.com/sgi/src/ttcp/ttcp.c
Source1: ftp://ftp.sgi.com/sgi/src/ttcp/ttcp.1
Source2: ftp://ftp.sgi.com/sgi/src/ttcp/README
Patch0: ttcp-big.patch
Patch1: ttcp-malloc.patch
+Patch2: ttcp-GNU.patch
BuildRequires: glibc-headers
Group: Applications/Internet
License: Public Domain
@@ -24,6 +25,7 @@ more accurate results.
cp %{SOURCE0} %{SOURCE1} %{SOURCE2} .
%patch0 -p1 -b .big
%patch1 -p1 -b .malloc
+%patch2 -p1 -b .GNU
chmod 644 *
%build
@@ -45,6 +47,10 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/*/*
%changelog
+* Wed Aug 17 2011 Michal Sekletar <msekleta at redhat.com> - 1.12-22
+- Minor fixes, source file ttcp.c can be patched successfully
+- ttcp-inet.patch no longer needed - removed from repository
+
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.12-21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
More information about the scm-commits
mailing list