]> git.pld-linux.org Git - packages/ddrescue.git/blame - ddrescue.spec
- updated to 1.17
[packages/ddrescue.git] / ddrescue.spec
CommitLineData
4f160de4 1Summary: Data copying in presence of I/O errors
5528d04f 2Summary(pl.UTF-8): Kopiowanie danych z błędami wejścia/wyjścia
4f160de4 3Name: ddrescue
5c9d77ce 4Version: 1.17
ad31fc9b 5Release: 1
5675f9c7 6License: GPL v3+
4f160de4 7Group: Applications/System
ad31fc9b 8Source0: http://download.savannah.gnu.org/releases/ddrescue/%{name}-%{version}.tar.lz
5c9d77ce 9# Source0-md5: 564469370fe70cd9ac280b15e1addc50
2b04df20 10Patch0: %{name}-info.patch
4f160de4 11URL: http://www.nongnu.org/ddrescue/ddrescue.html
752885db 12BuildRequires: libstdc++-devel
ad31fc9b 13BuildRequires: lzip
732dba2c
JB
14BuildRequires: rpmbuild(macros) >= 1.167
15BuildRequires: tar >= 1:1.22
4f160de4 16BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18%description
19ddrescue copies data from one file or block device (hard disk, cdrom,
20etc) to another, trying hard to rescue data in case of read errors.
21
22ddrescue does not truncate the output file if not asked to. So,
23everytime you run it on the same output file, it tries to fill in the
24gaps.
25
26If you have two or more copies of a damaged file, cdrom, etc, and run
27ddrescue on all of them, one at a time, with the same output file, you
28will probably obtain a complete and error-free file. This is so
29because the probability of having damaged areas at the same places on
30different input files is very low.
31
4b5ee2c2
JB
32If you also use the bad blocks file feature of ddrescue, the data will
33be rescued very efficiently. Also you can interrupt the rescue at any
34time and resume it later.
35
9d25d2c8
JR
36%description -l pl.UTF-8
37ddrescue kopiuje dane z jednego pliku lub urządzenia blokowego (dysku
38twardego, płyty CD-ROM itp.) do innego, próbując usilnie uratować dane
39w przypadku błędów odczytu.
4b5ee2c2 40
9d25d2c8
JR
41ddrescue nie skraca pliku wyjściowego, jeśli nie zostanie o to
42poproszony. Za każdym uruchomieniem na tym samym pliku wyjściowym
43próbuje wypełnić luki.
4b5ee2c2 44
9d25d2c8 45Jeśli mamy dwie lub więcej kopii uszkodzonego pliku, płyty itp. i
4b5ee2c2 46uruchomimy ddrescue na wszystkich z nich z tym samym plikiem
9d25d2c8
JR
47wyjściowym, prawdopodobnie dostaniemy cały plik bez błędów. Stanie się
48tak dlatego, że prawdopodobieństwo uszkodzenia pliku w tych samych
49miejscach na różnych kopiach jest bardzo małe.
4b5ee2c2 50
9d25d2c8
JR
51Jeśli użyjemy opcji obsługi pliku z listą złych bloków w ddrescue dane
52będą odzyskiwane bardzo wydajnie.
4f160de4 53
54%prep
732dba2c 55%setup -q
0487855c 56%patch0 -p1
4f160de4 57
58%build
0487855c
PS
59./configure \
60 --prefix=%{_prefix} \
61 --infodir=%{_infodir} \
62 --mandir=%{_mandir}
63
4f160de4 64%{__make} \
65 CXX="%{__cxx}" \
0487855c 66 CXXFLAGS="%{rpmcxxflags}"
4f160de4 67
68%install
69rm -rf $RPM_BUILD_ROOT
0487855c
PS
70
71%{__make} install install-man \
72 DESTDIR=$RPM_BUILD_ROOT
4f160de4 73
74%clean
75rm -rf $RPM_BUILD_ROOT
76
ad31fc9b 77%post -p /sbin/postshell
0c6984fd 78-/usr/sbin/fix-info-dir -c %{_infodir}
0487855c 79
ad31fc9b 80%postun -p /sbin/postshell
0c6984fd 81-/usr/sbin/fix-info-dir -c %{_infodir}
0487855c 82
4f160de4 83%files
84%defattr(644,root,root,755)
b58fc7e6 85%doc AUTHORS ChangeLog NEWS README
4f160de4 86%attr(755,root,root) %{_bindir}/ddrescue
41c67e1a 87%attr(755,root,root) %{_bindir}/ddrescuelog
ad31fc9b
JB
88%{_infodir}/ddrescue.info*
89%{_mandir}/man1/ddrescue.1*
41c67e1a 90%{_mandir}/man1/ddrescuelog.1*
This page took 0.19714 seconds and 4 git commands to generate.