[packages/SDL2_image] add static_libs bcond
atler
atler at pld-linux.org
Wed Dec 6 12:34:49 CET 2023
commit a0a957da87af75291ca3d6d4d1b99d8c7a9aaf2b
Author: Jan Palus <atler at pld-linux.org>
Date: Wed Dec 6 11:34:14 2023 +0100
add static_libs bcond
SDL2_image.spec | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/SDL2_image.spec b/SDL2_image.spec
index 99862db..2a8acd2 100644
--- a/SDL2_image.spec
+++ b/SDL2_image.spec
@@ -2,6 +2,7 @@
# Conditional build:
%bcond_without avif # AV1 Image File Format support
%bcond_without jxl # JPEG XL support
+%bcond_without static_libs # static library
Summary: Simple DirectMedia Layer 2 - Sample Image Loading Library
Summary(pl.UTF-8): Przykładowa biblioteka do ładowania obrazków dla SDL2
@@ -104,6 +105,7 @@ Bibliotecas estáticas para desenvolvimento de aplicações SDL2.
%{__autoconf}
%{__automake}
%configure \
+ %{__enable_disable static_libs static} \
--disable-stb-image \
%{__enable_disable avif} \
--enable-avif-shared \
@@ -163,6 +165,8 @@ rm -rf $RPM_BUILD_ROOT
%{_includedir}/SDL2/SDL_image.h
%{_pkgconfigdir}/SDL2_image.pc
+%if %{with static_libs}
%files static
%defattr(644,root,root,755)
%{_libdir}/libSDL2_image.a
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/SDL2_image.git/commitdiff/c9d9b5f831eb35d9b1a1f8b04ecaf0ab67d4d7c9
More information about the pld-cvs-commit
mailing list