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