File wflogs.spec of Package wflogs

#
# spec file for package
#
# Copyright (c) 2010 SUSE LINUX Products 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:           wflogs
Version:        0.9.8
Release:        1
License:        GPL v2 or later
Summary:        Wflogs is a firewall log analysis tool
Group:          Productivity/Other
Source:         %{name}-%{version}.tar.gz
Patch0:         wflogs-includes.patch
BuildRequires:  gcc-c++
#BuildRequires:  libwfnetobjs-devel
BuildRequires:  bison
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
From http://www.wallfire.org/wflogs/
Wflogs is a firewall log analysis tool. It can be used to produce a log summary report in plain text, HTML and XML, or to monitor firewalling logs in real-time.

%prep
%setup -q
%patch0 -p1

%build
%configure \
        --disable-static \
        --with-wfnetobjs-libdir=%{_libdir}
make

%install
%makeinstall

# Write a proper %%files section and remove these two commands and
# the '-f filelist' option to %%files
echo '%%defattr(-,root,root)' >filelist
find %{buildroot} -type f -printf '/%%P*\n' >>filelist


%clean
rm -rf %{buildroot}

%files -f filelist
%defattr(-,root,root)

# This is a place for a proper filelist:
# %{_bindir}/wflogs
# You can also use shell wildcards:
# %{_datadir}/wflogs/*
# This installs documentation files from the top build directory
# into %{_datadir}/doc/...
# %doc README COPYING
# The advantage of using a real filelist instead of the '-f filelist' trick is
# that rpmbuild will detect if the install section forgets to install
# something that is listed here


%changelog