]> git.pld-linux.org Git - packages/ddrescue.git/blob - ddrescue.spec
- outdated, unmaintained
[packages/ddrescue.git] / ddrescue.spec
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.11
5 Release:        1
6 License:        GPL v3+
7 Group:          Applications/System
8 Source0:        http://download.savannah.gnu.org/releases/ddrescue/%{name}-%{version}.tar.lz
9 # Source0-md5:  af840dd177e968493e2fcef1fb19d719
10 Patch0:         %{name}-info.patch
11 # updated from http://guru.multimedia.cx/wp-content/uploads/2006/08/ddrescue-patch.txt
12 # not maintained, will be dropped soon
13 Patch1:         ddrescue-patch.txt
14 URL:            http://www.nongnu.org/ddrescue/ddrescue.html
15 BuildRequires:  libstdc++-devel
16 BuildRequires:  rpmbuild(macros) >= 1.167
17 BuildRequires:  lzip
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
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
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.
42
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.
46
47 Jeśli mamy dwie lub więcej kopii uszkodzonego pliku, płyty itp. i
48 uruchomimy ddrescue na wszystkich z nich z tym samym plikiem
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.
52
53 Jeśli użyjemy opcji obsługi pliku z listą złych bloków w ddrescue dane
54 będą odzyskiwane bardzo wydajnie.
55
56 %prep
57 %setup -q -c -T
58 lzip -dc %{SOURCE0} | tar xf - -C ..
59 %patch0 -p1
60 #patch1 -p1
61
62 %build
63 ./configure \
64         --prefix=%{_prefix} \
65         --infodir=%{_infodir} \
66         --mandir=%{_mandir}
67
68 %{__make} \
69         CXX="%{__cxx}" \
70         CXXFLAGS="%{rpmcxxflags}"
71
72 %install
73 rm -rf $RPM_BUILD_ROOT
74
75 %{__make} install install-man \
76         DESTDIR=$RPM_BUILD_ROOT
77
78 %clean
79 rm -rf $RPM_BUILD_ROOT
80
81 %post   -p /sbin/postshell
82 -/usr/sbin/fix-info-dir -c %{_infodir}
83
84 %postun -p /sbin/postshell
85 -/usr/sbin/fix-info-dir -c %{_infodir}
86
87 %files
88 %defattr(644,root,root,755)
89 %doc AUTHORS ChangeLog NEWS README
90 %attr(755,root,root) %{_bindir}/ddrescue
91 %{_infodir}/ddrescue.info*
92 %{_mandir}/man1/ddrescue.1*
This page took 0.04661 seconds and 3 git commands to generate.