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