disable static library by default

Signed-off-by: kerongw <wangkerong@h-partners.com>
(cherry picked from commit 76d39eff7a501ca248bbaf90dc82c9794365c413)
This commit is contained in:
kerongw 2022-10-22 03:22:02 +00:00 committed by openeuler-sync-bot
parent 629b3f3cea
commit 0507ae604b

View File

@ -1,6 +1,8 @@
%bcond_without static
Name: libXv Name: libXv
Version: 1.0.11 Version: 1.0.11
Release: 11 Release: 12
Summary: library for the X Video extension to the X Window System Summary: library for the X Video extension to the X Window System
License: MIT License: MIT
URL: https://www.x.org URL: https://www.x.org
@ -27,7 +29,10 @@ The development package for libXv.
%build %build
autoreconf -v --install --force autoreconf -v --install --force
%configure %configure \
%if %{with static}
--disable-static
%endif
%make_build %make_build
%install %install
@ -45,7 +50,9 @@ autoreconf -v --install --force
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/libXv.so %{_libdir}/libXv.so
%if %{without static}
%{_libdir}/libXv.a %{_libdir}/libXv.a
%endif
%{_libdir}/pkgconfig/xv.pc %{_libdir}/pkgconfig/xv.pc
%{_includedir}/X11/extensions/Xvlib.h %{_includedir}/X11/extensions/Xvlib.h
@ -55,6 +62,9 @@ autoreconf -v --install --force
%doc man/xv-library-v2.2.txt %doc man/xv-library-v2.2.txt
%changelog %changelog
* Sat Oct 22 2022 wangkerong <wangkerong@h-partners.com> - 1.0.11-12
- disable static library by default
* Sat Oct 19 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.0.11-11 * Sat Oct 19 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.0.11-11
- Type:bugfix - Type:bugfix
- Id:NA - Id:NA