File libee.spec of Package libee
#
# spec file for package libee
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name:           libee
Version:        0.4.1
Release:        0
Summary:        Event expression library
License:        LGPL-2.1+
Group:          Development/Libraries/C and C++
Url:            http://www.libee.org/
Source0:        http://www.libee.org/download/files/download/%{name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  libestr-devel
BuildRequires:  libxml2-devel
BuildRequires:  pkg-config
%description
This package compiles the event expression library used by
the rsyslog daemon.
%package -n libee0 
Summary:        Event expression library
Group:          Development/Libraries/C and C++
%description -n libee0
This package provides the event expression shared library
used by the rsyslog daemon.
%package devel
Summary:        Event expression library development files
Group:          Development/Libraries/C and C++
Requires:       libee0 = %{version}
%description devel
This package provides files required for development with libee,
the event expression library used by the rsyslog daemon.
%prep
%setup -q
%build
%configure --disable-static --with-pic
# fails linking with >1 jobs
%__make
%check
make check
%install
make DESTDIR=%{buildroot} install
rm -f "%buildroot/%_libdir"/*.la
%post -n libee0 -p /sbin/ldconfig
%postun -n libee0 -p /sbin/ldconfig
%files -n libee0
%defattr(-,root,root)
%_libdir/libee.so.0*
%_sbindir/libee-convert
%files devel
%defattr(-,root,root)
%_libdir/libee.so
%_libdir/pkgconfig/libee.pc
%_includedir/libee
%changelog