[packages/libmpc] add static_libs bcond
atler
atler at pld-linux.org
Mon May 25 14:01:13 CEST 2026
commit cf8b6248098e0f529b9548630b911f606c76e69b
Author: Jan Palus <atler at pld-linux.org>
Date: Mon May 25 14:00:53 2026 +0200
add static_libs bcond
libmpc.spec | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/libmpc.spec b/libmpc.spec
index 47d0b9a..9d060dd 100644
--- a/libmpc.spec
+++ b/libmpc.spec
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without static_libs # static library
+
Summary: Complex floating-point library with high precision and exact rounding
Summary(pl.UTF-8): Biblioteka do obliczeń na liczbach zespolonych z wielokrotną precyzją i poprawnym zaokrąglaniem
Name: libmpc
@@ -12,6 +16,7 @@ Patch0: %{name}-info.patch
URL: https://www.multiprecision.org/mpc/
BuildRequires: gmp-devel >= 5.0.0
BuildRequires: mpfr-devel >= 4.1.0
+BuildRequires: rpmbuild(macros) >= 1.527
BuildRequires: tar >= 1:1.22
BuildRequires: texinfo
BuildRequires: xz
@@ -60,7 +65,8 @@ Statyczna biblioteka MPC.
%patch -P0 -p1
%build
-%configure
+%configure \
+ %{__enable_disable static_libs static}
%{__make}
%install
@@ -97,6 +103,8 @@ rm -rf $RPM_BUILD_ROOT
%{_pkgconfigdir}/mpc.pc
%{_infodir}/mpc.info*
+%if %{with static_libs}
%files static
%defattr(644,root,root,755)
%{_libdir}/libmpc.a
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libmpc.git/commitdiff/cf8b6248098e0f529b9548630b911f606c76e69b
More information about the pld-cvs-commit
mailing list