wipe/wipe.spec

48 lines
1.4 KiB
RPMSpec
Raw Normal View History

2019-08-16 12:48:58 +10:00
Summary: Secure file deletion utility
Name: wipe
Version: 2.3.1
2019-08-16 17:45:55 +10:00
Release: 9
2019-08-16 12:48:58 +10:00
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
2012-02-01 19:28:35 +04:00
%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.
2019-08-16 12:48:58 +10:00
%files
%doc LICENSE copyright README CHANGES TODO INSTALL TESTING
%{_bindir}/wipe.wipe
%{_mandir}/man1/wipe.wipe.1*
%post
2019-08-16 17:45:55 +10:00
%{_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
2019-08-16 12:48:58 +10:00
%postun
%{_sbindir}/update-alternatives --remove wipe %{_bindir}/wipe.wipe
#----------------------------------------------------------------------------
2012-02-01 19:28:35 +04:00
%prep
%setup -q
%patch0 -p1
%build
2020-01-04 09:27:34 +03:00
%configure
2020-01-13 19:32:28 +03:00
%make CFLAGS="%{optflags}"
2012-02-01 19:28:35 +04:00
%install
2014-03-16 11:57:01 +04:00
%makeinstall
mv %{buildroot}%{_bindir}/wipe %{buildroot}%{_bindir}/wipe.wipe
mv %{buildroot}%{_mandir}/man1/wipe.1 %{buildroot}%{_mandir}/man1/wipe.wipe.1
2012-02-01 19:28:35 +04:00
# remove package installed docs
rm -rf %{buildroot}/%{_datadir}/doc/%{name}