File libetpan.spec of Package libetpan

#
# spec file for package libetpan (Version 0.56)
#
# Copyright (c) 2008 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.56
Release:        2
Summary:        mail handling library
License:        GPL v2 or later
Group:          System/Libraries
AutoReqProv:    on
Url:            http://libetpan.sourceforge.net/
Source0:        http://prdownloads.sourceforge.net/libetpan/libetpan-%{version}.tar.bz2
Patch:          %{name}-%{version}-uninitialized.patch
Patch2:         %{name}-%{version}-includes.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:        BSD 3-Clause
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:        BSD 3-Clause
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
%{?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 AUTHORS 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
* Mon Oct 13 2008 nadvornik@suse.cz
- fixed rpmlint errors - implicit decrarations and ldconfig
* Fri Sep 12 2008 anosek@suse.cz
- updated to version 0.56
  * bugfix release
- removed libtool from BuildRequires
* Wed Mar 05 2008 anosek@suse.cz
- updated to version 0.54
  - fixed regression on IMAP APPEND
  - cleanup
  - version fixes
  - IPv6 issue
  - gmail issues
* Tue Sep 11 2007 ro@suse.de
- drop useless requires for librsaref2
* Tue Aug 14 2007 bwalle@suse.de
- sort this changes file to fix build in BuildService
* Fri Aug 03 2007 anosek@suse.cz
- updated to version 0.51
  * bugfix release
- dropped obsoleted mailsmtp.patch
* Wed Jul 25 2007 anosek@suse.cz
- updated to version 0.50
  * feature enhancements:
  RSS/ATOM feed implemented
  switched to automake build system
  IMAP IDLE implemented
  fetching by Message-Id implemented
  * fixes:
  several build fixes for Windows
  documentation build fixed
- fixed compilation error (mailsmtp.patch)
* Mon Jul 23 2007 suse-tux@gmx.de
- fixed build on older suse versions (< 1030)
- renamed devel package to libetpan-devel (as suggested by
  darix)
* Mon Jul 02 2007 lrupp@suse.de
- rsaref => librsaref2
* Mon Jun 18 2007 ro@suse.de
- fix another typo in  specfile
* Fri Jun 15 2007 ro@suse.de
- fix specfile (consistently use libetpan-devel)
* Fri Jun 15 2007 suse-tux@gmx.de
- minor spec fix
* Fri Jun 08 2007 suse-tux@gmx.de
- update package to fit to the Shared Library Packaging
  Policy
- remove unused *.a and *.la files
* Tue Jan 09 2007 anosek@suse.cz
- updated to version 0.49
  * feature enhancements:
  stream cancellation
  better handling of ssl error
  improved imap cache
  * fixes:
  various bugfixes
* Thu Dec 07 2006 anosek@suse.cz
- updated to version 0.48
  * IMAP UIDPLUS support
  * Various fixes
- fixed compiler warning: uninitialized variable used
  (uninitialized.patch)
* Wed Oct 25 2006 anosek@suse.cz
- fixed compiler warning: variable used before set
  [#212522] (dbdriver.patch)
* Tue Oct 17 2006 anosek@suse.cz
- updated to version 0.47
  * feature enhancements:
  IPv6 Support
  * fixes:
  various leaks and crashes
  MIME decoding fix
  gnutls fix
  SASL fix
  AUTH parser fix
* Tue Sep 26 2006 anosek@suse.cz
- new package, version 0.46
- taken from BuildService
  (maintainer Marcus Hüwe <marcus@links2linux.de>)
openSUSE Build Service is sponsored by