]> git.pld-linux.org Git - packages/ddrescue.git/blame_incremental - ddrescue.spec
- or later
[packages/ddrescue.git] / ddrescue.spec
... / ...
CommitLineData
1Summary: Data copying in presence of I/O errors
2Summary(pl.UTF-8): Kopiowanie danych z błędami wejścia/wyjścia
3Name: ddrescue
4Version: 1.5
5Release: 1
6License: GPL v3+
7Group: Applications/System
8Source0: http://savannah.nongnu.org/download/ddrescue/%{name}-%{version}.tar.bz2
9# Source0-md5: 91931e2b2163c8d7a5adc1959da3023f
10Patch0: %{name}-info.patch
11Patch1: http://guru.multimedia.cx/wp-content/uploads/2006/08/ddrescue-patch.txt
12URL: http://www.nongnu.org/ddrescue/ddrescue.html
13BuildRequires: libstdc++-devel
14BuildRequires: rpmbuild(macros) >= 1.167
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
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
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.
39
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.
43
44Jeśli mamy dwie lub więcej kopii uszkodzonego pliku, płyty itp. i
45uruchomimy ddrescue na wszystkich z nich z tym samym plikiem
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.
49
50Jeśli użyjemy opcji obsługi pliku z listą złych bloków w ddrescue dane
51będą odzyskiwane bardzo wydajnie.
52
53%prep
54%setup -q
55%patch0 -p1
56%patch1 -p1
57
58%build
59./configure \
60 --prefix=%{_prefix} \
61 --infodir=%{_infodir} \
62 --mandir=%{_mandir}
63
64%{__make} \
65 CXX="%{__cxx}" \
66 CXXFLAGS="%{rpmcxxflags}"
67
68%install
69rm -rf $RPM_BUILD_ROOT
70
71%{__make} install install-man \
72 DESTDIR=$RPM_BUILD_ROOT
73
74%clean
75rm -rf $RPM_BUILD_ROOT
76
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
83%files
84%defattr(644,root,root,755)
85%doc AUTHORS ChangeLog NEWS README
86%attr(755,root,root) %{_bindir}/ddrescue
87%{_infodir}/*.info*
88%{_mandir}/man1/*
This page took 0.609113 seconds and 4 git commands to generate.