Summary: A small utility for safely making /tmp files. Name: mktemp %define version 1.5 Version: %{version} Release: 8mdk Copyright: BSD Group: File tools Source: ftp://freestuff.cs.colorado.edu/pub/OpenBSD/src/usr.bin/mktemp-%{version}.tar.bz2 Patch: mktemp-1.4-linux.patch.bz2 Patch1: mktemp-1.5-man.patch.bz2 Patch2: mktemp-build-nonroot.patch.bz2 Url: http://www.openbsd.org/ Buildroot: %{_tmppath}/%{name}-root %description The mktemp utility takes a given file name template and overwrites a portion of it to create a unique file name. This allows shell scripts and other programs to safely create and use /tmp files. Install the mktemp package if you need to use shell scripts or other programs which will create and use unique /tmp files. %prep %setup %patch -p1 %patch1 -p1 %patch2 -p1 %build make %install mkdir -p /var/tmp/mktemp/bin /var/tmp/mktemp%{_mandir}/man1 perl -pi -e "s!/usr/man!%{_mandir}!g" Makefile %makeinstall ROOT="$RPM_BUILD_ROOT" %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) /bin/mktemp %{_mandir}/man1/mktemp.1.bz2 %changelog * Thu Jul 20 2000 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.5-8mdk - macros, BM - let spechelper do the man-pages compression job ... * Fri Mar 31 2000 Frederic Lepied <flepied@mandrakesoft.com> 1.5-7mdk - group fix * Tue Jan 11 2000 Pixel <pixel@linux-mandrake.com> - fix build as non-root * Mon Oct 25 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> - Upgrade of man-pages(r). * Tue Apr 13 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> - Upgarde to 1.5. * Sat Apr 10 1999 Bernhard Rosenkraenzer <bero@linux-mandrake.com> - Mandrake adaptions - bzip2 man/info pages - add de locale * Tue Dec 29 1998 Cristian Gafton <gafton@redhat.com> - build for 6.0 * Thu May 07 1998 Prospector System <bugs@redhat.com> - translations modified for de, fr, tr * Wed Oct 01 1997 Erik Troan <ewt@redhat.com> - moved to /bin