%define name fetchlog %define version 1.0 %define release 1mdk Summary: Fetch and convert new messages of a logfile Name: %{name} Version: %{version} Release: %{release} License: GPL Group: System/Kernel and hardware URL: http://sourceforge.net/projects/fetchlog/ Source0: http://prdownloads.sourceforge.net/fetchlog/%{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version} %description The fetchlog utility displays the last new messages of a logfile (syslog). fetchlog is similar like tail but offers some extra functionality like pattern matching with regular expressions, output formatting for email, SMS, pager or SNMP tools, etc. %prep %setup -q -n %{name}-%{version} %build %make CFLAGS="%{optflags}" %install [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} install -d %{buildroot}%{_bindir} install -d %{buildroot}%{_mandir}/man1 install -m0755 fetchlog %{buildroot}%{_bindir}/ install -m0644 fetchlog.1 %{buildroot}%{_mandir}/man1/ %clean [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %files %defattr(-,root,root) %doc CHANGES LICENSE README README.Nagios README.SNMP %{_bindir}/* %{_mandir}/man1/* %changelog * Thu Dec 02 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 1.0-1mdk - initial mandrake package