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