diff --git a/libnxz.spec b/libnxz.spec index 740a500..b6da8cd 100644 --- a/libnxz.spec +++ b/libnxz.spec @@ -1,6 +1,6 @@ Name: libnxz Version: 0.62 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Zlib implementation for POWER processors License: ASL 2.0 Url: https://github.com/libnxz/power-gzip @@ -45,9 +45,12 @@ application that use %{name}. %make_build FLG="-std=gnu11 %{build_cflags} " %check -# libnxz tests only work on P9 servers or newer, bare metal, with -# Linux >= 5.8. This combination is not guaranteed to have at build time, -# forcing us to disable the tests. +# libnxz tests only work on P9 servers or newer, with Linux >= 5.8. +# This combination is not guaranteed to have at build time. Check if +# NX GZIP engine device is available before deciding to run the tests. +if [[ -w "/dev/crypto/nx-gzip" ]]; then + make -k %{?_smp_mflags} check +fi %install make install PREFIX="%{buildroot}%{_prefix}" LIBDIR="%{buildroot}%{_libdir}" @@ -66,6 +69,9 @@ make install PREFIX="%{buildroot}%{_prefix}" LIBDIR="%{buildroot}%{_libdir}" %{_libdir}/libnxz.a %changelog +* Fri Dec 03 2021 Tulio Magno Quites Machado Filho - 0.62-2 +- Enable tests if the NX GZIP engine is available. + * Mon Aug 16 2021 Raphael Moreira Zinsly - 0.62-1 - Update version.