public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libetpan] rawhide: execute unittest
@ 2026-05-31 12:04 Mamoru TASAKA
0 siblings, 0 replies; only message in thread
From: Mamoru TASAKA @ 2026-05-31 12:04 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/libetpan
Branch : rawhide
Commit : 72ec5bb0df1bb4fe20dffbb55f854c71d2e67099
Author : Mamoru TASAKA <mtasaka@fedoraproject.org>
Date : 2026-05-31T09:26:28+01:00
Stats : +40/-2 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/libetpan/c/72ec5bb0df1bb4fe20dffbb55f854c71d2e67099?branch=rawhide
Log:
execute unittest
---
diff --git a/libetpan-1.10-xmlError-constness.patch b/libetpan-1.10-xmlError-constness.patch
new file mode 100644
index 0000000..e343887
--- /dev/null
+++ b/libetpan-1.10-xmlError-constness.patch
@@ -0,0 +1,11 @@
+--- libetpan-1.10/unittest/plaintext-rendering/html_flattener.c.const 2026-05-22 07:44:38.000000000 +0100
++++ libetpan-1.10/unittest/plaintext-rendering/html_flattener.c 2026-05-31 09:03:48.514228462 +0100
+@@ -366,7 +366,7 @@ static void comment_parsed(void * ctx, c
+ (void) value;
+ }
+
+-static void structured_error(void * user_data, xmlErrorPtr error)
++static void structured_error(void * user_data, const xmlError * error)
+ {
+ (void) user_data;
+ (void) error;
diff --git a/libetpan.spec b/libetpan.spec
index 140b486..b4cdc96 100644
--- a/libetpan.spec
+++ b/libetpan.spec
@@ -1,6 +1,6 @@
Name: libetpan
Version: 1.10
-Release: 0.100%{?dist}
+Release: 0.101%{?dist}
Summary: Portable, efficient middle-ware for different kinds of mail access
# src/bsd/getopt.c BSD-4-Clause (not used)
@@ -11,6 +11,8 @@ URL: http://www.etpan.org/
Source0: https://github.com/dinhviethoa/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
# system crypto policy (see rhbz#1179310)
Patch10: libetpan-1.9.2-cryptopolicy.patch
+# xmlError constness
+Patch11: libetpan-1.10-xmlError-constness.patch
# Upstream patches
#
@@ -28,6 +30,9 @@ BuildRequires: make
# libcurl and libexpat not needed by Claws Mail:
# http://lists.claws-mail.org/pipermail/users/2016-January/015665.html
#BuildRequires: libcurl-devel expat-devel
+# %%check
+BuildRequires: libxml2-devel
+BuildRequires: pkgconfig(tidy)
%description
The purpose of this mail library is to provide a portable, efficient middle-ware
@@ -51,6 +56,7 @@ find . -name \*.gz -delete
sed -i.flags libetpan.pc.in \
-e 's|-letpan@LIBSUFFIX@.*$|-letpan@LIBSUFFIX@|'
%patch -P10 -p1 -b .crypto-policy
+%patch -P11 -p1 -b .const
# 2013-08-05 F20 development, bz 992070: The configure scripts adds some
# extra libs to the GnuTLS link options, which cause rebuilds to fail, since
@@ -84,7 +90,28 @@ rm -rf $RPM_BUILD_ROOT%{_libdir}/libetpan.{,l}a
iconv -f iso8859-1 -t utf-8 ChangeLog > ChangeLog.conv && mv -f ChangeLog.conv ChangeLog
-%ldconfig_scriptlets
+%check
+# unittest
+# plaintext-rendering does not work well
+export LD_LIBRARY_PATH=$(pwd)/src/.libs
+pushd unittest
+
+sed -i.shared Makefile \
+ -e 's|libetpan.a|libetpan.so|' \
+ -e 's|-liconv ||' \
+ -e 's|-Werror |-Werror -Wno-error=deprecated-declarations |' \
+ -e 's|\$(TIDY_LDLIBS) |$(TIDY_LDLIBS) -lm |' \
+ %{nil}
+
+# plaintext_rendering_test does not work well
+sed -i.opt Makefile \
+ -e '\@cd plaintext-rendering@s|./plaintext_rendering_test|true ./plaintext_rendering_test|' \
+ %{nil}
+make
+make check
+
+popd
+
%files
%license COPYRIGHT
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-05-31 12:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-31 12:04 [rpms/libetpan] rawhide: execute unittest Mamoru TASAKA
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox