[packages/imapsync] Up to 2.229
arekm
arekm at pld-linux.org
Wed Aug 30 15:19:58 CEST 2023
commit 30e70eb864736c37d908d5dcbb512effeec402bf
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed Aug 30 14:33:47 2023 +0200
Up to 2.229
imapsync.spec | 23 ++++++++++-------------
no-prereq-install.patch | 15 ++++++++-------
2 files changed, 18 insertions(+), 20 deletions(-)
---
diff --git a/imapsync.spec b/imapsync.spec
index 0439deb..4174258 100644
--- a/imapsync.spec
+++ b/imapsync.spec
@@ -1,12 +1,13 @@
+%bcond_with tests
Summary: Mailboxes synchronization tool
Summary(pl.UTF-8): Narzędzie do synchroniczacji skrzynek pocztowych
Name: imapsync
-Version: 1.945
+Version: 2.229
Release: 1
License: NOLIMIT Public License
Group: Applications/Mail
Source0: https://github.com/imapsync/imapsync/archive/%{name}-%{version}.tar.gz
-# Source0-md5: 772b7d6fe46ef801421cb4d48c59b834
+# Source0-md5: efae792ba984469ec106573a0141f56c
Patch0: no-prereq-install.patch
URL: http://imapsync.lamiral.info/
BuildRequires: cpanminus
@@ -39,6 +40,10 @@ BuildRequires: perl-Test-Warn
BuildRequires: perl-Unicode-String
BuildRequires: rpm-perlprov >= 4.1-13
BuildRequires: rpmbuild(macros) >= 1.202
+%if %{with tests}
+BuildRequires: perl-Encode-IMAPUTF7
+BuildRequires: time
+%endif
Requires: perl-Authen-NTLM
Requires: perl-Data-Uniqid
Requires: perl-Date-Manip
@@ -79,22 +84,14 @@ usunięte po udanym przesłaniu.
%setup -q -n %{name}-%{name}-%{version}
%patch0 -p1
-sed -E -i -e '1s,#!\s*/usr/bin/env\s+python2(\s|$),#!%{__python}\1,' -e '1s,#!\s*/usr/bin/env\s+python(\s|$),#!%{__python}\1,' -e '1s,#!\s*/usr/bin/python(\s|$),#!%{__python}\1,' \
- W/tools/addFromIfMissing2 \
- W/tools/fix_email_for_exchange.py \
- W/tools/html5check.py \
- W/tools/postman_imapsync.py
-
sed -E -i -e '1s,#!\s*/usr/bin/env\s+perl(\s|$),#!%{__perl}\1,' \
- imapsync \
- imapsync-1.921
-
-sed -E -i -e '1s,#!\s*/usr/bin/env\s+(.*),#!%{__bindir}\1,' \
- W/tools/wonko_ruby_imapsync
+ imapsync
%build
%{__make}
+%{?with_tests:%{__make} tests}
+
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_bindir}
diff --git a/no-prereq-install.patch b/no-prereq-install.patch
index f389f70..d66274f 100644
--- a/no-prereq-install.patch
+++ b/no-prereq-install.patch
@@ -1,16 +1,16 @@
--- imapsync-imapsync-1.882/Makefile~ 2018-05-07 16:04:51.000000000 +0200
+++ imapsync-imapsync-1.882/Makefile 2019-11-09 13:37:46.838978808 +0100
-@@ -93,7 +93,7 @@
- @echo "$(DISTRO)"
+@@ -90,7 +90,7 @@ hello:
+ @echo "DISTRO $(DISTRO)"
--all: doc VERSION biz prereq allcritic bin VERSION_EXE
-+all: doc VERSION biz allcritic bin VERSION_EXE
+-all: doc VERSION biz prereq allcritic
++all: doc VERSION biz allcritic
- testp :
+ testp:
sh INSTALL.d/prerequisites_imapsync
-@@ -165,7 +165,7 @@
- W/imapsync.1: imapsync
+@@ -162,7 +162,7 @@ W/imapsync.1: imapsync
+ mkdir -p W
pod2man imapsync > W/imapsync.1
-install: testp W/imapsync.1
@@ -18,3 +18,4 @@
mkdir -p $(DESTDIR)$(PREFIX)/bin
install imapsync $(DESTDIR)$(PREFIX)/bin/imapsync
chmod 755 $(DESTDIR)$(PREFIX)/bin/imapsync
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/imapsync.git/commitdiff/30e70eb864736c37d908d5dcbb512effeec402bf
More information about the pld-cvs-commit
mailing list