X-Git-Url: http://git.pld-linux.org/?p=packages%2Fddrescue.git;a=blobdiff_plain;f=ddrescue.spec;h=0a14f7718df1455a35b06abb1e6647cb9f59f76e;hp=9949a1b0679ecb6ecfa23fa075ac3bda8f5cb967;hb=HEAD;hpb=0c6984fdd8e2c8520db15c11a0fa244cab396abb diff --git a/ddrescue.spec b/ddrescue.spec index 9949a1b..db5fda1 100644 --- a/ddrescue.spec +++ b/ddrescue.spec @@ -1,18 +1,20 @@ Summary: Data copying in presence of I/O errors Summary(pl.UTF-8): Kopiowanie danych z błędami wejścia/wyjścia Name: ddrescue -Version: 1.5 +Version: 1.28 Release: 1 License: GPL v3+ Group: Applications/System -Source0: http://savannah.nongnu.org/download/ddrescue/%{name}-%{version}.tar.bz2 -# Source0-md5: 91931e2b2163c8d7a5adc1959da3023f +Source0: http://download.savannah.gnu.org/releases/ddrescue/%{name}-%{version}.tar.lz +# Source0-md5: 0444167cc19dffb70fe1530ae1c35fa4 Patch0: %{name}-info.patch -# updated from http://guru.multimedia.cx/wp-content/uploads/2006/08/ddrescue-patch.txt -Patch1: ddrescue-patch.txt -URL: http://www.nongnu.org/ddrescue/ddrescue.html +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 @@ -54,36 +56,43 @@ będą odzyskiwane bardzo wydajnie. %prep %setup -q %patch0 -p1 -%patch1 -p1 + +%{__rm} doc/ddrescue.info* %build ./configure \ + CXX="%{__cxx}" \ + CPPFLAGS="%{rpmcppflags}" \ + CXXFLAGS="%{rpmcxxflags}" \ + LDFLAGS="%{rpmldflags}" \ --prefix=%{_prefix} \ --infodir=%{_infodir} \ --mandir=%{_mandir} -%{__make} \ - CXX="%{__cxx}" \ - CXXFLAGS="%{rpmcxxflags}" +%{__make} all info %install rm -rf $RPM_BUILD_ROOT -%{__make} install install-man \ +%{__make} install \ DESTDIR=$RPM_BUILD_ROOT +%{__rm} -f $RPM_BUILD_ROOT%{_infodir}/dir + %clean rm -rf $RPM_BUILD_ROOT -%post -p /sbin/postshell +%post -p /sbin/postshell -/usr/sbin/fix-info-dir -c %{_infodir} -%postun -p /sbin/postshell +%postun -p /sbin/postshell -/usr/sbin/fix-info-dir -c %{_infodir} %files %defattr(644,root,root,755) %doc AUTHORS ChangeLog NEWS README %attr(755,root,root) %{_bindir}/ddrescue -%{_infodir}/*.info* -%{_mandir}/man1/* +%attr(755,root,root) %{_bindir}/ddrescuelog +%{_infodir}/ddrescue.info* +%{_mandir}/man1/ddrescue.1* +%{_mandir}/man1/ddrescuelog.1*