wipe/wipe.spec

57 lines
1.5 KiB
RPMSpec
Raw Normal View History

2014-03-16 11:57:01 +04:00
%define debug_package %{nil}
2012-02-01 19:28:35 +04:00
Name: wipe
Version: 2.3.1
2017-02-17 10:33:52 +03:00
Release: 6
2012-02-01 19:28:35 +04:00
Epoch: 0
Summary: Secure file deletion utility
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
Patch0: %{name}-rootbuildfix.patch
Requires(post): update-alternatives
Requires(postun): update-alternatives
2014-03-16 11:57:01 +04:00
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.
%prep
%setup -q
%patch0 -p1
%build
%configure2_5x
%make
%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}
2014-03-16 11:57:01 +04:00
2012-02-01 19:28:35 +04:00
%post
%{_sbindir}/update-alternatives --install %{_bindir}/wipe wipe %{_bindir}/wipe.wipe 10 --slave %{_mandir}/man1/wipe.1.lzma wipe.1.lzma %{_mandir}/man1/wipe.wipe.1.lzma
%postun
%{_sbindir}/update-alternatives --remove wipe %{_bindir}/wipe.wipe
%files
%defattr(0644,root,root,0755)
%doc LICENSE copyright README CHANGES TODO INSTALL TESTING
%attr(0755,root,root) %{_bindir}/wipe.wipe
%{_mandir}/man1/wipe.wipe.1*