[packages/libjpeg-turbo] add static_libs bcond
atler
atler at pld-linux.org
Wed Jan 24 20:01:26 CET 2024
commit 3d316a75d986fdf1f45b66621ddb44d1d9028f75
Author: Jan Palus <atler at pld-linux.org>
Date: Wed Jan 24 19:41:44 2024 +0100
add static_libs bcond
libjpeg-turbo.spec | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/libjpeg-turbo.spec b/libjpeg-turbo.spec
index 58e3279..6149355 100644
--- a/libjpeg-turbo.spec
+++ b/libjpeg-turbo.spec
@@ -1,7 +1,8 @@
#
# Conditional build
-%bcond_without tests # don't perform "make test"
-%bcond_without java # Java binding
+%bcond_without tests # don't perform "make test"
+%bcond_without java # Java binding
+%bcond_without static_libs # static libraries
#
%define libjpeg_ver 8c
%define libjpeg_ver_lt 9-1
@@ -179,6 +180,7 @@ export JAVA_HOME="%{java_home}"
install -d build
cd build
%cmake .. \
+ %{cmake_on_off static_libs ENABLE_STATIC} \
%{?with_java:-DWITH_JAVA=ON} \
%ifnarch %{ix86} %{x8664} x32 %{arm} aarch64 ppc
-DWITH_SIMD=OFF \
@@ -229,10 +231,12 @@ rm -rf $RPM_BUILD_ROOT
%{_pkgconfigdir}/libturbojpeg.pc
%{_libdir}/cmake/libjpeg-turbo
+%if %{with static_libs}
%files static
%defattr(644,root,root,755)
%{_libdir}/libjpeg.a
%{_libdir}/libturbojpeg.a
+%endif
%files progs
%defattr(644,root,root,755)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libjpeg-turbo.git/commitdiff/3d316a75d986fdf1f45b66621ddb44d1d9028f75
More information about the pld-cvs-commit
mailing list