]> git.pld-linux.org Git - packages/curl.git/commitdiff
add static_libs bcond auto/th/curl-8.5.0-1
authorJan Palus <atler@pld-linux.org>
Wed, 6 Dec 2023 10:48:07 +0000 (11:48 +0100)
committerJan Palus <atler@pld-linux.org>
Wed, 6 Dec 2023 10:48:07 +0000 (11:48 +0100)
curl.spec

index d13e9b6268a10746b7bce7637bc03437fc2bc1a7..d392c377daa7425b58397de0cea7d19147d05711 100644 (file)
--- a/curl.spec
+++ b/curl.spec
@@ -1,6 +1,7 @@
 # TODO: ngtpc2/nghttp3 or quiche or msh3 for HTTP3?
 #
 # Conditional build:
+%bcond_without static_libs     # static library
 %bcond_without ssh             # SSH support
 %bcond_without ssl             # SSL support
 %bcond_with    gnutls          # GnuTLS instead of OpenSSL
@@ -254,6 +255,7 @@ Dopełnianianie parametrów w ZSH dla polecenia curl.
 %{__automake}
 %configure \
        ac_cv_header_gss_h=no \
+       %{__enable_disable static_libs static} \
        %{__enable_disable ares} \
        %{__with_without gsasl libgsasl} \
        --enable-headers-api \
@@ -331,9 +333,11 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man3/CURLMOPT_*.3*
 %{_mandir}/man3/CURLSHOPT_*.3*
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libcurl.a
+%endif
 
 %files -n fish-completion-%{name}
 %defattr(644,root,root,755)
This page took 0.169206 seconds and 4 git commands to generate.