From a3608b2146b730a1815467f472139e0774356072 Mon Sep 17 00:00:00 2001 From: Vincent Mihalkovic Date: Thu, 29 Apr 2021 13:47:24 +0200 Subject: [PATCH] enable the upstream test suite --- file.spec | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/file.spec b/file.spec index 77cfc2b..deea3f6 100644 --- a/file.spec +++ b/file.spec @@ -15,7 +15,7 @@ Summary: Utility for determining file types Name: file Version: 5.40 -Release: 5%{?dist} +Release: 6%{?dist} License: BSD Source0: http://ftp.astron.com/pub/file/file-%{version}.tar.gz @@ -121,7 +121,7 @@ CFLAGS="%{optflags} -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE" \ # remove hardcoded library paths from local libtool sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool -export LD_LIBRARY_PATH=%{_builddir}/%{name}-%{version}/src/.libs +export LD_LIBRARY_PATH=$PWD/src/.libs %make_build %if %{with python2} cd python @@ -162,6 +162,10 @@ cd %{py3dir} %ldconfig_scriptlets libs +%check +export LD_LIBRARY_PATH=$PWD/src/.libs +make -C tests check + %files %license COPYING %doc ChangeLog README @@ -209,6 +213,9 @@ cd %{py3dir} %endif %changelog +* Wed Apr 28 2021 Vincent Mihalkovic - 5.40-6 +- enable the upstream test suite + * Mon Apr 26 2021 Vincent Mihalkovic - 5.40-5 - fix printing ext4 filesystem UUIDs (#1945122)