From: kloczek Date: Thu, 19 Apr 2001 04:29:59 +0000 (+0000) Subject: - many corrections. X-Git-Tag: RA-1_0 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fdisc-recovery-utils.git;a=commitdiff_plain;h=8032a1f21c573d1a509185accf0dc61410d4ec64;hp=3e057248a88053624d4fab8f6090be405abdbd54 - many corrections. Changed files: disc-recovery-utils.spec -> 1.2 --- diff --git a/disc-recovery-utils.spec b/disc-recovery-utils.spec index dd201e5..0d9adce 100644 --- a/disc-recovery-utils.spec +++ b/disc-recovery-utils.spec @@ -2,16 +2,15 @@ Summary: Disc recovery tools for EXT2FS Name: disc-recovery-utils Version: 1.1 Release: 1 -Source0: ftp://ftp.atnf.csiro.au/pub/people/rgooch/linux/%{name}-%{version}.tgz 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 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 @@ -21,22 +20,23 @@ inode recovery tool for the EXT2 filesystem (e2fsfind). %setup -q -n %{name} %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 +%{__install} -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8} + +%{__install} copy_blocks copy_listed_blocks e2fsfind $RPM_BUILD_ROOT%{_sbindir} +%{__install} *.8 $RPM_BUILD_ROOT%{_mandir}/man8 + gzip -9nf README +%clean +rm -rf $RPM_BUILD_ROOT + %files %defattr(644,root,root,755) -%attr(755,root,root) /sbin/* +%doc *.gz +%attr(755,root,root) %{_sbindir}/* %{_mandir}/*/* -%doc README* - -%clean -rm -rf $RPM_BUILD_ROOT