public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: David Sommerseth <davids@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/imapfilter] epel10.2: Rebased against upstream imapfilter-2.5
Date: Sun, 01 Nov 2026 16:52:53 GMT	[thread overview]
Message-ID: <179355197348.1.13870692633169874508.rpms-imapfilter-a095bb4e2873@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/imapfilter
            Branch : epel10.2
            Commit : a095bb4e2873cb7fb76d2441101064ea6dddf28c
            Author : David Sommerseth <davids@redhat.com>
            Date   : 2012-02-27T12:06:01+01:00
            Stats  : +35/-24 in 5 file(s)
            URL    : https://src.fedoraproject.org/rpms/imapfilter/c/a095bb4e2873cb7fb76d2441101064ea6dddf28c?branch=epel10.2

            Log:
            Rebased against upstream imapfilter-2.5

Signed-off-by: David Sommerseth <davids@redhat.com>

---
diff --git a/.gitignore b/.gitignore
index 3239b02..c2a396f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 imapfilter-2.0.11.tar.bz2
+/imapfilter-2.5.tar.gz

diff --git a/imapfilter-configure.patch b/imapfilter-configure.patch
deleted file mode 100644
index 9ed668b..0000000
--- a/imapfilter-configure.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git a/configure b/configure
-index 6b5b0d5..0be3f84 100755
---- a/configure
-+++ b/configure
-@@ -13,7 +13,7 @@ crammd5="yes"
- incdirs="-I/usr/local/include"
- libdirs="-L/usr/local/lib"
- 
--mycflags="$CFLAGS -Wall -O"
-+mycflags="$CFLAGS -Wall"
- myldflags="$LDFLAGS"
- 
- libs="-lm -llua -lpcre"

diff --git a/imapfilter-makefile-fix.patch b/imapfilter-makefile-fix.patch
new file mode 100644
index 0000000..bb74905
--- /dev/null
+++ b/imapfilter-makefile-fix.patch
@@ -0,0 +1,22 @@
+--- src/Makefile.upstream	2012-02-27 11:26:33.399816815 +0100
++++ src/Makefile	2012-02-27 11:29:11.478811550 +0100
+@@ -1,8 +1,8 @@
+ DESTDIR =
+-PREFIX = /usr/local
++PREFIX = /usr
+ BINDIR = $(PREFIX)/bin
+ SHAREDIR = $(PREFIX)/share/imapfilter
+-MANDIR = $(PREFIX)/man
++MANDIR = $(PREFIX)/share/man
+ 
+ MYCFLAGS =
+ MYLDFLAGS =
+@@ -16,7 +16,7 @@
+ LIBSSL = -lssl
+ LIBCRYPTO = -lcrypto
+ 
+-CFLAGS = -Wall -O -DCONFIG_SHAREDIR='"$(SHAREDIR)"' $(INCDIRS) $(MYCFLAGS)
++CFLAGS += -Wall -DCONFIG_SHAREDIR='"$(SHAREDIR)"' $(INCDIRS)
+ LDFLAGS = $(LIBDIRS) $(MYLDFLAGS)
+ LIBS = -lm $(LIBLUA) $(LIBPCRE) $(LIBSSL) $(LIBCRYPTO) $(MYLIBS)
+ 

diff --git a/imapfilter.spec b/imapfilter.spec
index cd768be..cf0ca24 100644
--- a/imapfilter.spec
+++ b/imapfilter.spec
@@ -1,13 +1,13 @@
 Name:           imapfilter
-Version:        2.2.2
-Release:        4%{?dist}
+Version:        2.5
+Release:        1%{?dist}
 Summary:        A flexible client side mail filtering utility for IMAP servers
 
 Group:          Applications/Internet
 License:        MIT
 URL:            http://imapfilter.hellug.gr/
-Source0:        http://imapfilter.hellug.gr/source/imapfilter-%{version}.tar.bz2
-Patch0:         http://people.redhat.com/~dsommers/imapfilter/imapfilter-configure.patch
+Source0:        https://github.com/downloads/lefcha/imapfilter/imapfilter-%{version}.tar.gz
+Patch0:         http://people.redhat.com/~dsommers/imapfilter/imapfilter-makefile-fix.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  openssl-devel lua-devel pcre-devel
@@ -23,14 +23,11 @@ protocol are supported.
 
 %prep
 %setup -q
-%patch0 -p1
+%patch0
 
 %build
-# As the ./configure script in imapfilter is not autotools based, other arguments need to
-# be used.  This will cause rpmlint configure-without-libdir-spec warnings on the spec file
-# and the src.rpm.
-CFLAGS=$RPM_OPT_FLAGS ./configure -p %{_prefix} -b %{_bindir} -s %{_datadir}/imapfilter -m %{_mandir}
-make %{?_smp_mflags}
+# imapfilter does not have any autotools based ./configure - just a plain Makefile
+CFLAGS=$RPM_OPT_FLAGS make %{?_smp_mflags}
 
 
 %install
@@ -52,6 +49,10 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Mon Feb 27 2012 David Sommerseth <davids@redhat.com> - 2.5-1
+- Updated to latest upstream version
+- Replaced the configure patch with a makefile patch, as upstream has changed their building methods
+
 * Fri Feb 10 2012 Petr Pisar <ppisar@redhat.com> - 2.2.2-4
 - Rebuild against PCRE 8.30
 

diff --git a/sources b/sources
index 1438b23..b2543c9 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-09c6ffb085a5a244dc9f3e798259f341  imapfilter-2.2.2.tar.bz2
+93821a52b8906e789c63b639cbf86dac  imapfilter-2.5.tar.gz

                 reply	other threads:[~2026-11-01 16:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179355197348.1.13870692633169874508.rpms-imapfilter-a095bb4e2873@fedoraproject.org \
    --to=davids@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox