File libetpan.spec of Package libetpan

#
# spec file for package libetpan (Version 0.58)
#
# Copyright (c) 2010 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/
#

# norootforbuild


Name:           libetpan
%define _prefix /usr
Version:        0.58
Release:        8
Summary:        Mail Handling Library
License:        BSD3c
Group:          System/Libraries
AutoReqProv:    on
Url:            http://libetpan.sourceforge.net/
Source0:        http://prdownloads.sourceforge.net/libetpan/libetpan-%{version}.tar.bz2
Patch:          %{name}-0.56-uninitialized.patch
Patch2:         %{name}-0.56-includes.patch
Patch3:         %{name}-0.58-libdb-4_8.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  openssl-devel
BuildRequires:  cyrus-sasl-devel
BuildRequires:  db-devel
%if %suse_version <= 1020
BuildRequires:  rsaref
%endif
%{?suse_update_config:BuildRequires:autoconf,automake}

%description
libEtPan is a mail purpose library. It will be used for low-level mail
handling : network protocols (IMAP/NNTP/POP3/SMTP over TCP/IP and
SSL/TCP/IP, already implemented), local storage (mbox/MH/maildir),
message / MIME parse



Authors:
--------
    Viet Hoa DINH

%package -n libetpan13
License:        BSD3c
Summary:        Mail handling library
Group:          System/Libraries
Provides:       %{name} = %{version}
Obsoletes:      %{name} < %{version}

%description -n libetpan13
libEtPan is a mail purpose library. It will be used for low-level mail
handling : network protocols (IMAP/NNTP/POP3/SMTP over TCP/IP and
SSL/TCP/IP, already implemented), local storage (mbox/MH/maildir),
message / MIME parse



Authors:
--------
    Viet Hoa DINH

%package -n libetpan-devel
License:        BSD3c
Summary:        Mail handling library
Group:          System/Libraries
Requires:       %{name} = %{version}-%{release}
Requires:       openssl-devel, cyrus-sasl-devel, db-devel
%if %suse_version <= 1020
Requires:       librsaref2
%endif

%description -n libetpan-devel
libEtPan is a mail purpose library. It will be used for low-level mail
handling : network protocols (IMAP/NNTP/POP3/SMTP over TCP/IP and
SSL/TCP/IP, already implemented), local storage (mbox/MH/maildir),
message / MIME parse



Authors:
--------
    Viet Hoa DINH

%prep
%setup -n libetpan-%{version}
%patch
%patch2
%patch3 -p1
%{?suse_update_libdir:%{suse_update_libdir}}
%{?suse_update_config:%{suse_update_config -f}}

%build
%configure \
	--with-gnutls=yes
%{__make}

%install
%makeinstall
# remove unneeded *.a and *.la files
%__rm %{buildroot}%{_libdir}/libetpan.{a,la}

%clean
%__rm -rf  %{buildroot}

%post -n libetpan13 -p /sbin/ldconfig

%postun -n libetpan13 -p /sbin/ldconfig

%files -n libetpan13
%defattr(-, root, root)
%doc ChangeLog NEWS doc/README*
%{_libdir}/libetpan.so.*

%files -n libetpan-devel
%defattr(-, root, root)
%doc doc/API* doc/DOCUMENTATION
%{_bindir}/libetpan-config
%dir %{_includedir}/libetpan
%{_includedir}/libetpan/*.h
%{_includedir}/libetpan.h
%{_libdir}/libetpan.so

%changelog
openSUSE Build Service is sponsored by