File logsurfer.spec of Package logsurfer
#
# spec file for package logsurfer (Version 1.5a)
#
# Copyright (c) 2002 SuSE Linux AG, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# please send bugfixes or comments to feedback@suse.de.
#
Name: logsurfer
Version: 1.8
Release: 0
# License: X11/MIT # this was the old license, not sure if just MIT is right
# See BNC 779005 - unresolved license issue. Must be resolved prior to factory submission
License: MIT
Summary: Powerful tool to observe logfiles
Url: http://sourceforge.net/projects/logsurfer
Group: Productivity/Security
Source: logsurfer-%{version}.tar.gz
Source1: logsurfer.conf
# PATCH-FIX-OPENSUSE logsurfer-fix-install.patch Greg.Freemyer@gmail.com -- create directories during install
Patch0: logsurfer-fix-install.patch
# PATCH-FIX-UPSTREAM logsurfer-compile-fix.patch Greg.Freemyer@gmail.com -- change runasdaemon() to void
Patch1: logsurfer-compile-fix.patch
Recommends: logsurfer-doc
Provides: logsurf
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# logsurfer+ v1.7 was renamed in 2011 to logsurfer v1.8. This lets zypper know.
Provides: logsurfer+ = %{version}
Obsoletes: logsurfer+ < %{version}
%description
This program makes it possible to observe logfiles and to react on
special events, that can be defined by regular expressions, with a
defined action, e.g. to send a mail.
%package -n logsurfer-doc
Summary: Regex documentation from the full regex package
Group: Productivity/Security
Requires: logsurfer
%description -n logsurfer-doc
Logsurfer uses the regex syntax and this sub-package includes a documentation file
from the full regex package that may be useful to understand the syntax. The full
regex package is rather large and includes additional documentation.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
chmod -x contrib/start-mail/start-mail
%build
%configure --with-etcdir=/etc --disable-debug
make
%install
%if 0%{?sles_version} > 9
%{__make} install DESTDIR=%{buildroot}
%else
%make_install
%endif
install -D -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/logsurfer.conf
%files
%defattr(-,root,root,755)
%doc ChangeLog DISCLAIMER README TODO contrib
%defattr(-,root,root,-)
%{_bindir}/logsurfer
%config(noreplace) %{_sysconfdir}/logsurfer.conf
%doc %{_mandir}/man?/*
%files -n logsurfer-doc
%defattr(644,root,root,755)
%doc regex
%changelog