]>
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 |
20f62a29 | 4 | Version: 1.28 |
ad31fc9b | 5 | Release: 1 |
5675f9c7 | 6 | License: GPL v3+ |
4f160de4 | 7 | Group: Applications/System |
ad31fc9b | 8 | Source0: http://download.savannah.gnu.org/releases/ddrescue/%{name}-%{version}.tar.lz |
20f62a29 | 9 | # Source0-md5: 0444167cc19dffb70fe1530ae1c35fa4 |
2b04df20 | 10 | Patch0: %{name}-info.patch |
8a50eb0b | 11 | URL: http://www.gnu.org/software/ddrescue/ |
62b5ebec | 12 | BuildRequires: help2man |
752885db | 13 | BuildRequires: libstdc++-devel |
ad31fc9b | 14 | BuildRequires: lzip |
732dba2c JB |
15 | BuildRequires: rpmbuild(macros) >= 1.167 |
16 | BuildRequires: tar >= 1:1.22 | |
62b5ebec | 17 | BuildRequires: texinfo |
4f160de4 | 18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
19 | ||
20 | %description | |
21 | ddrescue copies data from one file or block device (hard disk, cdrom, | |
22 | etc) to another, trying hard to rescue data in case of read errors. | |
23 | ||
24 | ddrescue does not truncate the output file if not asked to. So, | |
25 | everytime you run it on the same output file, it tries to fill in the | |
26 | gaps. | |
27 | ||
28 | If you have two or more copies of a damaged file, cdrom, etc, and run | |
29 | ddrescue on all of them, one at a time, with the same output file, you | |
30 | will probably obtain a complete and error-free file. This is so | |
31 | because the probability of having damaged areas at the same places on | |
32 | different input files is very low. | |
33 | ||
4b5ee2c2 JB |
34 | If you also use the bad blocks file feature of ddrescue, the data will |
35 | be rescued very efficiently. Also you can interrupt the rescue at any | |
36 | time and resume it later. | |
37 | ||
9d25d2c8 JR |
38 | %description -l pl.UTF-8 |
39 | ddrescue kopiuje dane z jednego pliku lub urządzenia blokowego (dysku | |
40 | twardego, płyty CD-ROM itp.) do innego, próbując usilnie uratować dane | |
41 | w przypadku błędów odczytu. | |
4b5ee2c2 | 42 | |
9d25d2c8 JR |
43 | ddrescue nie skraca pliku wyjściowego, jeśli nie zostanie o to |
44 | poproszony. Za każdym uruchomieniem na tym samym pliku wyjściowym | |
45 | próbuje wypełnić luki. | |
4b5ee2c2 | 46 | |
9d25d2c8 | 47 | Jeśli mamy dwie lub więcej kopii uszkodzonego pliku, płyty itp. i |
4b5ee2c2 | 48 | uruchomimy ddrescue na wszystkich z nich z tym samym plikiem |
9d25d2c8 JR |
49 | wyjściowym, prawdopodobnie dostaniemy cały plik bez błędów. Stanie się |
50 | tak dlatego, że prawdopodobieństwo uszkodzenia pliku w tych samych | |
51 | miejscach na różnych kopiach jest bardzo małe. | |
4b5ee2c2 | 52 | |
9d25d2c8 JR |
53 | Jeśli użyjemy opcji obsługi pliku z listą złych bloków w ddrescue dane |
54 | będą odzyskiwane bardzo wydajnie. | |
4f160de4 | 55 | |
56 | %prep | |
732dba2c | 57 | %setup -q |
0487855c | 58 | %patch0 -p1 |
4f160de4 | 59 | |
37477fa7 JB |
60 | %{__rm} doc/ddrescue.info* |
61 | ||
4f160de4 | 62 | %build |
0487855c | 63 | ./configure \ |
8a50eb0b JB |
64 | CXX="%{__cxx}" \ |
65 | CPPFLAGS="%{rpmcppflags}" \ | |
66 | CXXFLAGS="%{rpmcxxflags}" \ | |
67 | LDFLAGS="%{rpmldflags}" \ | |
0487855c PS |
68 | --prefix=%{_prefix} \ |
69 | --infodir=%{_infodir} \ | |
70 | --mandir=%{_mandir} | |
71 | ||
37477fa7 | 72 | %{__make} all info |
4f160de4 | 73 | |
74 | %install | |
75 | rm -rf $RPM_BUILD_ROOT | |
0487855c | 76 | |
62b5ebec | 77 | %{__make} install \ |
0487855c | 78 | DESTDIR=$RPM_BUILD_ROOT |
4f160de4 | 79 | |
62b5ebec JB |
80 | %{__rm} -f $RPM_BUILD_ROOT%{_infodir}/dir |
81 | ||
4f160de4 | 82 | %clean |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
ad31fc9b | 85 | %post -p /sbin/postshell |
0c6984fd | 86 | -/usr/sbin/fix-info-dir -c %{_infodir} |
0487855c | 87 | |
ad31fc9b | 88 | %postun -p /sbin/postshell |
0c6984fd | 89 | -/usr/sbin/fix-info-dir -c %{_infodir} |
0487855c | 90 | |
4f160de4 | 91 | %files |
92 | %defattr(644,root,root,755) | |
b58fc7e6 | 93 | %doc AUTHORS ChangeLog NEWS README |
4f160de4 | 94 | %attr(755,root,root) %{_bindir}/ddrescue |
41c67e1a | 95 | %attr(755,root,root) %{_bindir}/ddrescuelog |
ad31fc9b JB |
96 | %{_infodir}/ddrescue.info* |
97 | %{_mandir}/man1/ddrescue.1* | |
41c67e1a | 98 | %{_mandir}/man1/ddrescuelog.1* |