[packages/esmtp] Rel 3
arekm
arekm at pld-linux.org
Thu May 21 15:32:00 CEST 2026
commit 219723cddc715f5ef5502cf99c4476c332156759
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu May 21 15:31:44 2026 +0200
Rel 3
esmtp-pkgconfig.patch | 35 +++++++++++++++++++++++++++++++++++
esmtp.spec | 5 ++++-
2 files changed, 39 insertions(+), 1 deletion(-)
---
diff --git a/esmtp.spec b/esmtp.spec
index 48fb6bc..534000b 100644
--- a/esmtp.spec
+++ b/esmtp.spec
@@ -2,13 +2,15 @@ Summary: esmtp - relay-only Mail Transfer Agent
Summary(pl.UTF-8): esmtp - MTA obsługujący tylko przekazywanie poczty do serwera (E)SMTP
Name: esmtp
Version: 1.2
-Release: 2
+Release: 3
License: GPL v2
Group: Networking/Utilities
Source0: http://dl.sourceforge.net/esmtp/%{name}-%{version}.tar.bz2
# Source0-md5: 79a9c1f9023d53f35bb82bf446150a72
+Patch0: %{name}-pkgconfig.patch
URL: http://esmtp.sourceforge.net/
BuildRequires: libesmtp-devel
+BuildRequires: pkgconfig
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -26,6 +28,7 @@ rozszerzenia SMTP StartTLS.
%prep
%setup -q
+%patch -P0 -p1
%build
%configure
diff --git a/esmtp-pkgconfig.patch b/esmtp-pkgconfig.patch
new file mode 100644
index 0000000..e6a0804
--- /dev/null
+++ b/esmtp-pkgconfig.patch
@@ -0,0 +1,35 @@
+diff -urN a/configure b/configure
+--- a/configure 2026-05-21 01:23:18.907955514 +0200
++++ b/configure 2026-05-21 01:23:18.911875244 +0200
+@@ -4343,7 +4343,13 @@
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libESMTP" >&5
+ $as_echo_n "checking for libESMTP... " >&6; }
+-if libesmtp-config --version > /dev/null 2>&1
++if pkg-config --exists libesmtp-1.0 2>/dev/null
++then
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
++$as_echo "yes" >&6; }
++ CFLAGS="$CFLAGS `pkg-config --cflags libesmtp-1.0`"
++ LIBS="$LIBS `pkg-config --libs libesmtp-1.0`"
++elif libesmtp-config --version > /dev/null 2>&1
+ then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+ $as_echo "yes" >&6; }
+diff -urN a/configure.ac b/configure.ac
+--- a/configure.ac 2026-05-21 01:23:18.908588262 +0200
++++ b/configure.ac 2026-05-21 01:23:18.912568293 +0200
+@@ -30,7 +30,12 @@
+ AC_CHECK_HEADER(libesmtp.h, ,[AC_MSG_ERROR([libesmtp.h not found in $with_libesmtp])])
+ fi
+ AC_MSG_CHECKING(for libESMTP)
+-if libesmtp-config --version > /dev/null 2>&1
++if pkg-config --exists libesmtp-1.0 2>/dev/null
++then
++ AC_MSG_RESULT(yes)
++ CFLAGS="$CFLAGS `pkg-config --cflags libesmtp-1.0`"
++ LIBS="$LIBS `pkg-config --libs libesmtp-1.0`"
++elif libesmtp-config --version > /dev/null 2>&1
+ then
+ AC_MSG_RESULT(yes)
+ CFLAGS="$CFLAGS `libesmtp-config --cflags`"
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/esmtp.git/commitdiff/219723cddc715f5ef5502cf99c4476c332156759
More information about the pld-cvs-commit
mailing list