mirror of
https://abf.rosa.ru/djam/wipe.git
synced 2025-02-23 17:52:55 +00:00
47 lines
1.4 KiB
RPMSpec
47 lines
1.4 KiB
RPMSpec
Summary: Secure file deletion utility
|
|
Name: wipe
|
|
Version: 2.3.1
|
|
Release: 9
|
|
License: GPLv2+
|
|
Group: File tools
|
|
Url: http://wipe.sourceforge.net/
|
|
Source0: http://unc.dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.bz2
|
|
Source1: http://unc.dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.bz2.sig
|
|
# Don't use root user to install files, don't strip the binary
|
|
Patch0: wipe-2.3.1-makefile.patch
|
|
Requires(post,postun): update-alternatives
|
|
|
|
%description
|
|
Wipe is a tool that 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.
|
|
|
|
%files
|
|
%doc LICENSE copyright README CHANGES TODO INSTALL TESTING
|
|
%{_bindir}/wipe.wipe
|
|
%{_mandir}/man1/wipe.wipe.1*
|
|
|
|
%post
|
|
%{_sbindir}/update-alternatives --install %{_bindir}/wipe wipe %{_bindir}/wipe.wipe 10 --slave %{_mandir}/man1/wipe.1.xz wipe.1.xz %{_mandir}/man1/wipe.wipe.1.xz
|
|
|
|
%postun
|
|
%{_sbindir}/update-alternatives --remove wipe %{_bindir}/wipe.wipe
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0 -p1
|
|
|
|
%build
|
|
%configure
|
|
%make CFLAGS="%{optflags}"
|
|
|
|
%install
|
|
%makeinstall
|
|
mv %{buildroot}%{_bindir}/wipe %{buildroot}%{_bindir}/wipe.wipe
|
|
mv %{buildroot}%{_mandir}/man1/wipe.1 %{buildroot}%{_mandir}/man1/wipe.wipe.1
|
|
|
|
# remove package installed docs
|
|
rm -rf %{buildroot}/%{_datadir}/doc/%{name}
|