From ae06977f6c9a8166dedc089b5dd3cb0dbd8d540a Mon Sep 17 00:00:00 2001 From: markeryang Date: Sat, 20 Nov 2021 17:20:22 +0800 Subject: [PATCH] make check add judgment condition --- attr.spec | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/attr.spec b/attr.spec index 3be6cc6..0be3144 100644 --- a/attr.spec +++ b/attr.spec @@ -1,7 +1,7 @@ %{!?_licensedir:%global license %%doc} Name: attr Version: 2.4.48 -Release: 13 +Release: 14 Summary: Commands for Manipulating Filesystem Extended Attributes License: GPLv2+ AND LGPLv2+ URL: https://savannah.nongnu.org/projects/attr @@ -68,7 +68,12 @@ ln -fs ../sys/xattr.h $RPM_BUILD_ROOT%{_includedir}/attr/xattr.h %find_lang %{name} %check -make %{?_smp_mflags} check +if ./setfattr -n user.name -v value .; then + make check || exit $? +else + echo '*** xattrs are probably not supported by the file system,' \ + 'the test-suite will NOT run ***' +fi %post -n %{name} -p /sbin/ldconfig %postun -n %{name} -p /sbin/ldconfig @@ -92,6 +97,9 @@ make %{?_smp_mflags} check %{_mandir}/man3/* %changelog +* Sat Nov 20 2021 yanglongkang -2.4.48-14 +- make check add judgment condition + * Tue Feb 9 2021 Zhiqiang Liu - 2.4.48-13 - fix dependency problem and set release num to 13 for CI -- Gitee