Sophie

Sophie

distrib > Mandriva > 10.2 > i586 > by-pkgid > 81f0792305c31f43bad9b793a0bcdc1c > files > 4

ttcp-1.12-2mdk.src.rpm

%define name	ttcp
%define version	1.12
%define release	2mdk

Name: %{name}
Version: %{version}
Release: %{release}
Source0: ftp://ftp.sgi.com/sgi/src/ttcp/ttcp.c.bz2
Source1: ftp://ftp.sgi.com/sgi/src/ttcp/ttcp.1.bz2
Source2: ftp://ftp.sgi.com/sgi/src/ttcp/ttcp.README.bz2
Summary: A tool for testing TCP connections.
Group: Monitoring
License: Public Domain
BuildRoot: %{_tmppath}/%{name}-%{version}-root

%description
ttcp is a tool for testing the throughput of TCP connections. Unlike
other tools which might be used for this purpose (such as FTP
clients), ttcp does not read or write data from or to a disk while
operating, which helps ensure more accurate results.

%prep
%setup -c -T

bzcat %{SOURCE0} > ttcp.c
bzcat %{SOURCE1} > ttcp.1
bzcat %{SOURCE2} > README
chmod 644 *

%build
%{__cc} $RPM_OPT_FLAGS -o ttcp ttcp.c

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%_bindir \
	$RPM_BUILD_ROOT%_mandir/man1
install -m 755 ttcp $RPM_BUILD_ROOT%_bindir
install -m 644 ttcp.1 $RPM_BUILD_ROOT%_mandir/man1

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README
%attr(755,root,root) %{_bindir}/*
%attr(755,root,root) %{_mandir}/*/*

%changelog
* Wed Aug 25 2004 Giuseppe Ghibò <ghibo@mandrakesoft.com> 1.12-2mdk
- Rebuilt.

* Mon Mar 01 2004 Giuseppe Ghibò <ghibo@mandrakesoft.com> 1.12-1mdk
- Initial release based on RedHat version 1.12-6.

* Thu Dec 12 2002 Tim Powers <timp@redhat.com> 1.12-6
- rebuild on all arches

* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
- automated rebuild

* Sun May 26 2002 Tim Powers <timp@redhat.com>
- automated rebuild

* Fri May 17 2002 Nalin Dahyabhai <nalin@redhat.com> 1.12-3
- rebuild in new environment

* Tue May 15 2001 Nalin Dahyabhai <nalin@redhat.com> 1.12-2
- fix defattr

* Thu May 10 2001 Nalin Dahyabhai <nalin@redhat.com> 1.12-1
- build initial package