!5 [sync] PR-4: 【轻量级 PR】:disable static library by default

From: @openeuler-sync-bot 
Reviewed-by: @t_feng 
Signed-off-by: @t_feng
This commit is contained in:
openeuler-ci-bot 2022-10-25 03:10:14 +00:00 committed by Gitee
commit a21008426b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,8 @@
%bcond_without static
Name: libXfixes Name: libXfixes
Version: 6.0.0 Version: 6.0.0
Release: 1 Release: 2
Summary: X11 miscellaneous "fixes" extension library Summary: X11 miscellaneous "fixes" extension library
License: MIT License: MIT
URL: https://xorg.freedesktop.org/ URL: https://xorg.freedesktop.org/
@ -27,7 +29,10 @@ developing applications that use %{name}.
%autosetup -n %{name}-%{version} -p1 %autosetup -n %{name}-%{version} -p1
%build %build
%configure %configure \
%if %{with static}
--disable-static
%endif
%make_build %make_build
%install %install
@ -46,7 +51,9 @@ developing applications that use %{name}.
%defattr(-,root,root) %defattr(-,root,root)
%{_includedir}/X11/extensions/Xfixes.h %{_includedir}/X11/extensions/Xfixes.h
%{_libdir}/pkgconfig/*.pc %{_libdir}/pkgconfig/*.pc
%if %{without static}
%{_libdir}/*.a %{_libdir}/*.a
%endif
%{_libdir}/libXfixes.so %{_libdir}/libXfixes.so
%files help %files help
@ -54,6 +61,9 @@ developing applications that use %{name}.
%{_mandir}/man3/Xfixes.3.gz %{_mandir}/man3/Xfixes.3.gz
%changelog %changelog
* Sat Oct 22 2022 wangkerong <wangkerong@h-partners.com> - 6.0.0-2
- disable static library by default
* Wed Dec 1 2021 dongyuzhen <dongyuzhen@huawei.com> - 6.0.0-1 * Wed Dec 1 2021 dongyuzhen <dongyuzhen@huawei.com> - 6.0.0-1
- update to 6.0.0 - update to 6.0.0