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