]> git.pld-linux.org Git - packages/zerofree.git/blob - zerofree.spec
f5eec366670a407aeabb8e210f86a12d90cd2424
[packages/zerofree.git] / zerofree.spec
1 Summary:        Utility to force unused ext2 inodes and blocks to zero
2 Name:           zerofree
3 Version:        1.0.3
4 Release:        1
5 License:        GPL+
6 Group:          Applications/System
7 Source0:        http://intgat.tigress.co.uk/rmy/uml/%{name}-%{version}.tgz
8 # Source0-md5:  7fffca9639a2acc9c889c49b3f94a0c6
9 Source1:        http://intgat.tigress.co.uk/rmy/uml/sparsify.c
10 # Source1-md5:  919ad782c7120d1e4a9c0ccc9f45b8ef
11 Source2:        http://intgat.tigress.co.uk/rmy/uml/index.html
12 # Source2-md5:  b7ab83b45706013757af28d9bba641cc
13 Source3:        %{name}.sgml
14 # Source3-md5:  694621b0e046c34a674da25f8328585b
15 URL:            http://intgat.tigress.co.uk/rmy/uml/
16 BuildRequires:  e2fsprogs-devel
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 zerofree is a utility to set unused filesystem inodes and blocks of an
21 ext2 filesystem to zero. This can improve the compressibility and
22 privacy of an ext2 filesystem.
23
24 This tool was inspired by the ext2fs privacy (i.e. secure deletion)
25 patch described in a Linux kernel mailing list thread.
26
27 WARNING: The filesystem to be processed should be unmounted or mounted
28 read-only. The tool tries to check this before running, but you should
29 be careful.
30
31 %prep
32 %setup -q
33 cp -p %{SOURCE1} .
34 cp -p %{SOURCE2} .
35 cp -p %{SOURCE3} .
36
37 %build
38 %{__make} \
39         CC="%{__cc} %{rpmcflags}"
40 %{__cc} %{rpmcflags} sparsify.c -o sparsify -lext2fs
41
42 docbook-to-man zerofree.sgml > zerofree.8
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8}
47 install -p zerofree $RPM_BUILD_ROOT%{_sbindir}
48 install -p sparsify $RPM_BUILD_ROOT%{_sbindir}
49 cp -p zerofree.8 $RPM_BUILD_ROOT%{_mandir}/man8
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %files
55 %defattr(644,root,root,755)
56 %doc COPYING index.html
57 %attr(755,root,root) %{_sbindir}/zerofree
58 %attr(755,root,root) %{_sbindir}/sparsify
59 %{_mandir}/man8/zerofree.8*
This page took 0.065685 seconds and 2 git commands to generate.