make check add judgment condition
This commit is contained in:
parent
e91f922142
commit
ae06977f6c
12
attr.spec
12
attr.spec
@ -1,7 +1,7 @@
|
|||||||
%{!?_licensedir:%global license %%doc}
|
%{!?_licensedir:%global license %%doc}
|
||||||
Name: attr
|
Name: attr
|
||||||
Version: 2.4.48
|
Version: 2.4.48
|
||||||
Release: 13
|
Release: 14
|
||||||
Summary: Commands for Manipulating Filesystem Extended Attributes
|
Summary: Commands for Manipulating Filesystem Extended Attributes
|
||||||
License: GPLv2+ AND LGPLv2+
|
License: GPLv2+ AND LGPLv2+
|
||||||
URL: https://savannah.nongnu.org/projects/attr
|
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}
|
%find_lang %{name}
|
||||||
|
|
||||||
%check
|
%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
|
%post -n %{name} -p /sbin/ldconfig
|
||||||
%postun -n %{name} -p /sbin/ldconfig
|
%postun -n %{name} -p /sbin/ldconfig
|
||||||
@ -92,6 +97,9 @@ make %{?_smp_mflags} check
|
|||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Tue Feb 9 2021 Zhiqiang Liu <liuzhiqiang26@huawei.com> - 2.4.48-13
|
||||||
- fix dependency problem and set release num to 13 for CI
|
- fix dependency problem and set release num to 13 for CI
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user