Blame SPECS/liblognorm.spec

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