]> git.pld-linux.org Git - packages/ddrescue.git/blob - ddrescue.spec
e10d7b7766aac196c25cd31cbfe8d4b294867376
[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.0
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:  0acd5df3f860eba20c01f317b40b8516
10 Patch0:         %{name}-Makefile.patch
11 Patch1:         %{name}-info.patch
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
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 TODO
86 %attr(755,root,root) %{_bindir}/ddrescue
87 %{_infodir}/*.info*
88 %{_mandir}/man1/*
This page took 0.075457 seconds and 2 git commands to generate.