2065cf
%define htmldir %{_docdir}/liblognorm/html
2065cf
2065cf
Name:		liblognorm
2065cf
Version:	2.0.5
2065cf
Release:	2%{?dist}
2065cf
Summary:	Fast samples-based log normalization library
2065cf
License:	LGPLv2+
2065cf
URL:		http://www.liblognorm.com
2065cf
Source0:	http://www.liblognorm.com/files/download/%{name}-%{version}.tar.gz
2065cf
2065cf
BuildRequires:	chrpath
2065cf
BuildRequires:	libfastjson-devel
2065cf
BuildRequires:	libestr-devel
2065cf
BuildRequires:	pcre-devel
2065cf
2065cf
Patch0: liblognorm-2.0.0-rhbz1565219-add-skipempty.patch
2065cf
2065cf
%description
2065cf
Briefly described, liblognorm is a tool to normalize log data.
2065cf
2065cf
People who need to take a look at logs often have a common problem. Logs from
2065cf
different machines (from different vendors) usually have different formats for
2065cf
their logs. Even if it is the same type of log (e.g. from firewalls), the log
2065cf
entries are so different, that it is pretty hard to read these. This is where
2065cf
liblognorm comes into the game. With this tool you can normalize all your logs.
2065cf
All you need is liblognorm and its dependencies and a sample database that fits
2065cf
the logs you want to normalize.
2065cf
2065cf
%package devel
2065cf
Summary:	Development tools for programs using liblognorm library
2065cf
Requires:	%{name}%{?_isa} = %{version}-%{release}
2065cf
2065cf
%description devel
2065cf
The liblognorm-devel package includes header files, libraries necessary for
2065cf
developing programs which use liblognorm library.
2065cf
2065cf
%package doc
2065cf
Summary: HTML documentation for liblognorm
2065cf
Group: Documentation
2065cf
BuildRequires: python3-sphinx
2065cf
2065cf
%description doc
2065cf
This sub-package contains documentation for liblognorm in a HTML form.
2065cf
2065cf
%package utils
2065cf
Summary:	Lognormalizer utility for normalizing log files
2065cf
Requires:	%{name}%{?_isa} = %{version}-%{release}
2065cf
2065cf
%description utils
2065cf
The lognormalizer is the core of liblognorm, it is a utility for normalizing
2065cf
log files.
2065cf
2065cf
%prep
2065cf
%setup -q
2065cf
2065cf
%patch0 -p1 -b .support-skipempty
2065cf
2065cf
%build
2065cf
%configure --enable-regexp --enable-docs --docdir=%{htmldir} --includedir=%{_includedir}/%{name}/
2065cf
2065cf
2065cf
%install
2065cf
make V=1 install INSTALL="install -p" DESTDIR=%{buildroot}
2065cf
rm -f %{buildroot}/%{_libdir}/*.{a,la}
2065cf
chrpath -d %{buildroot}%{_bindir}/lognormalizer
2065cf
chrpath -d %{buildroot}%{_libdir}/liblognorm.so
2065cf
rm %{buildroot}%{htmldir}/{objects.inv,.buildinfo}
2065cf
2065cf
%post -p /sbin/ldconfig
2065cf
2065cf
%postun -p /sbin/ldconfig
2065cf
2065cf
%files
2065cf
%{!?_licensedir:%global license %%doc}
2065cf
%license COPYING
2065cf
%doc AUTHORS ChangeLog README
2065cf
%exclude %{htmldir}
2065cf
2065cf
%{_libdir}/lib*.so.*
2065cf
2065cf
%files devel
2065cf
%{_libdir}/lib*.so
2065cf
%{_includedir}/%{name}/*.h
2065cf
%{_libdir}/pkgconfig/*.pc
2065cf
2065cf
%files doc
2065cf
%doc %{htmldir}
2065cf
2065cf
%files utils
2065cf
%{_bindir}/lognormalizer
2065cf
2065cf
2065cf
%changelog
2065cf
* Thu Apr 22 2021 Attila Lakatos <alakatos@redhat.com> - 2.0.5-2
2065cf
- Add support for skipempty
2065cf
  resolves: rhbz#1855422
2065cf
2065cf
* Fri Aug 03 2018 Jiri Vymazal <jvymazal@redhat.com> - 2.0.5-1
2065cf
rebase to upstream release 2.0.5
2065cf
  resolves: rhbz#1612036
2065cf
2065cf
* Mon Jul 09 2018 Charalampos Stratakis <cstratak@redhat.com> - 2.0.3-6
2065cf
- Change to python3-sphinx
2065cf
2065cf
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-5
2065cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2065cf
2065cf
* Thu Oct 12 2017 Marek Tamaskovic <mtamasko@redhat.com> - 2.0.3-4
2065cf
- Fix header files location
2065cf
- resolves rhbz#1113573
2065cf
2065cf
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-3
2065cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
2065cf
2065cf
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-2
2065cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2065cf
2065cf
* Wed Mar 29 2017 Radovan Sroka <rsroka@redhat.com> - 2.0.2-1
2065cf
- rebase to 2.0.3
2065cf
2065cf
* Thu Feb 9 2017 Radovan Sroka <rsroka@redhat.com> - 2.0.2-2
2065cf
- removed forgoten commented line
2065cf
2065cf
* Thu Feb 9 2017 Radovan Sroka <rsroka@redhat.com> - 2.0.2-1
2065cf
- rebase to 2.0.2
2065cf
2065cf
* Tue Oct 4 2016 Radovan Sroka <rsroka@redhat.com> - 2.0.1-1
2065cf
- rebase to 2.0.1
2065cf
2065cf
* Tue Mar 15 2016 Radovan Sroka <rsroka@redhat.com> - 1.1.3-1
2065cf
- rebase to v1.1.3
2065cf
2065cf
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-3
2065cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2065cf
2065cf
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-2
2065cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2065cf
2065cf
* Sun Mar 15 2015 Tomas Heinrich <theinric@redhat.com> - 1.1.1-1
2065cf
- rebase to 1.1.1 (soname bump)
2065cf
  - drop liblognorm-0.3.4-pc-file.patch, not needed anymore
2065cf
  - update dependencies for the new version
2065cf
  - add a new subpackage for documentation
2065cf
  - enable support for reqular expressions
2065cf
- make build more verbose
2065cf
2065cf
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.7-3
2065cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
2065cf
2065cf
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.7-2
2065cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2065cf
2065cf
* Wed Jul 31 2013 Tomas Heinrich <theinric@redhat.com> - 0.3.7-1
2065cf
- rebase to 0.3.7
2065cf
2065cf
* Wed Dec 12 2012 Mahaveer Darade <mah.darade@gmail.com> - 0.3.5-1
2065cf
- upgrade to upstream version 0.3.5
2065cf
- drop patch0, merged upstream
2065cf
  liblognorm-0.3.4-rename-to-lognormalizer.patch
2065cf
- remove trailing whitespace
2065cf
2065cf
* Fri Oct 05 2012 mdarade <mdarade@redhat.com> - 0.3.4-4
2065cf
- Modified description of main & util package
2065cf
2065cf
* Thu Sep 20 2012 Mahaveer Darade <mdarade@redhat.com> - 0.3.4-3
2065cf
- Renamed normalizer binary to lognormalizer
2065cf
- Updated pc file to exclude lee and lestr
2065cf
2065cf
* Mon Aug 27 2012 mdarade <mdarade@redhat.com> - 0.3.4-2
2065cf
- Updated BuildRequires to contain libestr-devel
2065cf
2065cf
* Wed Aug  1 2012 Milan Bartos <mbartos@redhat.com> - 0.3.4-1
2065cf
- initial port