]>
Commit | Line | Data |
---|---|---|
ef40b99a | 1 | Summary: A variant of the standard Unix command dd |
2 | Summary(pl.UTF-8): Alternatywna implementacja standardowej uniksowej komendy dd | |
3 | Name: ddpt | |
e4f7c83a JB |
4 | Version: 0.97 |
5 | Release: 1 | |
31b29f2a JB |
6 | License: BSD |
7 | Group: Applications/System | |
f63945fe | 8 | Source0: http://sg.danny.cz/sg/p/%{name}-%{version}.tar.xz |
e4f7c83a | 9 | # Source0-md5: 5217a3a2f316b8d1e5ea6e4645cd8ec6 |
ef40b99a | 10 | URL: http://sg.danny.cz/sg/ddpt.html |
31b29f2a | 11 | BuildRequires: autoconf >= 2.50 |
ef40b99a | 12 | BuildRequires: automake |
f5a14e55 | 13 | BuildRequires: libstdc++-devel |
f63945fe JB |
14 | BuildRequires: sg3_utils-devel >= 1.38 |
15 | BuildRequires: tar >= 1:1.22 | |
16 | BuildRequires: xz | |
17 | Requires: sg3_utils >= 1.38 | |
ef40b99a | 18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
19 | ||
20 | %description | |
21 | The ddpt utility is a variant of the standard Unix command dd which | |
22 | copies files. The ddpt utility specializes in files that are block | |
23 | devices. For block devices that understand the SCSI command set, finer | |
24 | grain control over the copy may be available via a SCSI pass-through | |
25 | interface. | |
26 | ||
27 | The types of block devices that are supported are disks (known as | |
28 | direct access devices in SCSI) and cd/dvd/bd devices. Tape drives are | |
29 | not supported. It is becoming more common for ATA disks (especially | |
30 | SATA) to be accessed by an operating system using SCSI commands. ATA | |
31 | disks are not always directly connected and transports such as USB, | |
32 | IEEE1394 (FireWire) and iSCSI use SCSI commands. Protocol translation | |
33 | from SCSI to ATA (SAT standard) has been around for several years and | |
34 | many implementations are now reliable. | |
35 | ||
36 | The ddpt utility is a more generic version of the Linux specific sg_dd | |
37 | utility found in the sg3_utils package. | |
38 | ||
39 | %description -l pl.UTF-8 | |
40 | ddpt jest implementacją standardowej komendy Uniksa dd, służącej do | |
41 | kopiowania plików. ddpt zostało napisane szczególnie z myślą o | |
31b29f2a | 42 | plikach będących urządzeniami blokowymi. Dla urządzeń blokowych, które |
ef40b99a | 43 | rozumieją zestaw komend SCSI, jest dostępna bardziej szczegółowa |
31b29f2a JB |
44 | kontrola nad procesem kopiowania poprzez interface SCSI pass-through. |
45 | ||
46 | Obsługiwane urządzenia blokowe to dyski (znane jako urządzenia SCSI | |
47 | o bezpośrednim dostępnie) oraz urządzenia cd/dvd/bd. Napędy taśmowe | |
48 | nie są obsługiwane. Coraz bardziej popularny jest dostęp poprzez | |
49 | polecenia SCSI do dysków ATA (zwłaszcza SATA). Dyski ATA nie zawsze są | |
50 | podłączone bezpośrednio, a transporty takie jak USB, IEEE1394 | |
51 | (FireWire) oraz iSCSI używają poleceń SCSI. Tłumaczenie protokołu z | |
52 | SCSI na ATA (standard SAT) istnieje od kilku lat i dostępne jest wiele | |
53 | implementacji. | |
54 | ||
55 | Narzędzie ddpt jest bardziej ogólną wersją specyficznego dla Linuksa | |
56 | narzędzia sg_dd, które można znaleźć w pakiecie sg3_utils. | |
ef40b99a | 57 | |
58 | %prep | |
59 | %setup -q | |
60 | ||
61 | %build | |
ef40b99a | 62 | %{__aclocal} |
63 | %{__autoconf} | |
64 | %{__autoheader} | |
65 | %{__automake} | |
66 | %configure | |
67 | %{__make} | |
68 | ||
69 | %install | |
70 | rm -rf $RPM_BUILD_ROOT | |
ef40b99a | 71 | |
72 | %{__make} install \ | |
73 | DESTDIR=$RPM_BUILD_ROOT | |
74 | ||
75 | %clean | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
78 | %files | |
79 | %defattr(644,root,root,755) | |
31b29f2a | 80 | %doc AUTHORS COPYING CREDITS ChangeLog README TODO |
ef40b99a | 81 | %attr(755,root,root) %{_bindir}/ddpt |
f5a14e55 | 82 | %attr(755,root,root) %{_bindir}/ddpt_sgl |
f63945fe | 83 | %attr(755,root,root) %{_bindir}/ddptctl |
ef40b99a | 84 | %{_mandir}/man8/ddpt.8* |
f5a14e55 | 85 | %{_mandir}/man8/ddpt_sgl.8* |
f63945fe | 86 | %{_mandir}/man8/ddptctl.8* |