aboutsummaryrefslogtreecommitdiffstats
path: root/wipe.spec
blob: 190703b51bbf370c593ffb0939a35d55f3ef4450 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
%define ver	2.3
%define rel	1
%define prefix	/usr
%define docs	LICENSE copyright README CHANGES TODO INSTALL TESTING

Prefix: %{prefix}
BuildRoot: %{_tmppath}/%{name}-buildroot
Docdir: %{prefix}/doc

Summary: secure file wiper
Name: wipe
Version: %ver
Release: %rel
License: GPL
Group: Utilities/File
Source: metalab.unc.edu:/pub/Linux/utils/file/wipe-%{ver}.tar.bz2
URL: http://wipe.sf.net/
Packager: Tom Vier <nester@users.sf.net>

%description
Wipe is a tool that attemps to effectively degauses the surface of
a hard disk, making it virtually impossible to retrieve the data
that was stored on it. This tool is designed to make sure secure
data that is erased from a hard drive is unrecoverable.

%prep
rm -rf $RPM_BUILD_DIR/wipe-%{ver}
bunzip2 < $RPM_SOURCE_DIR/wipe-%{ver}.tar.bz2 | tar xv

%build
cd wipe-%{ver}
./configure --prefix=$RPM_BUILD_ROOT/%{prefix}
make

%install
cd wipe-%{ver}
#make install
cp %{docs} $RPM_BUILD_DIR
install -d $RPM_BUILD_ROOT%{_bindir}
install -s ./wipe $RPM_BUILD_ROOT%{_bindir}
install -d $RPM_BUILD_ROOT%{_mandir}/man1/
install -m 0644 wipe.1 $RPM_BUILD_ROOT%{_mandir}/man1/
rm -rf $RPM_BUILD_ROOT/%{_prefix}/doc/wipe/
install -d $RPM_BUILD_ROOT%{_prefix}/doc/wipe/
for file in %{docs}
do
       install -m 0644 $file $RPM_BUILD_ROOT/%{_prefix}/doc/wipe/
done

%files
%defattr(-,root,root)
%doc %{docs}
/usr/bin/wipe
#/usr/man/man1/wipe.1
%{_mandir}/man1/wipe.1*

%clean
rm -rf $RPM_BUILD_ROOT
rm -rf $RPM_BUILD_DIR/wipe-%{ver}
rm -f %{docs}