Name: vacation Version: 1.2.7.0 Release: 1%{?dist} Summary: Automatic mail answering program for Linux Vendor: Chris Samuel Sean Rima Packager: Franta Hanzlik franta@hanzlici.cz Group: Applications/Internet License: BSD/GPL URL: http://sourceforge.net/projects/vacation/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: vacation-%{version}.tar.gz BuildRequires: gdbm-devel Requires: gdbm %description This is the port of the 386bsd vacation program to Linux. Vacation is the automatic mail answering program found on many Unix systems. %prep %setup -q %build %{__cc} ${RPM_OPT_FLAGS} -DMAIN -D_PATH_VACATION=\"%{_bindir}/vacation\" -o vacation vacation.c strlcpy.c strlcat.c rfc822.c -lgdbm %install rm -rf $RPM_BUILD_ROOT install -d -m 755 ${RPM_BUILD_ROOT}%{_bindir} install -m 755 vacation vaclook ${RPM_BUILD_ROOT}%{_bindir} install -d -m 755 ${RPM_BUILD_ROOT}%{_mandir}/man1 ./html2man.pl < vacation.html > ${RPM_BUILD_ROOT}%{_mandir}/man1/vacation.1 install -m 644 vaclook.man ${RPM_BUILD_ROOT}%{_mandir}/man1/vaclook.1 install -d ${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version} install -m 644 AUTHORS COPYING INSTALL README README.smrsh TODO ChangeLog KNOWN_BUGS vacation-1.2.6.lsm vacation.html html2man.pl ${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version} %files %defattr(-,root,root,-) %{_bindir}/* %doc %{_docdir}/%{name}-%{version} %{_mandir}/man1/*.1* %clean rm -rf $RPM_BUILD_ROOT %changelog * Sun Jul 07 2008 Franta Hanzlik - Initial RPM build (for f9)