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