]>
Commit | Line | Data |
---|---|---|
da6f8ade | 1 | # |
2 | Summary: Simple program for undeleting files from ext3 partition | |
3 | Name: ext3rminator | |
4 | %define _pre pre2 | |
5 | Version: 0.3.0 | |
6 | Release: 0.%{_pre}.1 | |
7 | License: GPL v2 | |
8 | Group: Applications/System | |
9 | Source0: http://web.glandium.org/debian/repository/experimental/%{name}_0.2.99+%{version}%{_pre}.orig.tar.gz | |
10 | # Source0-md5: 450ce0405a2be760a1e9ced200c05c72 | |
11 | URL: http://web.glandium.org/debian/repository/experimental | |
12 | BuildRequires: e2fsprogs-devel | |
13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
14 | ||
15 | %description | |
16 | Ext3rminator is a last chance program when you just unthoughtfully deleted | |
17 | several megabytes of data on an ext3 (or ext2) partition. It goes through all | |
18 | free blocks in the filesystem to look for what can look like data. | |
19 | ||
20 | It is only able to recover files where the 48 first KB (actually, 12 blocks, | |
21 | a block usually being 4096 bytes) are contiguous. | |
22 | ||
23 | %prep | |
24 | %setup -q -n %{name}-%{version}%{_pre} | |
25 | ||
26 | %build | |
27 | CFLAGS="-I%{_includedir}/et %{rpmcflags}" | |
28 | export CFLAGS | |
29 | %configure | |
30 | %{__make} | |
31 | ||
32 | %install | |
33 | rm -rf $RPM_BUILD_ROOT | |
34 | ||
35 | %{__make} install \ | |
36 | DESTDIR=$RPM_BUILD_ROOT | |
37 | ||
38 | %clean | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | ||
41 | %files | |
42 | %defattr(644,root,root,755) | |
43 | %doc AUTHORS ChangeLog TODO | |
44 | %attr(755,root,root) %{_bindir}/%{name} | |
45 | %{_mandir}/man1/%{name}.1* |