]> git.pld-linux.org Git - packages/ddrescue.git/blame - ddrescue.spec
- or later
[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
7235dfef 4Version: 1.5
5Release: 1
5675f9c7 6License: GPL v3+
4f160de4 7Group: Applications/System
4b5ee2c2 8Source0: http://savannah.nongnu.org/download/ddrescue/%{name}-%{version}.tar.bz2
7235dfef 9# Source0-md5: 91931e2b2163c8d7a5adc1959da3023f
2b04df20 10Patch0: %{name}-info.patch
8bb1dcb8 11Patch1: http://guru.multimedia.cx/wp-content/uploads/2006/08/ddrescue-patch.txt
4f160de4 12URL: http://www.nongnu.org/ddrescue/ddrescue.html
752885db 13BuildRequires: libstdc++-devel
469ad9ec 14BuildRequires: rpmbuild(macros) >= 1.167
4f160de4 15BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17%description
18ddrescue copies data from one file or block device (hard disk, cdrom,
19etc) to another, trying hard to rescue data in case of read errors.
20
21ddrescue does not truncate the output file if not asked to. So,
22everytime you run it on the same output file, it tries to fill in the
23gaps.
24
25If you have two or more copies of a damaged file, cdrom, etc, and run
26ddrescue on all of them, one at a time, with the same output file, you
27will probably obtain a complete and error-free file. This is so
28because the probability of having damaged areas at the same places on
29different input files is very low.
30
4b5ee2c2
JB
31If you also use the bad blocks file feature of ddrescue, the data will
32be rescued very efficiently. Also you can interrupt the rescue at any
33time and resume it later.
34
9d25d2c8
JR
35%description -l pl.UTF-8
36ddrescue kopiuje dane z jednego pliku lub urządzenia blokowego (dysku
37twardego, płyty CD-ROM itp.) do innego, próbując usilnie uratować dane
38w przypadku błędów odczytu.
4b5ee2c2 39
9d25d2c8
JR
40ddrescue nie skraca pliku wyjściowego, jeśli nie zostanie o to
41poproszony. Za każdym uruchomieniem na tym samym pliku wyjściowym
42próbuje wypełnić luki.
4b5ee2c2 43
9d25d2c8 44Jeśli mamy dwie lub więcej kopii uszkodzonego pliku, płyty itp. i
4b5ee2c2 45uruchomimy ddrescue na wszystkich z nich z tym samym plikiem
9d25d2c8
JR
46wyjściowym, prawdopodobnie dostaniemy cały plik bez błędów. Stanie się
47tak dlatego, że prawdopodobieństwo uszkodzenia pliku w tych samych
48miejscach na różnych kopiach jest bardzo małe.
4b5ee2c2 49
9d25d2c8
JR
50Jeśli użyjemy opcji obsługi pliku z listą złych bloków w ddrescue dane
51będą odzyskiwane bardzo wydajnie.
4f160de4 52
53%prep
54%setup -q
0487855c 55%patch0 -p1
8bb1dcb8 56%patch1 -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
0487855c
PS
77%post
78[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
79
80%postun
81[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
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
73590886 87%{_infodir}/*.info*
4b5ee2c2 88%{_mandir}/man1/*
This page took 0.082632 seconds and 4 git commands to generate.