]> 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.28
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:  0444167cc19dffb70fe1530ae1c35fa4
10 Patch0:         %{name}-info.patch
11 URL:            http://www.gnu.org/software/ddrescue/
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 %{__rm} doc/ddrescue.info*
61
62 %build
63 ./configure \
64         CXX="%{__cxx}" \
65         CPPFLAGS="%{rpmcppflags}" \
66         CXXFLAGS="%{rpmcxxflags}" \
67         LDFLAGS="%{rpmldflags}" \
68         --prefix=%{_prefix} \
69         --infodir=%{_infodir} \
70         --mandir=%{_mandir}
71
72 %{__make} all info
73
74 %install
75 rm -rf $RPM_BUILD_ROOT
76
77 %{__make} install \
78         DESTDIR=$RPM_BUILD_ROOT
79
80 %{__rm} -f $RPM_BUILD_ROOT%{_infodir}/dir
81
82 %clean
83 rm -rf $RPM_BUILD_ROOT
84
85 %post   -p /sbin/postshell
86 -/usr/sbin/fix-info-dir -c %{_infodir}
87
88 %postun -p /sbin/postshell
89 -/usr/sbin/fix-info-dir -c %{_infodir}
90
91 %files
92 %defattr(644,root,root,755)
93 %doc AUTHORS ChangeLog NEWS README
94 %attr(755,root,root) %{_bindir}/ddrescue
95 %attr(755,root,root) %{_bindir}/ddrescuelog
96 %{_infodir}/ddrescue.info*
97 %{_mandir}/man1/ddrescue.1*
98 %{_mandir}/man1/ddrescuelog.1*
This page took 0.054812 seconds and 4 git commands to generate.