File debian.libestr.spec of Package libestr

#
# spec file for package libestr
#
# Copyright (c) 2014 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:           libestr
Version:        0.1.11
Release:        0
Summary:        String handling essentials library
License:        LGPL-2.1+
Group:          Development/Libraries/C and C++
Url:            http://libestr.adiscon.com/
Source0:        http://libestr.adiscon.com/files/download/%{name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  pkgconfig

%description
This package compiles the string handling essentials library
used by the rsyslog daemon.

%package -n libestr0
Summary:        String handling essentials library
Group:          Development/Libraries/C and C++

%description -n libestr0
This package provides the string handling essentials shared library
used by the rsyslog daemon.

%package devel
Summary:        String handling essentials development files
Group:          Development/Libraries/C and C++
Requires:       libestr0 = %{version}

%description devel
This package provides files required for development with libestr,
the string handling essentials library used by the rsyslog daemon.

%prep
%setup -q

%build
%configure --disable-static
%__make %{?_smp_mflags}

%check
%__make check

%install
%makeinstall
rm -f "%buildroot/%_libdir"/*.la

%post -n libestr0 -p /sbin/ldconfig

%postun -n libestr0 -p /sbin/ldconfig

%files -n libestr0
%defattr(-,root,root)
%{_libdir}/libestr.so.0*

%files devel
%defattr(-,root,root)
%_libdir/libestr.so
%_libdir/pkgconfig/libestr.pc
%_includedir/libestr.h

%changelog