File liblognorm.spec of Package liblognorm
#
# spec file for package liblognorm
#
# Copyright (c) 2019 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 https://bugs.opensuse.org/
#
%define sover 5
Name: liblognorm
Version: 2.0.6
Release: 0
Summary: Library and tool to normalize log data
License: LGPL-2.1-or-later AND Apache-2.0
Group: Development/Libraries/C and C++
Url: http://www.liblognorm.com/
Source0: http://www.liblognorm.com/download/files/download/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: pkgconfig >= 0.9.0
BuildRequires: pkgconfig(libestr)
BuildRequires: pkgconfig(libfastjson) >= 0.99.0
BuildRequires: pkgconfig(libpcre)
%description
Liblognorm is a fast-samples based normalization library. It is a library and
a tool to normalize log data.
Liblognorm shall help to make sense out of syslog data, or, actually, any event
data that is present in text form.
In short words, one will be able to throw arbitrary log message to liblognorm,
one at a time, and for each message it will output well-defined name-value
pairs and a set of tags describing the message.
So, for example, if you have traffic logs from three different firewalls,
liblognorm will be able to "normalize" the events into generic ones. Among
others, it will extract source and destination ip addresses and ports and make
them available via well-defined fields. As the end result, a common log
analysis application will be able to work on that common set and so this
backend will be independent from the actual firewalls feeding it. Even better,
once we have a well-understood interim format, it is also easy to convert that
into any other vendor specific format, so that you can use that vendor's
analysis tool.
%package -n liblognorm%{sover}
Summary: Library and tool to normalize log data
Group: Development/Libraries/C and C++
%description -n liblognorm%{sover}
Liblognorm is a library and a tool to normalize log data.
Liblognorm shall help to make sense out of syslog data, or, actually, any event
data that is present in text form.
In short words, one will be able to throw arbitrary log message to liblognorm,
one at a time, and for each message it will output well-defined name-value
pairs and a set of tags describing the message.
So, for example, if you have traffic logs from three different firewalls,
liblognorm will be able to "normalize" the events into generic ones. Among
others, it will extract source and destination ip addresses and ports and make
them available via well-defined fields. As the end result, a common log
analysis application will be able to work on that common set and so this
backend will be independent from the actual firewalls feeding it. Even better,
once we have a well-understood interim format, it is also easy to convert that
into any other vendor specific format, so that you can use that vendor's
analysis tool.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries/C and C++
Requires: %{name}%{sover} = %{version}
Conflicts: %{name}0-devel
%description devel
Liblognorm is a library and a tool to normalize log data.
Liblognorm shall help to make sense out of syslog data, or, actually, any event
data that is present in text form.
In short words, one will be able to throw arbitrary log message to liblognorm,
one at a time, and for each message it will output well-defined name-value
pairs and a set of tags describing the message.
So, for example, if you have traffic logs from three different firewalls,
liblognorm will be able to "normalize" the events into generic ones. Among
others, it will extract source and destination ip addresses and ports and make
them available via well-defined fields. As the end result, a common log
analysis application will be able to work on that common set and so this
backend will be independent from the actual firewalls feeding it. Even better,
once we have a well-understood interim format, it is also easy to convert that
into any other vendor specific format, so that you can use that vendor's
analysis tool.
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%setup -q
%build
%configure \
--disable-static \
--enable-regexp \
--disable-testbench \
--enable-advanced-stats \
--enable-tools \
--disable-docs
make %{?_smp_mflags}
%install
make %{?_smp_mflags} DESTDIR=%{buildroot} install
find %{buildroot} -type f -name "*.la" -delete -print
%check
make check %{?_smp_mflags}
%post -n liblognorm%{sover} -p /sbin/ldconfig
%postun -n liblognorm%{sover} -p /sbin/ldconfig
%files -n liblognorm%{sover}
%defattr(-,root,root)
%license COPYING
%{_libdir}/*.so.*
%{_bindir}/lognormalizer
%files devel
%defattr(-,root,root)
%license COPYING
%doc NEWS README AUTHORS ChangeLog
%{_includedir}/*
%{_libdir}/*.so
%{_includedir}/*.h
%{_libdir}/pkgconfig/lognorm.pc
%changelog