File turbotail.spec of Package turbotail

#
# spec file for package turbotail
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           turbotail
Version:        0.3
Release:        0
Summary:        FAM based tail replacement
License:        GPL-2.0+
Group:          System/Monitoring
Url:            http://www.vanheusden.com/turbotail/
Source:         http://www.vanheusden.com/turbotail/turbotail-%{version}.tgz
Patch1:         turbotail-optflags.patch
BuildRequires:  autoconf
BuildRequires:  automake
%if 0%{?suse_version} > 1210
BuildRequires:  gamin-devel
%else
BuildRequires:  fam-devel
%endif
BuildRequires:  gcc
BuildRequires:  glibc-devel
BuildRequires:  libtool
BuildRequires:  make
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
A drop-in replacement for the original (GNU-)tail program which uses the SGI
FAM daemon instead of polling every second.

%prep
%setup -q
%patch1

%build
make %{?_smp_mflags} \
    DEBUG="%{optflags}" \
    CC="gcc"

%install
install -D -m0755 turbotail "%{buildroot}%{_bindir}/turbotail"

%files
%defattr(-,root,root)
%doc *.txt
%{_bindir}/turbotail

%changelog
openSUSE Build Service is sponsored by