]>
Commit | Line | Data |
---|---|---|
3e057248 | 1 | Summary: Disc recovery tools for EXT2FS |
2 | Name: disc-recovery-utils | |
3 | Version: 1.1 | |
4 | Release: 1 | |
3e057248 | 5 | License: GPL |
6 | Group: Applications/System | |
7 | Group(de): Applikationen/System | |
8 | Group(pl): Aplikacje/System | |
8032a1f2 | 9 | Source0: ftp://ftp.atnf.csiro.au/pub/people/rgooch/linux/%{name}-%{version}.tgz |
3e057248 | 10 | BuildRequires: e2fsprogs-devel >= 1.07 |
11 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
12 | ||
8032a1f2 | 13 | %define _sbindir /sbin |
3e057248 | 14 | |
15 | %description | |
16 | A few disc recovery tools (copy_blocks and copy_listed_blocks) and an | |
17 | inode recovery tool for the EXT2 filesystem (e2fsfind). | |
18 | ||
19 | %prep | |
20 | %setup -q -n %{name} | |
21 | ||
22 | %build | |
8032a1f2 | 23 | sed 's/cc/$(CC) $(CFLAGS) $(LDFLAGS)/'< Makefile >GNUmakefile |
24 | %{__make} CFLAGS="%{rpmcflags}" LDFLAGS="%{rpmldflags}" E2FSROOT=$RPM_BUILD_ROOT | |
3e057248 | 25 | |
26 | %install | |
27 | rm -rf $RPM_BUILD_ROOT | |
8032a1f2 | 28 | %{__install} -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8} |
29 | ||
30 | %{__install} copy_blocks copy_listed_blocks e2fsfind $RPM_BUILD_ROOT%{_sbindir} | |
31 | %{__install} *.8 $RPM_BUILD_ROOT%{_mandir}/man8 | |
32 | ||
3e057248 | 33 | gzip -9nf README |
34 | ||
8032a1f2 | 35 | %clean |
36 | rm -rf $RPM_BUILD_ROOT | |
37 | ||
3e057248 | 38 | %files |
39 | %defattr(644,root,root,755) | |
8032a1f2 | 40 | %doc *.gz |
41 | %attr(755,root,root) %{_sbindir}/* | |
3e057248 | 42 | %{_mandir}/*/* |