--- /dev/null
+--- libetpan-1.1/configure.ac.orig 2012-09-22 10:40:15.782709486 +0200
++++ libetpan-1.1/configure.ac 2012-09-22 17:24:21.455537464 +0200
+@@ -577,12 +577,12 @@
+ AC_CHECK_HEADER(curl/curl.h, [libcurl=yes])
+ if test "x$libcurl" = "xyes"; then
+ AC_MSG_CHECKING([whether curl-config hints compiles and links fine])
+- OLDFLAGS="$LDFLAGS"
+- LDFLAGS="$LDFLAGS `$libcurlconfig --libs 2>/dev/null`"
++ OLDLIBS="$LIBS"
++ LIBS="$LIBS `$libcurlconfig --libs 2>/dev/null`"
+ AC_TRY_LINK([], [curl_easy_init();], [libcurl=yes], [libcurl=no])
+ AC_MSG_RESULT([$libcurl])
+ if test "x$libcurl" = "xno"; then
+- LDFLAGS="$OLDFLAGS"
++ LIBS="$OLDLIBS"
+ fi
+ fi
+
+@@ -609,12 +609,12 @@
+ AC_CHECK_HEADER(expat.h, [libexpat=yes])
+ if test "x$libexpat" = "xyes"; then
+ AC_MSG_CHECKING([whether libexpat compiles and links fine])
+- OLDFLAGS="$LDFLAGS"
+- LDFLAGS="$LDFLAGS -lexpat"
++ OLDLIBS="$LIBS"
++ LIBS="$LIBS -lexpat"
+ AC_TRY_LINK([], [XML_SetElementHandler();], [libexpat=yes], [libexpat=no])
+ AC_MSG_RESULT([$libexpat])
+ if test "x$libexpat" = "xno"; then
+- LDFLAGS="$OLDFLAGS"
++ LIBS="$OLDLIBS"
+ fi
+ fi
+
Summary(pl.UTF-8): Przenośna biblioteka dostępu do poczty
Name: libetpan
Version: 1.1
-Release: 1
+Release: 2
License: BSD
Group: Libraries
Source0: http://download.sourceforge.net/libetpan/%{name}-%{version}.tar.gz
# Source0-md5: 6fee60d08506e941642b8fa087e60b07
Patch0: %{name}-db.patch
+Patch1: %{name}-link.patch
URL: http://sourceforge.net/projects/libetpan/
-BuildRequires: autoconf
+BuildRequires: autoconf >= 2.61
BuildRequires: automake
+BuildRequires: curl-devel
+BuildRequires: cyrus-sasl-devel >= 2
BuildRequires: db-devel >= 4
+BuildRequires: expat-devel
+BuildRequires: liblockfile-devel
BuildRequires: libtool
BuildRequires: openssl-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Celem biblioteki jest udostępnienie przenośnego, efektywnego
pośrednika dla różnych metod dostępu do poczty. Pozwala na: obsługę
różnych protokołów sieciowych (IMAP/NNTP/POP3/SMTP przez TCP/IP oraz
-SSL/TCP/IP), obsługę lokalnych zasobów (mbox/MH/maildir) czy
-parsowanie wiadomości MIME.
+SSL/TCP/IP), obsługę lokalnych zasobów (mbox/MH/maildir), a także
+analizę wiadomości MIME.
%package devel
Summary: Header files for libEtPan
Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libEtPan
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
+Requires: curl-devel
+Requires: cyrus-sasl-devel >= 2
Requires: db-devel >= 4
+Requires: expat-devel
+Requires: liblockfile-devel
Requires: openssl-devel
%description devel
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%build
%{__libtoolize}
%{__aclocal}
%{__autoconf}
+%{__autoheader}
%{__automake}
%configure
%{__make}
%files
%defattr(644,root,root,755)
-%doc ChangeLog NEWS
+%doc COPYRIGHT ChangeLog NEWS
%attr(755,root,root) %{_libdir}/libetpan.so.*.*.*
%attr(755,root,root) %ghost %{_libdir}/libetpan.so.16
%attr(755,root,root) %{_libdir}/libetpan.so
%{_libdir}/libetpan.la
%{_includedir}/libetpan
-%{_includedir}/*.h
+%{_includedir}/libetpan.h
%files static
%defattr(644,root,root,755)