public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/imapfilter] epel10.3: Update to 2.8.1
@ 2026-11-01 16:54 Sandro
0 siblings, 0 replies; only message in thread
From: Sandro @ 2026-11-01 16:54 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/imapfilter
Branch : epel10.3
Commit : a16bd2905167bdfaebb8010919b8be2fc736fa10
Author : Sandro <devel@penguinpee.nl>
Date : 2023-05-02T00:03:32+02:00
Stats : +29/-39 in 5 file(s)
URL : https://src.fedoraproject.org/rpms/imapfilter/c/a16bd2905167bdfaebb8010919b8be2fc736fa10?branch=epel10.3
Log:
Update to 2.8.1
- New release uses pcre2 (RHBZ#2128312)
- Use forgemeta macros
- Update Makefile patch
- Drop 01_adjust-cafile-path.patch (patched in Makefile)
---
diff --git a/.gitignore b/.gitignore
index 21b508b..a8ad499 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,4 @@ imapfilter-2.0.11.tar.bz2
/imapfilter-makefile-fix-v2.5.5.patch
/imapfilter-2.5.5.tar.gz
/imapfilter-2.5.6.tar.gz
+/imapfilter-2.8.1.tar.gz
diff --git a/01_adjust-cafile-path.patch b/01_adjust-cafile-path.patch
deleted file mode 100644
index ff93749..0000000
--- a/01_adjust-cafile-path.patch
+++ /dev/null
@@ -1,13 +0,0 @@
---- a/src/imapfilter.c 2019-11-14 17:45:17.000000000 +0100
-+++ b/src/imapfilter.c 2019-11-18 17:40:17.426255653 +0100
-@@ -70,8 +70,8 @@
- opts.truststore = NULL;
- if (exists_dir("/etc/ssl/certs"))
- capath = "/etc/ssl/certs";
-- if (exists_file("/etc/ssl/cert.pem"))
-- cafile = "/etc/ssl/cert.pem";
-+ if (exists_file("/etc/ssl/certs/ca-bundle.crt"))
-+ cafile = "/etc/ssl/certs/ca-bundle.crt";
-
- env.home = NULL;
- env.pathmax = -1;
diff --git a/imapfilter-makefile-fix.patch b/imapfilter-makefile-fix.patch
index 1650426..587abdb 100644
--- a/imapfilter-makefile-fix.patch
+++ b/imapfilter-makefile-fix.patch
@@ -1,30 +1,26 @@
-From 297b8c60803db84248c10e1eceed1d45e9226a97 Mon Sep 17 00:00:00 2001
-From: David Sommerseth <davids@redhat.com>
-Date: Tue, 2 Jul 2013 20:19:19 +0200
-Subject: [PATCH] Tweaks to src/Makefile to fit Fedora requirements
-
-Signed-off-by: David Sommerseth <davids@redhat.com>
----
- src/Makefile | 6 +++---
- 1 file changed, 3 insertions(+), 3 deletions(-)
-
+diff --git a/src/Makefile b/src/Makefile
+index 7b02d19..0a499d7 100644
--- a/src/Makefile
+++ b/src/Makefile
-@@ -2,7 +2,7 @@ DESTDIR ?=
+@@ -2,10 +2,10 @@ DESTDIR ?=
PREFIX ?= /usr/local
BINDIR = $(PREFIX)/bin
SHAREDIR = $(PREFIX)/share/imapfilter
-MANDIR = $(PREFIX)/man
+MANDIR = $(PREFIX)/share/man
+ SSLCAPATH = /etc/ssl/certs
+-SSLCAFILE = /etc/ssl/cert.pem
++SSLCAFILE = $(SSLCAPATH)/ca-bundle.crt
+
MYCFLAGS =
MYLDFLAGS =
-@@ -16,7 +16,7 @@ LIBPCRE = -lpcre
+@@ -19,7 +19,7 @@ LIBPCRE = -lpcre2-8
LIBSSL = -lssl
LIBCRYPTO = -lcrypto
--CFLAGS = -Wall -Wextra -O -DCONFIG_SHAREDIR='"$(SHAREDIR)"' $(INCDIRS) $(MYCFLAGS)
-+CFLAGS += -Wall -Wextra -DCONFIG_SHAREDIR='"$(SHAREDIR)"' $(INCDIRS)
- LDFLAGS = $(LIBDIRS) $(MYLDFLAGS)
- LIBS = -lm -ldl $(LIBLUA) $(LIBPCRE) $(LIBSSL) $(LIBCRYPTO) $(MYLIBS)
-
+-CFLAGS = -Wall -Wextra -O \
++CFLAGS += -Wall -Wextra -O \
+ -DCONFIG_SHAREDIR='"$(SHAREDIR)"' \
+ -DCONFIG_SSL_CAPATH='"$(SSLCAPATH)"' \
+ -DCONFIG_SSL_CAFILE='"$(SSLCAFILE)"' \
diff --git a/imapfilter.spec b/imapfilter.spec
index 22cf0cd..406ab19 100644
--- a/imapfilter.spec
+++ b/imapfilter.spec
@@ -1,17 +1,22 @@
+%global forgeurl https://github.com/lefcha/imapfilter/
+
+
Name: imapfilter
-Version: 2.6.15
+Version: 2.8.1
Release: %autorelease
Summary: A flexible client side mail filtering utility for IMAP servers
-
+%forgemeta
License: MIT
-URL: https://github.com/lefcha/imapfilter/
-Source0: https://github.com/lefcha/imapfilter/archive/v%{version}.tar.gz
+URL: %{forgeurl}
+Source0: %{forgesource}
+# Fix paths for MANDIR, SSLCAFILE and keep existing CFLAGS
Patch0: imapfilter-makefile-fix.patch
-Patch1: 01_adjust-cafile-path.patch
-BuildRequires: gcc
-BuildRequires: openssl-devel lua-devel pcre-devel
-BuildRequires: make
+BuildRequires: gcc, make
+BuildRequires: openssl-devel
+BuildRequires: lua-devel
+BuildRequires: pcre2-devel
+
%description
IMAPFilter is a mail filtering utility. It connects to remote mail servers
@@ -25,6 +30,7 @@ protocol are supported.
%prep
%autosetup -p1 -n imapfilter-%{version}
+
%build
# imapfilter does not have any autotools based ./configure - just a plain Makefile
CFLAGS=$RPM_OPT_FLAGS make PREFIX=%{_prefix} %{?_smp_mflags}
diff --git a/sources b/sources
index 1819111..41c98ef 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (v2.6.15.tar.gz) = 13bc962311f08f96af599b020ae0a1f3e7c7fd82507002898aa57f8b71fc44920186e35a45a3e969a44c673f386ee80a91b242e3df018034238c8ed262ef5e1c
+SHA512 (imapfilter-2.8.1.tar.gz) = 1da663a36b0c6091c3da84d78c6826f2c8c13fd20e32723ad9647e5bf942c12cbeb327a71cf38ed2076662d65207edb3f1087d5c94565a583b8a583543d4bcd3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-01 16:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-01 16:54 [rpms/imapfilter] epel10.3: Update to 2.8.1 Sandro
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox