[dt] Initial build

okozina okozina at fedoraproject.org
Thu Apr 19 20:43:15 UTC 2012


commit 94f9f486ad1f5263aa25e2f5e158523eab5548c7
Author: Ondrej Kozina <okozina at redhat.com>
Date:   Thu Apr 19 22:41:21 2012 +0200

    Initial build

 .gitignore             |    1 +
 dt-17.55-manpage.patch |   16 ++++++++++++
 dt.spec                |   61 ++++++++++++++++++++++++++++++++++++++++++++++++
 sources                |    1 +
 4 files changed, 79 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..c71e2bd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/dt-source-v17.55.tar.gz
diff --git a/dt-17.55-manpage.patch b/dt-17.55-manpage.patch
new file mode 100644
index 0000000..baad4be
--- /dev/null
+++ b/dt-17.55-manpage.patch
@@ -0,0 +1,16 @@
+diff --git a/Documentation/dt.man b/Documentation/dt.man
+index af32831..d4960cf 100644
+--- a/Documentation/dt.man
++++ b/Documentation/dt.man
+@@ -299,7 +299,7 @@ Log File Format Keywords:
+ .TP
+ %iodir
+ The I/O direction.
+-.tP
++.TP
+ %iotype
+ The I/O type.
+ .TP
+-- 
+1.7.8.5
+
diff --git a/dt.spec b/dt.spec
new file mode 100644
index 0000000..b675db5
--- /dev/null
+++ b/dt.spec
@@ -0,0 +1,61 @@
+Name:		dt
+Version:	17.55
+Release:	1%{?dist}
+Summary:	Generic data test program
+Group:		Applications/System
+
+License:	MIT
+URL:		http://www.scsifaq.org/RMiller_Tools/dt.html
+# The following location has been
+# kindly provided by author himself
+Source0: http://dl.dropbox.com/u/74235410/dt-source-%{version}.tar.gz
+Patch0: dt-17.55-manpage.patch
+
+%description
+dt is a generic data test program used to verify proper operation of
+peripherals, file systems, device drivers, or any data stream supported by the
+operating system. In its' simplest mode of operation, dt writes and then
+verifies its' default data pattern, then displays performance statistics and
+other test parameters before exiting. Since verification of data is performed,
+dt can be thought of as a generic diagnostic tool.
+
+dt command lines are similar to the dd program, which is popular on most UNIX
+systems. It contains numerous options to give the user control of various test
+parameters.
+
+dt has been used to successfully test disks, tapes, serial lines, parallel
+lines, pipes, and memory mapped files. In fact, dt can be used for any device
+that allows the standard open, read, write, and close system calls. Special
+support is necessary for some devices, such as serial lines, for setting up the
+speed, parity, data bits, etc. 
+
+Available documentation is located in %{_defaultdocdir}/%{name}-%{version}. Sample
+scripts and config data are installed in %{_datadir}/%{name}.
+
+%prep
+%setup -q -n dt.d
+%patch0 -p1
+
+%build
+make %{?_smp_mflags} CFLAGS="%{optflags} -DAIO -DFIFO -DMMAP -D__linux__ -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DTHREADS" -f Makefile.linux
+
+%install
+install -d -m755 $RPM_BUILD_ROOT%{_sbindir}
+install -d -m755 $RPM_BUILD_ROOT%{_mandir}/man8
+install -d -m755 $RPM_BUILD_ROOT%{_datadir}/%{name}
+install -d -m755 $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-%{version}/html
+install -m755 dt $RPM_BUILD_ROOT%{_sbindir}
+install -m644 Documentation/dt.man $RPM_BUILD_ROOT%{_mandir}/man8/%{name}.8
+install -m755 Scripts/dt? $RPM_BUILD_ROOT%{_datadir}/%{name}
+install -m644 data/pattern_* $RPM_BUILD_ROOT%{_datadir}/%{name}
+install -m644 html/* $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-%{version}/html
+
+%files
+%doc Documentation/*.pdf Documentation/dt-UsersGuide.txt Documentation/LINUX-Notes Documentation/IOT-Example README.1st LICENSE WhatsNewFiles/*
+%{_sbindir}/%{name}
+%{_datadir}/%{name}
+%{_mandir}/man8/%{name}.*.gz
+
+%changelog
+* Thu Apr 19 2012 Ondrej Kozina <okozina at redhat.com> - 17.55-1
+- Initial build
diff --git a/sources b/sources
index e69de29..f645e46 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+7494abd69b3d377f1fe0d81461549f86  dt-source-v17.55.tar.gz


More information about the scm-commits mailing list