[packages/archivemail] Rel 4

arekm arekm at pld-linux.org
Tue May 12 19:47:25 CEST 2026


commit 22366f0eb228a358e2477796b0e3e3b2f9a00370
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Tue May 12 19:47:07 2026 +0200

    Rel 4

 archivemail-python2-fix.patch | 28 ++++++++++++++++++++++++++++
 archivemail.spec              |  4 +++-
 2 files changed, 31 insertions(+), 1 deletion(-)
---
diff --git a/archivemail.spec b/archivemail.spec
index 945b9d7..24cad17 100644
--- a/archivemail.spec
+++ b/archivemail.spec
@@ -6,7 +6,7 @@ Summary:	Archive and compress old email
 Summary(pl.UTF-8):	Archiwizowanie starej poczty
 Name:		archivemail
 Version:	0.7.2
-Release:	3
+Release:	4
 License:	GPL
 Group:		Applications/Mail
 Source0:	http://dl.sourceforge.net/archivemail/%{name}-%{version}.tar.gz
@@ -18,6 +18,7 @@ Patch3:		%{name}-preserve-symlinks.patch
 Patch4:		%{name}-add-prefix-switch.patch
 Patch5:		%{name}-add-archive-all-switch.patch
 Patch6:		%{name}-relax-timestamps-test.patch
+Patch7:		%{name}-python2-fix.patch
 URL:		http://archivemail.sourceforge.net/
 BuildRequires:	rpmbuild(macros) >= 1.710
 BuildRequires:	python-devel >= 2.0
@@ -68,6 +69,7 @@ skrzynek pocztowych: IMAP, Maildir, MH oraz mbox.
 %patch -P4 -p1
 %patch -P5 -p1
 %patch -P6 -p1
+%patch -P7 -p1
 
 %{__sed} -i -e 's,man/man1,%{_mandir}/man1,' setup.py
 
diff --git a/archivemail-python2-fix.patch b/archivemail-python2-fix.patch
new file mode 100644
index 0000000..0acefbe
--- /dev/null
+++ b/archivemail-python2-fix.patch
@@ -0,0 +1,28 @@
+--- archivemail-0.7.2/archivemail.orig
++++ archivemail-0.7.2/archivemail
+@@ -1,4 +1,4 @@
+-#! /usr/bin/env python
++#! /usr/bin/env python2
+ ############################################################################
+ # Copyright (C) 2002  Paul Rodger <paul at paulrodger.com>,
+ #           (C) 2006  Peter Poeml <poeml at suse.de>,
+@@ -1123,7 +1123,7 @@
+     assert(mailbox_name) 
+ 
+     set_signal_handlers()
+-    os.umask(077) # saves setting permissions on mailboxes/tempfiles
++    os.umask(0o77) # saves setting permissions on mailboxes/tempfiles
+ 
+     # allow the user to embed time formats such as '%B' in the suffix string
+     if options.date_old_max == None:
+--- archivemail-0.7.2/test_archivemail.py.orig
++++ archivemail-0.7.2/test_archivemail.py
+@@ -336,7 +336,7 @@
+ 
+     def testJustOld(self):
+         """with max_days=1, should be true for these dates >= 1 day"""
+-        for minutes in range(0, 61):
++        for minutes in range(0, 59):
+             time_msg = time.time() - (25 * 60 * 60) + (minutes * 60)
+             assert(archivemail.is_older_than_days(time_message=time_msg, 
+                 max_days=1))
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/archivemail.git/commitdiff/22366f0eb228a358e2477796b0e3e3b2f9a00370



More information about the pld-cvs-commit mailing list