1 Summary: Data copying in presence of I/O errors
2 Summary(pl.UTF-8): Kopiowanie danych z błędami wejścia/wyjścia
7 Group: Applications/System
8 Source0: http://download.savannah.gnu.org/releases/ddrescue/%{name}-%{version}.tar.lz
9 # Source0-md5: 00cd788fbd6bc5a6205c3199f7557fda
10 Patch0: %{name}-info.patch
11 URL: http://www.nongnu.org/ddrescue/ddrescue.html
12 BuildRequires: libstdc++-devel
13 BuildRequires: rpmbuild(macros) >= 1.167
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 ddrescue copies data from one file or block device (hard disk, cdrom,
19 etc) to another, trying hard to rescue data in case of read errors.
21 ddrescue does not truncate the output file if not asked to. So,
22 everytime you run it on the same output file, it tries to fill in the
25 If you have two or more copies of a damaged file, cdrom, etc, and run
26 ddrescue on all of them, one at a time, with the same output file, you
27 will probably obtain a complete and error-free file. This is so
28 because the probability of having damaged areas at the same places on
29 different input files is very low.
31 If you also use the bad blocks file feature of ddrescue, the data will
32 be rescued very efficiently. Also you can interrupt the rescue at any
33 time and resume it later.
35 %description -l pl.UTF-8
36 ddrescue kopiuje dane z jednego pliku lub urządzenia blokowego (dysku
37 twardego, płyty CD-ROM itp.) do innego, próbując usilnie uratować dane
38 w przypadku błędów odczytu.
40 ddrescue nie skraca pliku wyjściowego, jeśli nie zostanie o to
41 poproszony. Za każdym uruchomieniem na tym samym pliku wyjściowym
42 próbuje wypełnić luki.
44 Jeśli mamy dwie lub więcej kopii uszkodzonego pliku, płyty itp. i
45 uruchomimy ddrescue na wszystkich z nich z tym samym plikiem
46 wyjściowym, prawdopodobnie dostaniemy cały plik bez błędów. Stanie się
47 tak dlatego, że prawdopodobieństwo uszkodzenia pliku w tych samych
48 miejscach na różnych kopiach jest bardzo małe.
50 Jeśli użyjemy opcji obsługi pliku z listą złych bloków w ddrescue dane
51 będą odzyskiwane bardzo wydajnie.
55 lzip -dc %{SOURCE0} | tar xf - -C ..
61 --infodir=%{_infodir} \
66 CXXFLAGS="%{rpmcxxflags}"
69 rm -rf $RPM_BUILD_ROOT
71 %{__make} install install-man \
72 DESTDIR=$RPM_BUILD_ROOT
75 rm -rf $RPM_BUILD_ROOT
77 %post -p /sbin/postshell
78 -/usr/sbin/fix-info-dir -c %{_infodir}
80 %postun -p /sbin/postshell
81 -/usr/sbin/fix-info-dir -c %{_infodir}
84 %defattr(644,root,root,755)
85 %doc AUTHORS ChangeLog NEWS README
86 %attr(755,root,root) %{_bindir}/ddrescue
87 %{_infodir}/ddrescue.info*
88 %{_mandir}/man1/ddrescue.1*