!10 [sync] PR-9: enable check while building

From: @openeuler-sync-bot 
Reviewed-by: @weidongkl 
Signed-off-by: @weidongkl
This commit is contained in:
openeuler-ci-bot 2022-04-26 01:36:45 +00:00 committed by Gitee
commit 149acc5e25
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
Name: libxcb
Version: 1.14
Release: 1
Release: 2
Summary: A C binding to the X11 protocol
License: MIT
URL: https://xcb.freedesktop.org/
@ -42,11 +42,15 @@ Man pages and other related documents for %{name}.
sed -i 's/pthread-stubs //' configure.ac
autoreconf -ivf
%configure --docdir=%{_docdir}/%{name}-%{version} --enable-selinux \
--enable-xkb --enable-xinput --disable-xprint --disable-silent-rules
--enable-xkb --enable-xinput --disable-xprint --disable-silent-rules \
--enable-unit-tests
%disable_rpath
%make_build
%check
make check
%install
%make_install
install -pm 644 COPYING NEWS README.md $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
@ -56,9 +60,6 @@ sed 's,@libdir@,%{_libdir},;s,@prefix@,%{_prefix},;s,@exec_prefix@,%{_exec_prefi
%delete_la
%ldconfig_scriptlets
%check
make check
%files
%defattr(-,root,root)
%{_docdir}/%{name}-%{version}/COPYING
@ -78,6 +79,9 @@ make check
%exclude %{_docdir}/%{name}-%{version}/COPYING
%changelog
* Sun Apr 24 2022 yangcheng <yangcheng87@h-partners.com> - 1.14-2
- enable check while building
* Mon Jul 31 2020 chxssg<chxssg@qq.com> - 1.14-1
- update package to 1.14