[ttcp] Fix deprecated manpage macros

Michal Sekletar msekleta at fedoraproject.org
Tue Aug 30 11:49:16 UTC 2011


commit c839190e16f0bf245cd0ae3dc187f5b176a72b83
Author: Michal Sekletar <msekleta at redhat.com>
Date:   Tue Aug 30 13:46:11 2011 +0200

    Fix deprecated manpage macros

 ttcp-man.patch |   67 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 ttcp.spec      |    7 +++++-
 2 files changed, 73 insertions(+), 1 deletions(-)
---
diff --git a/ttcp-man.patch b/ttcp-man.patch
new file mode 100644
index 0000000..3dd3475
--- /dev/null
+++ b/ttcp-man.patch
@@ -0,0 +1,67 @@
+diff -up ./ttcp.1.orig ./ttcp.1
+--- ./ttcp.1.orig	2011-08-29 11:47:53.211780496 +0200
++++ ./ttcp.1	2011-08-29 11:48:16.653449623 +0200
+@@ -1,4 +1,12 @@
+ '\"macro stdmacro
++.de EX
++.nf
++.ft CW
++..
++.de EE
++.ft R
++.fi
++..
+ .TH TTCP 1 local
+ .SH NAME
+ ttcp \- test TCP and UDP performance
+@@ -16,7 +24,6 @@ ttcp \- test TCP and UDP performance
+ .RB [ \-D ]
+ .RB [ \-v]
+ .RB host
+-.RB [ < in ]
+ .br
+ .B ttcp \-r
+ .RB [ \-u ]
+@@ -30,7 +37,6 @@ ttcp \- test TCP and UDP performance
+ .RB [ \-B ]
+ .RB [ \-T ]
+ .RB [ \-v ]
+-.RB [ > out ]
+ .SH DESCRIPTION
+ .I Ttcp
+ times the transmission and reception of data between two systems using 
+@@ -52,26 +58,26 @@ bottlenecks.
+ can also be used as a ``network pipe'' for moving directory hierarchies
+ between systems when routing problems exist or when the use of other
+ mechanisms is undesirable. For example, on the destination machine, use:
+-.Ex
++.EX
+ ttcp \-r \-B | tar xvpf \-
+-.Ee
++.EE
+ .PP
+ and on the source machine:
+-.Ex
++.EX
+ tar cf \- directory | ttcp \-t dest_machine
+-.Ee
++.EE
+ .PP
+ Additional intermediate machines can be included by:
+-.Ex
++.EX
+ ttcp \-r | ttcp \-t next_machine
+-.Ee
++.EE
+ .SH OPTIONS
+ .TP 10
+ \-t
+-Transmit mode.
++Transmit mode.  Transmit data presented on standard input.
+ .TP 10
+ \-r
+-Receive mode.
++Receive mode. Send received data to standard output.
+ .TP 10
+ \-u
+ Use UDP instead of TCP.
diff --git a/ttcp.spec b/ttcp.spec
index e2219c1..826fd9f 100644
--- a/ttcp.spec
+++ b/ttcp.spec
@@ -1,7 +1,7 @@
 Summary: A tool for testing TCP connections
 Name: ttcp
 Version: 1.12
-Release: 23%{?dist}
+Release: 24%{?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
@@ -9,6 +9,7 @@ Source2: ftp://ftp.sgi.com/sgi/src/ttcp/README
 Patch0: ttcp-big.patch
 Patch1: ttcp-malloc.patch
 Patch2: ttcp-GNU.patch
+Patch3: ttcp-man.patch
 BuildRequires: glibc-headers
 Group: Applications/Internet
 License: Public Domain
@@ -25,6 +26,7 @@ cp -a %{SOURCE0} %{SOURCE1} %{SOURCE2} .
 %patch0 -p1 -b .big
 %patch1 -p1 -b .malloc
 %patch2 -p1 -b .GNU
+%patch3 -p1 -b .man
 
 %build
 %{__cc} -o ttcp $RPM_OPT_FLAGS ttcp.c
@@ -41,6 +43,9 @@ install -p -m644 ttcp.1 $RPM_BUILD_ROOT%{_mandir}/man1
 %{_mandir}/man1/ttcp.1*
 
 %changelog
+* Tue Aug 30 2011 Michal Sekletar <msekleta at redhat.com> - 1.12-24
+- fix manpage
+
 * Thu Aug 18 2011 Michal Sekletar <msekleta at redhat.com> - 1.12-23
 - spec clean up
 - added option to cp and install, thus ownership and timestamps are preserved


More information about the scm-commits mailing list