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