d9dd2d
%define htmldir %{_docdir}/liblognorm/html
d9dd2d
80ab18
Name:		liblognorm
d9dd2d
Version:	2.0.2
b2098a
Release:	3%{?dist}
80ab18
Summary:	Fast samples-based log normalization library
80ab18
80ab18
License:	LGPLv2+
80ab18
URL:		http://www.liblognorm.com
80ab18
Source0:	http://www.liblognorm.com/files/download/%{name}-%{version}.tar.gz
b2098a
Patch0:		liblognorm-2.0.0-rhbz1565219-add-skipempty.patch
80ab18
d9dd2d
BuildRequires:	chrpath
b2098a
#this release contains ABI change used by bz1565219 fix
b2098a
BuildRequires:	libfastjson-devel >= 0.99.4-3
d9dd2d
BuildRequires:	libestr-devel
d9dd2d
BuildRequires:	pcre-devel
80ab18
80ab18
%description
80ab18
Briefly described, liblognorm is a tool to normalize log data.
80ab18
80ab18
People who need to take a look at logs often have a common problem. Logs from
80ab18
different machines (from different vendors) usually have different formats for
80ab18
their logs. Even if it is the same type of log (e.g. from firewalls), the log
80ab18
entries are so different, that it is pretty hard to read these. This is where
80ab18
liblognorm comes into the game. With this tool you can normalize all your logs.
80ab18
All you need is liblognorm and its dependencies and a sample database that fits
80ab18
the logs you want to normalize.
80ab18
80ab18
%package devel
80ab18
Summary:	Development tools for programs using liblognorm library
80ab18
Requires:	%{name}%{?_isa} = %{version}-%{release}
d9dd2d
Requires:	libfastjson-devel%{?_isa}
d9dd2d
Requires:	libestr-devel%{?_isa}
80ab18
80ab18
%description devel
80ab18
The liblognorm-devel package includes header files, libraries necessary for
80ab18
developing programs which use liblognorm library.
80ab18
d9dd2d
%package doc
d9dd2d
Summary: HTML documentation for liblognorm
d9dd2d
Group: Documentation
d9dd2d
BuildRequires: python-sphinx
d9dd2d
d9dd2d
%description doc
d9dd2d
This sub-package contains documentation for liblognorm in a HTML form.
d9dd2d
80ab18
%package utils
80ab18
Summary:	Lognormalizer utility for normalizing log files
80ab18
Requires:	%{name}%{?_isa} = %{version}-%{release}
80ab18
80ab18
%description utils
80ab18
The lognormalizer is the core of liblognorm, it is a utility for normalizing
80ab18
log files.
80ab18
80ab18
%prep
80ab18
%setup -q
b2098a
%patch0 -p1 -b .skipempty
80ab18
80ab18
%build
d9dd2d
%configure --enable-regexp --enable-docs --docdir=%{htmldir}
d9dd2d
80ab18
80ab18
%install
d9dd2d
make V=1 install INSTALL="install -p" DESTDIR=%{buildroot}
80ab18
rm -f %{buildroot}/%{_libdir}/*.{a,la}
d9dd2d
chrpath -d %{buildroot}%{_bindir}/lognormalizer
d9dd2d
chrpath -d %{buildroot}%{_libdir}/liblognorm.so
d9dd2d
rm %{buildroot}%{htmldir}/{objects.inv,.buildinfo}
80ab18
80ab18
%post -p /sbin/ldconfig
80ab18
80ab18
%postun -p /sbin/ldconfig
80ab18
80ab18
%files
d9dd2d
%{!?_licensedir:%global license %%doc}
d9dd2d
%license COPYING
d9dd2d
%doc AUTHORS ChangeLog README
d9dd2d
%exclude %{htmldir}
d9dd2d
80ab18
%{_libdir}/lib*.so.*
80ab18
80ab18
%files devel
80ab18
%{_libdir}/lib*.so
80ab18
%{_includedir}/*.h
80ab18
%{_libdir}/pkgconfig/*.pc
80ab18
d9dd2d
%files doc
d9dd2d
%doc %{htmldir}
d9dd2d
80ab18
%files utils
80ab18
%{_bindir}/lognormalizer
80ab18
80ab18
d9dd2d
80ab18
%changelog
b2098a
* Fri Aug 03 2018 Jiri Vymazal <jvymazal@redhat.com> 2.0.2-3
b2098a
RHEL 7.6 erratum
b2098a
- corrected version for libfastjson build dep
b2098a
  resolves: rhbz#1565219
b2098a
b2098a
* Mon Jul 30 2018 Jiri Vymazal <jvymazal@redhat.com> 2.0.2-2
b2098a
RHEL 7.6 erratum
b2098a
- added patch with skipempty support
b2098a
  resolves: rhbz#1565219
b2098a
- removed no longer used patch file
b2098a
d9dd2d
* Wed Mar 1 2017 Radovan Sroka <rsroka@redhat.com> 2.0.2-1
d9dd2d
- rebase to 2.0.2
d9dd2d
- resolves: rhbz#1420719
d9dd2d
066f39
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.3.7-3
066f39
- Mass rebuild 2014-01-24
066f39
066f39
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.3.7-2
066f39
- Mass rebuild 2013-12-27
066f39
80ab18
* Wed Jul 31 2013 Tomas Heinrich <theinric@redhat.com> - 0.3.7-1
80ab18
- rebase to 0.3.7
80ab18
80ab18
* Wed Dec 12 2012 Mahaveer Darade <mah.darade@gmail.com> - 0.3.5-1
80ab18
- upgrade to upstream version 0.3.5
80ab18
- drop patch0, merged upstream
80ab18
  liblognorm-0.3.4-rename-to-lognormalizer.patch
80ab18
- remove trailing whitespace
80ab18
80ab18
* Fri Oct 05 2012 mdarade <mdarade@redhat.com> - 0.3.4-4
80ab18
- Modified description of main & util package
80ab18
80ab18
* Thu Sep 20 2012 Mahaveer Darade <mdarade@redhat.com> - 0.3.4-3
80ab18
- Renamed normalizer binary to lognormalizer
80ab18
- Updated pc file to exclude lee and lestr
80ab18
80ab18
* Mon Aug 27 2012 mdarade <mdarade@redhat.com> - 0.3.4-2
80ab18
- Updated BuildRequires to contain libestr-devel
80ab18
80ab18
* Wed Aug  1 2012 Milan Bartos <mbartos@redhat.com> - 0.3.4-1
80ab18
- initial port