!20 make check add judgment condition
From: @markeryang Reviewed-by: @liuzhiqiang26 Signed-off-by: @liuzhiqiang26
This commit is contained in:
commit
6f64f23279
12
attr.spec
12
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 <yanglongkang@huawei.com> -2.4.48-14
|
||||
- make check add judgment condition
|
||||
|
||||
* Tue Feb 9 2021 Zhiqiang Liu <liuzhiqiang26@huawei.com> - 2.4.48-13
|
||||
- fix dependency problem and set release num to 13 for CI
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user