]>
Commit | Line | Data |
---|---|---|
4f160de4 | 1 | Summary: Data copying in presence of I/O errors |
5528d04f | 2 | Summary(pl.UTF-8): Kopiowanie danych z błędami wejścia/wyjścia |
4f160de4 | 3 | Name: ddrescue |
7235dfef | 4 | Version: 1.5 |
5 | Release: 1 | |
5675f9c7 | 6 | License: GPL v3+ |
4f160de4 | 7 | Group: Applications/System |
4b5ee2c2 | 8 | Source0: http://savannah.nongnu.org/download/ddrescue/%{name}-%{version}.tar.bz2 |
7235dfef | 9 | # Source0-md5: 91931e2b2163c8d7a5adc1959da3023f |
2b04df20 | 10 | Patch0: %{name}-info.patch |
8bb1dcb8 | 11 | Patch1: http://guru.multimedia.cx/wp-content/uploads/2006/08/ddrescue-patch.txt |
4f160de4 | 12 | URL: http://www.nongnu.org/ddrescue/ddrescue.html |
752885db | 13 | BuildRequires: libstdc++-devel |
469ad9ec | 14 | BuildRequires: rpmbuild(macros) >= 1.167 |
4f160de4 | 15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
16 | ||
17 | %description | |
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. | |
20 | ||
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 | |
23 | gaps. | |
24 | ||
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. | |
30 | ||
4b5ee2c2 JB |
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. | |
34 | ||
9d25d2c8 JR |
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. | |
4b5ee2c2 | 39 | |
9d25d2c8 JR |
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. | |
4b5ee2c2 | 43 | |
9d25d2c8 | 44 | Jeśli mamy dwie lub więcej kopii uszkodzonego pliku, płyty itp. i |
4b5ee2c2 | 45 | uruchomimy ddrescue na wszystkich z nich z tym samym plikiem |
9d25d2c8 JR |
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. | |
4b5ee2c2 | 49 | |
9d25d2c8 JR |
50 | Jeśli użyjemy opcji obsługi pliku z listą złych bloków w ddrescue dane |
51 | będą odzyskiwane bardzo wydajnie. | |
4f160de4 | 52 | |
53 | %prep | |
54 | %setup -q | |
0487855c | 55 | %patch0 -p1 |
8bb1dcb8 | 56 | %patch1 -p1 |
4f160de4 | 57 | |
58 | %build | |
0487855c PS |
59 | ./configure \ |
60 | --prefix=%{_prefix} \ | |
61 | --infodir=%{_infodir} \ | |
62 | --mandir=%{_mandir} | |
63 | ||
4f160de4 | 64 | %{__make} \ |
65 | CXX="%{__cxx}" \ | |
0487855c | 66 | CXXFLAGS="%{rpmcxxflags}" |
4f160de4 | 67 | |
68 | %install | |
69 | rm -rf $RPM_BUILD_ROOT | |
0487855c PS |
70 | |
71 | %{__make} install install-man \ | |
72 | DESTDIR=$RPM_BUILD_ROOT | |
4f160de4 | 73 | |
74 | %clean | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
0487855c PS |
77 | %post |
78 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 | |
79 | ||
80 | %postun | |
81 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 | |
82 | ||
4f160de4 | 83 | %files |
84 | %defattr(644,root,root,755) | |
b58fc7e6 | 85 | %doc AUTHORS ChangeLog NEWS README |
4f160de4 | 86 | %attr(755,root,root) %{_bindir}/ddrescue |
73590886 | 87 | %{_infodir}/*.info* |
4b5ee2c2 | 88 | %{_mandir}/man1/* |