# $Id$ Name: safecat Summary: safe maildir/file delivery Version: 1.11 Release: 3%{?dist} URL: http://mysite.verizon.net/vze1ypud/linux/software/safecat.html Source: http://mysite.verizon.net/vze1ypud/linux/software/safecat/%{name}-%{version}.tar.gz Patch: safecat.errno.patch Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root Group: Applications/File License: BSD BuildRequires: groff %description safecat implements Dan Bernstein's maildir algorithm, copying standard input safely to a specified directory. With safecat, the user is offered two assurances. First, if safecat returns successfully, then all data is guaranteed to be saved in the destination directory. Second, if a file exists in the destination directory, placed there by safecat, then the file is guaranteed to be complete. %prep %setup -q %patch %build echo gcc $RPM_OPT_FLAGS > conf-cc echo gcc -s $RPM_OPT_FLAGS > conf-ld echo %{_prefix} > conf-root make %install rm -fR %{buildroot} # The following DJB-specfile trick (for nonroot builds) unfortunately # installs manpages under /usr/man, rather than the rh7 preferred # /usr/share/man. So, we skip it and do the hier.c work ourselves. #echo $RPM_BUILD_ROOT/usr > conf-root #rm -f auto_home.[co] install #make setup check install -d %{buildroot}%{_bindir} install -d %{buildroot}%{_mandir}/man1 install -m 755 safecat %{buildroot}%{_bindir}/ install -m 755 maildir %{buildroot}%{_bindir}/ gzip *.1 install *.1.gz %{buildroot}%{_mandir}/man1/ %files %defattr(-,root,root) %doc CHANGES COPYING INSTALL README %attr(0755,root,root) %{_bindir}/* %{_mandir}/man1/* %changelog * Sun Apr 29 2007 Shad L. Lords - Clean up spec so package can be built by koji/plague * Thu Dec 07 2006 Shad L. Lords - Update to new release naming. No functional changes. - Make Packager generic * Tue Aug 3 2004 Japheth Cleaver 1.11-3 - Minor specfile tweaks - URL update * Tue Feb 24 2004 JC Cleaver - Build on Fedora Core 1 - Errno bugfix patch * Tue Jul 01 2003 L Budney - Minor bug fix to sources * Tue Jun 03 2003 L Budney - Update for 1.10 * Mon Nov 04 2002 MJ Pomraning - Update for 1.9 * Mon Sep 24 2001 MJ Pomraning - Update 1.2 -> 1.8 (nonroot build) * Tue May 09 2000 MJ Pomraning - first cut at an RPM package