]> git.pld-linux.org Git - packages/ddrescue.git/blob - ddrescue.spec
- updated to 1.28
[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.23
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:  cd85a82d510d9abf790132fb0da1bf3c
10 Patch0:         %{name}-info.patch
11 URL:            http://www.nongnu.org/ddrescue/ddrescue.html
12 BuildRequires:  help2man
13 BuildRequires:  libstdc++-devel
14 BuildRequires:  lzip
15 BuildRequires:  rpmbuild(macros) >= 1.167
16 BuildRequires:  tar >= 1:1.22
17 BuildRequires:  texinfo
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
58 %patch0 -p1
59
60 %build
61 ./configure \
62         --prefix=%{_prefix} \
63         --infodir=%{_infodir} \
64         --mandir=%{_mandir}
65
66 %{__make} \
67         CXX="%{__cxx}" \
68         CXXFLAGS="%{rpmcxxflags}"
69
70 %install
71 rm -rf $RPM_BUILD_ROOT
72
73 %{__make} install \
74         DESTDIR=$RPM_BUILD_ROOT
75
76 %{__rm} -f $RPM_BUILD_ROOT%{_infodir}/dir
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 %attr(755,root,root) %{_bindir}/ddrescuelog
92 %{_infodir}/ddrescue.info*
93 %{_mandir}/man1/ddrescue.1*
94 %{_mandir}/man1/ddrescuelog.1*
This page took 0.119266 seconds and 3 git commands to generate.