]> git.pld-linux.org Git - packages/disc-recovery-utils.git/blame - disc-recovery-utils.spec
- initial spec. STB
[packages/disc-recovery-utils.git] / disc-recovery-utils.spec
CommitLineData
3e057248 1Summary: Disc recovery tools for EXT2FS
2Name: disc-recovery-utils
3Version: 1.1
4Release: 1
5Source0: ftp://ftp.atnf.csiro.au/pub/people/rgooch/linux/%{name}-%{version}.tgz
6License: GPL
7Group: Applications/System
8Group(de): Applikationen/System
9Group(pl): Aplikacje/System
10BuildRequires: e2fsprogs-devel >= 1.07
11BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
12
13%define _prefix /
14%define _sbindir %{_prefix}/sbin
15
16%description
17A few disc recovery tools (copy_blocks and copy_listed_blocks) and an
18inode recovery tool for the EXT2 filesystem (e2fsfind).
19
20%prep
21%setup -q -n %{name}
22
23%build
24sed '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
29rm -rf $RPM_BUILD_ROOT
30mkdir -p $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8}
31cp copy_blocks copy_listed_blocks e2fsfind $RPM_BUILD_ROOT%{_sbindir}
32cp *.8 $RPM_BUILD_ROOT%{_mandir}/man8
33gzip -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
42rm -rf $RPM_BUILD_ROOT
This page took 0.08054 seconds and 4 git commands to generate.