Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package libXpm for openSUSE:Factory checked 
in at 2026-12-01 17:19:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libXpm (Old)
 and      /work/SRC/openSUSE:Factory/.libXpm.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libXpm"

Tue Dec  1 17:19:07 2026 rev:22 rq:1401654 version:3.5.20

Changes:
--------
--- /work/SRC/openSUSE:Factory/libXpm/libXpm.changes    2026-10-18 
19:22:39.941122697 +0200
+++ /work/SRC/openSUSE:Factory/.libXpm.new.1340718/libXpm.changes       
2026-12-01 17:19:14.667253715 +0100
@@ -1,0 +2,27 @@
+Mon Nov 30 12:39:50 UTC 2026 - Zoltan Balogh <[email protected]>
+
+- Restrict the test block to Tumbleweed and Factory. The condition is
+  now suse_version >= 1699; SLE 16.0, SLE 16.1, Leap 16.0 and SLFO
+  keep the old spec.
+
+-------------------------------------------------------------------
+Sat Nov 28 12:00:50 UTC 2026 - Zoltan Balogh <[email protected]>
+
+- Run the test suite on i586 without the .Z cases. The i586 skip is
+  arch-wide because Tumbleweed and Factory i586 share one expansion;
+  ncompress is missing in Factory i586. Keep the ncompress
+  BuildRequires and the .Z test data on the other architectures only.
+
+-------------------------------------------------------------------
+Sat Nov 28 11:37:35 UTC 2026 - Zoltan Balogh <[email protected]>
+
+- Enable the upstream unit tests on Tumbleweed and Factory: build with
+  --enable-unit-tests and run them with make check. Add ncompress and
+  pkgconfig(glib-2.0) BuildRequires for the tests. The test block is
+  limited to Tumbleweed and Factory (suse_version 1699 and later);
+  SLE 15, SLE 16, Leap and SLFO builds are unchanged.
+- ncompress is only a build-time dependency for %check. The runtime
+  Suggests: /usr/bin/compress and XPM_PATH_COMPRESS handling are
+  unchanged.
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libXpm.spec ++++++
--- /var/tmp/diff_new_pack.2r4CZ2/_old  2026-12-01 17:19:15.466287348 +0100
+++ /var/tmp/diff_new_pack.2r4CZ2/_new  2026-12-01 17:19:15.467287391 +0100
@@ -17,6 +17,14 @@
 
 
 %define lname  libXpm4
+# The test suite needs ncompress for the .Z pixmap cases. Run the tests
+# only on Tumbleweed and Factory (suse_version >= 1699); all SLE, Leap
+# and SLFO builds stay unchanged. ncompress is missing for i586 in
+# Factory, so the i586 skip is arch-wide: Tumbleweed and Factory i586
+# share one expansion and both run the suite without the .Z cases.
+%if 0%{?is_opensuse} && 0%{?suse_version} >= 1699
+%define with_unit_tests 1
+%endif
 Name:           libXpm
 Version:        3.5.20
 Release:        0
@@ -34,8 +42,16 @@
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  libtool
+%if 0%{?with_unit_tests}
+%ifnarch %{ix86}
+BuildRequires:  ncompress
+%endif
+%endif
 
 BuildRequires:  pkgconfig
+%if 0%{?with_unit_tests}
+BuildRequires:  pkgconfig(glib-2.0)
+%endif
 BuildRequires:  pkgconfig(x11)
 BuildRequires:  pkgconfig(xext)
 BuildRequires:  pkgconfig(xextproto)
@@ -89,17 +105,44 @@
 
 %prep
 %autosetup -p1
+%if 0%{?with_unit_tests}
+%ifarch %{ix86}
+# ncompress is missing for i586 in Factory. The skip is arch-wide
+# because Tumbleweed and Factory i586 share one expansion. Drop the .Z
+# test data and compile out the .Z writer checks; the library keeps its
+# XPM_PATH_COMPRESS support.
+grep -q 'compress -f pixmaps' test/Makefile.am || {
+  echo 'compress lines not found in test/Makefile.am'
+  exit 1
+}
+sed -i '/compress -f pixmaps/d' test/Makefile.am
+grep -q '#ifdef XPM_PATH_COMPRESS' test/XpmWrite.c || {
+  echo 'XPM_PATH_COMPRESS checks not found in test/XpmWrite.c'
+  exit 1
+}
+sed -i 's/^#ifdef XPM_PATH_COMPRESS$/#if 0/' test/XpmWrite.c
+%endif
+%endif
 
 %build
 autoreconf -fi
 export XPM_PATH_COMPRESS=%{_bindir}/compress
+%if 0%{?with_unit_tests}
+%configure --disable-static --enable-unit-tests
+%else
 %configure --disable-static
+%endif
 %make_build
 
 %install
 %make_install
 find %{buildroot} -type f -name "*.la" -delete -print
 
+%if 0%{?with_unit_tests}
+%check
+%make_build check
+%endif
+
 %post -n %{lname} -p /sbin/ldconfig
 %postun -n %{lname} -p /sbin/ldconfig
 

Reply via email to