enable check while building

(cherry picked from commit e8efc36f57388d5e626a51cd3ea7b205f4ce27f5)
This commit is contained in:
yangcheng1203 2022-04-24 17:44:38 +08:00 committed by openeuler-sync-bot
parent eba49e92b0
commit 1a91e12696

View File

@ -1,6 +1,6 @@
Name: libxcb Name: libxcb
Version: 1.14 Version: 1.14
Release: 1 Release: 2
Summary: A C binding to the X11 protocol Summary: A C binding to the X11 protocol
License: MIT License: MIT
URL: https://xcb.freedesktop.org/ URL: https://xcb.freedesktop.org/
@ -42,11 +42,15 @@ Man pages and other related documents for %{name}.
sed -i 's/pthread-stubs //' configure.ac sed -i 's/pthread-stubs //' configure.ac
autoreconf -ivf autoreconf -ivf
%configure --docdir=%{_docdir}/%{name}-%{version} --enable-selinux \ %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 %disable_rpath
%make_build %make_build
%check
make check
%install %install
%make_install %make_install
install -pm 644 COPYING NEWS README.md $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} 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 %delete_la
%ldconfig_scriptlets %ldconfig_scriptlets
%check
make check
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%{_docdir}/%{name}-%{version}/COPYING %{_docdir}/%{name}-%{version}/COPYING
@ -78,6 +79,9 @@ make check
%exclude %{_docdir}/%{name}-%{version}/COPYING %exclude %{_docdir}/%{name}-%{version}/COPYING
%changelog %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 * Mon Jul 31 2020 chxssg<chxssg@qq.com> - 1.14-1
- update package to 1.14 - update package to 1.14