]>
Commit | Line | Data |
---|---|---|
1 | Summary: Data copying in presence of I/O errors | |
2 | Summary(pl.UTF-8): Kopiowanie danych z błędami wejścia/wyjścia | |
3 | Name: ddrescue | |
4 | Version: 1.5 | |
5 | Release: 1 | |
6 | License: GPL v3+ | |
7 | Group: Applications/System | |
8 | Source0: http://savannah.nongnu.org/download/ddrescue/%{name}-%{version}.tar.bz2 | |
9 | # Source0-md5: 91931e2b2163c8d7a5adc1959da3023f | |
10 | Patch0: %{name}-info.patch | |
11 | Patch1: http://guru.multimedia.cx/wp-content/uploads/2006/08/ddrescue-patch.txt | |
12 | URL: http://www.nongnu.org/ddrescue/ddrescue.html | |
13 | BuildRequires: libstdc++-devel | |
14 | BuildRequires: rpmbuild(macros) >= 1.167 | |
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 | ||
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 | ||
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. | |
39 | ||
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. | |
43 | ||
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. | |
49 | ||
50 | Jeśli użyjemy opcji obsługi pliku z listą złych bloków w ddrescue dane | |
51 | będą odzyskiwane bardzo wydajnie. | |
52 | ||
53 | %prep | |
54 | %setup -q | |
55 | %patch0 -p1 | |
56 | %patch1 -p1 | |
57 | ||
58 | %build | |
59 | ./configure \ | |
60 | --prefix=%{_prefix} \ | |
61 | --infodir=%{_infodir} \ | |
62 | --mandir=%{_mandir} | |
63 | ||
64 | %{__make} \ | |
65 | CXX="%{__cxx}" \ | |
66 | CXXFLAGS="%{rpmcxxflags}" | |
67 | ||
68 | %install | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %{__make} install install-man \ | |
72 | DESTDIR=$RPM_BUILD_ROOT | |
73 | ||
74 | %clean | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
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 | ||
83 | %files | |
84 | %defattr(644,root,root,755) | |
85 | %doc AUTHORS ChangeLog NEWS README | |
86 | %attr(755,root,root) %{_bindir}/ddrescue | |
87 | %{_infodir}/*.info* | |
88 | %{_mandir}/man1/* |