Sophie

Sophie

distrib > Mandriva > 2007.0 > x86_64 > media > contrib-release-src > by-pkgid > b2b5f9be1bea5cd7348b9b3c19838188 > files > 2

fetchlog-1.0-2mdk.src.rpm

Summary:	Fetch and convert new messages of a logfile
Name:		fetchlog
Version:	1.0
Release:	%mkrel 2
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
* Sun Jan 08 2006 Oden Eriksson <oeriksson@mandriva.com> 1.0-2mdk
- rebuild

* Thu Dec 02 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 1.0-1mdk
- initial mandrake package