Blame SPECS/liblognorm.spec

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