[packages/libraw] add static_libs bcond

atler atler at pld-linux.org
Tue Jan 13 19:53:21 CET 2026


commit 9430d473a69cf563a2c21b351741add862b62ee8
Author: Jan Palus <atler at pld-linux.org>
Date:   Tue Jan 13 19:52:27 2026 +0100

    add static_libs bcond

 libraw.spec | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/libraw.spec b/libraw.spec
index 2d9e1ec..d458b76 100644
--- a/libraw.spec
+++ b/libraw.spec
@@ -1,7 +1,8 @@
 #
 # Conditional build:
-%bcond_without	openmp	# OpenMP support
-%bcond_without	zlib	# ZLIB for deflated DNG format support
+%bcond_without	openmp		# OpenMP support
+%bcond_without	zlib		# ZLIB for deflated DNG format support
+%bcond_without	static_libs	# static libraries
 #
 Summary:	LibRaw - a library for reading RAW files
 Summary(pl.UTF-8):	LibRaw - biblioteka do odczytu plików RAW
@@ -24,6 +25,7 @@ BuildRequires:	libjpeg-devel >= 8
 BuildRequires:	libstdc++-devel
 BuildRequires:	libtool
 BuildRequires:	pkgconfig
+BuildRequires:	rpmbuild(macros) >= 1.527
 # zlib with pkgconfig support
 %{?with_zlib:BuildRequires:	zlib-devel >= 1.2.3.3}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -94,6 +96,7 @@ Statyczna biblioteka LibRaw.
 %{__autoconf}
 %{__automake}
 %configure \
+	%{__enable_disable static_libs static} \
 	%{!?with_openmp:--disable-openmp} \
 	%{?with_zlib:--enable-zlib}
 
@@ -148,7 +151,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_pkgconfigdir}/libraw.pc
 %{_pkgconfigdir}/libraw_r.pc
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libraw.a
 %{_libdir}/libraw_r.a
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libraw.git/commitdiff/9430d473a69cf563a2c21b351741add862b62ee8



More information about the pld-cvs-commit mailing list