X-Git-Url: http://git.pld-linux.org/?p=packages%2Fdisc-recovery-utils.git;a=blobdiff_plain;f=disc-recovery-utils.spec;h=2060847dd7ed37870bd125527453f083b9920249;hp=dd201e573d579fc608c1e378d82c52c9961002d5;hb=HEAD;hpb=3e057248a88053624d4fab8f6090be405abdbd54 diff --git a/disc-recovery-utils.spec b/disc-recovery-utils.spec index dd201e5..2060847 100644 --- a/disc-recovery-utils.spec +++ b/disc-recovery-utils.spec @@ -1,42 +1,46 @@ Summary: Disc recovery tools for EXT2FS +Summary(pl.UTF-8): Narzędzia ratunkowe do ext2fs Name: disc-recovery-utils Version: 1.1 -Release: 1 -Source0: ftp://ftp.atnf.csiro.au/pub/people/rgooch/linux/%{name}-%{version}.tgz +Release: 3 License: GPL Group: Applications/System -Group(de): Applikationen/System -Group(pl): Aplikacje/System +Source0: ftp://ftp.atnf.csiro.au/pub/people/rgooch/linux/%{name}-%{version}.tgz +# Source0-md5: be974ef7989776755764da70e63354fe +Patch0: %{name}-linux_fs.patch BuildRequires: e2fsprogs-devel >= 1.07 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -%define _prefix / -%define _sbindir %{_prefix}/sbin +%define _sbindir /sbin %description A few disc recovery tools (copy_blocks and copy_listed_blocks) and an inode recovery tool for the EXT2 filesystem (e2fsfind). +%description -l pl.UTF-8 +Kilka narzędzi ratunkowych (copy_blocks i copy_listed_blocks) oraz +narzędzie do odzyskiwania inodów z systemu plików ext2 (e2fsfind). + %prep %setup -q -n %{name} +%patch0 -p1 %build -sed 's/cc/$(CC) $(CFLAGS) $(LDFLAGS)/'GNUmakefile -%{__make} CFLAGS="%{!?debug:$RPM_OPT_FLAGS}%{?debug:-O0 -g}" \ - E2FSROOT=$RPM_BUILD_ROOT LDFLAGS="%{?debug:-s}" +sed 's/cc/$(CC) $(CFLAGS) $(LDFLAGS)/'< Makefile >GNUmakefile +%{__make} CFLAGS="%{rpmcflags}" LDFLAGS="%{rpmldflags}" E2FSROOT=$RPM_BUILD_ROOT %install rm -rf $RPM_BUILD_ROOT -mkdir -p $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8} -cp copy_blocks copy_listed_blocks e2fsfind $RPM_BUILD_ROOT%{_sbindir} -cp *.8 $RPM_BUILD_ROOT%{_mandir}/man8 -gzip -9nf README +install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8} -%files -%defattr(644,root,root,755) -%attr(755,root,root) /sbin/* -%{_mandir}/*/* -%doc README* +install copy_blocks copy_listed_blocks e2fsfind $RPM_BUILD_ROOT%{_sbindir} +install *.8 $RPM_BUILD_ROOT%{_mandir}/man8 %clean rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc README +%attr(755,root,root) %{_sbindir}/* +%{_mandir}/*/*