scrub/scrub.spec

45 lines
1.1 KiB
RPMSpec

Name: scrub
Version: 1.6
Release: 1%{?dist}
Summary: Disk scrubbing program
License: GPL
Group: System Environment/Base
URL: http://www.llnl.gov/linux/scrub/scrub.html
Source0: ftp://ftp.llnl.gov/pub/linux/scrub/%{name}-%{version}-1.tgz
Patch0: scrub-1.6-rpmoptflags.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
Scrub writes patterns on special files (i.e. raw disk devices) or
regular files to reduce the possibility of someone retrieving the
data. There are up to six passes, each of which fills the disk
with a particular pattern.
%prep
%setup -q
%patch0 -p1
%build
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
install -s -m 755 scrub $RPM_BUILD_ROOT%{_bindir}
gzip scrub.1
install -m 644 scrub.1.gz $RPM_BUILD_ROOT%{_mandir}/man1
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc README ChangeLog DISCLAIMER
%{_bindir}/scrub
%{_mandir}/man1/scrub.1.gz
%changelog
* Thu May 19 2005 Tom "spot" Callaway <tcallawa@redhat.com> 1.6-1
- initial package for Fedora Extras