Summary: Data copying in presence of I/O errors
-Summary(pl): Kopiowanie danych z b³êdami we/wy
+Summary(pl.UTF-8): Kopiowanie danych z błędami wejścia/wyjścia
Name: ddrescue
-Version: 0.7
+Version: 1.28
Release: 1
-License: GPL
+License: GPL v3+
Group: Applications/System
-Source0: http://savannah.nongnu.org/download/%{name}/%{name}-%{version}.tar.bz2
-# Source0-md5: 1178c44372a08c906cc5bb1141ae7baf
-URL: http://www.nongnu.org/ddrescue/ddrescue.html
+Source0: http://download.savannah.gnu.org/releases/ddrescue/%{name}-%{version}.tar.lz
+# Source0-md5: 0444167cc19dffb70fe1530ae1c35fa4
+Patch0: %{name}-info.patch
+URL: http://www.gnu.org/software/ddrescue/
+BuildRequires: help2man
+BuildRequires: libstdc++-devel
+BuildRequires: lzip
+BuildRequires: rpmbuild(macros) >= 1.167
+BuildRequires: tar >= 1:1.22
+BuildRequires: texinfo
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
because the probability of having damaged areas at the same places on
different input files is very low.
-if you also use the bad blocks file feature of ddrescue, the data will
-be rescued very efficiently. ddrescue helps, when nobody else will:
-Your disk has crashed and you try to copy it over to another one.
-Standard Un*x tools like cp, cat, dd will abort on every I/O error.
-dd_rescue won't.
+If you also use the bad blocks file feature of ddrescue, the data will
+be rescued very efficiently. Also you can interrupt the rescue at any
+time and resume it later.
-%description -l pl
-ddrescue pomaga tam, gdzie nic innego nie pomo¿e: kiedy dysk padnie i
-próbujemy go skopiowaæ na inny. Standardowe narzêdzia uniksowe takie
-jak cp, cat, dd koñcz± dzia³anie na ka¿dym b³êdzie we/wy. dd_rescue
-tego nie robi.
+%description -l pl.UTF-8
+ddrescue kopiuje dane z jednego pliku lub urządzenia blokowego (dysku
+twardego, płyty CD-ROM itp.) do innego, próbując usilnie uratować dane
+w przypadku błędów odczytu.
+
+ddrescue nie skraca pliku wyjściowego, jeśli nie zostanie o to
+poproszony. Za każdym uruchomieniem na tym samym pliku wyjściowym
+próbuje wypełnić luki.
+
+Jeśli mamy dwie lub więcej kopii uszkodzonego pliku, płyty itp. i
+uruchomimy ddrescue na wszystkich z nich z tym samym plikiem
+wyjściowym, prawdopodobnie dostaniemy cały plik bez błędów. Stanie się
+tak dlatego, że prawdopodobieństwo uszkodzenia pliku w tych samych
+miejscach na różnych kopiach jest bardzo małe.
+
+Jeśli użyjemy opcji obsługi pliku z listą złych bloków w ddrescue dane
+będą odzyskiwane bardzo wydajnie.
%prep
%setup -q
+%patch0 -p1
+
+%{__rm} doc/ddrescue.info*
%build
-%{__make} \
+./configure \
CXX="%{__cxx}" \
- CXXFLAGS="%{rpmcflags}"
+ CPPFLAGS="%{rpmcppflags}" \
+ CXXFLAGS="%{rpmcxxflags}" \
+ LDFLAGS="%{rpmldflags}" \
+ --prefix=%{_prefix} \
+ --infodir=%{_infodir} \
+ --mandir=%{_mandir}
+
+%{__make} all info
%install
rm -rf $RPM_BUILD_ROOT
-install -D ddrescue $RPM_BUILD_ROOT%{_bindir}/ddrescue
-install -D ddrescue.1 $RPM_BUILD_ROOT%{_mandir}/man1/ddrescue.1
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%{__rm} -f $RPM_BUILD_ROOT%{_infodir}/dir
%clean
rm -rf $RPM_BUILD_ROOT
+%post -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
+
+%postun -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
+
%files
%defattr(644,root,root,755)
-%doc ChangeLog README
+%doc AUTHORS ChangeLog NEWS README
%attr(755,root,root) %{_bindir}/ddrescue
-%attr(644,root,root) %{_mandir}/man1/*
+%attr(755,root,root) %{_bindir}/ddrescuelog
+%{_infodir}/ddrescue.info*
+%{_mandir}/man1/ddrescue.1*
+%{_mandir}/man1/ddrescuelog.1*