File ddpt.spec of Package ddpt
#
# spec file for package ddpt
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define _bindir /bin
Name: ddpt
Version: 0.95
Release: 0
Summary: Disk Dump Utility with SCSI Pass-Through Support
License: BSD-3-Clause
Group: System/Base
URL: http://sg.danny.cz/sg/ddpt.html
Source: http://sg.danny.cz/sg/p/ddpt-%{version}.tar.xz
BuildRequires: pkgconfig
BuildRequires: xz
BuildRoot: %{_tmppath}/build-%{name}-%{version}
%description
dd is a Unix command line utility for copying data. ddpt adds features for
efficiently copying large amounts of data to and from disks. Apart from
accessing disks using traditional Unix read() and write() calls, ddpt can
optionally use SCSI pass-through interfaces to send SCSI commands to perform a
copy. In Linux, the pass-through can be used to send TRIM commands to SSDs. It
is written for Linux with ports to FreeBSD, Solaris, and Windows.
Some features found in ddpt which are not present in the (GNU) dd
implementation:
* sparse writing (i.e. don't write buffer if all zeros)
* write sparing (i.e. don't write buffer if already same as destination)
* resume (after the copy has been interrupted)
* trim on output of copy, self trim (pt interface only)
* send output to a second file (see 'of2=' option)
* access devices directly via pass-through interface, bypassing file system
* accept numeric command line arguments in hexadecimal
* explicit controls over how much data is read into the copy buffer and then
written to output (separate from the logical block sizes of any device
involved)
%prep
%setup -q
%build
%configure
make %{?_smp_mflags}
%install
%make_install
%files
%defattr(-,root,root)
%doc AUTHORS COPYING CREDITS ChangeLog NEWS README TODO
/bin/ddpt
/bin/ddptctl
%{_mandir}/man8/ddpt.8%{ext_man}
%{_mandir}/man8/ddptctl.8%{ext_man}
%changelog