[packages/libntlm] add static_libs bcond
atler
atler at pld-linux.org
Tue Jan 9 22:07:50 CET 2024
commit 492060faef5728bd35fb530c64587a299d9dfef0
Author: Jan Palus <atler at pld-linux.org>
Date: Tue Jan 9 21:59:40 2024 +0100
add static_libs bcond
libntlm.spec | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/libntlm.spec b/libntlm.spec
index 74848e5..5209ced 100644
--- a/libntlm.spec
+++ b/libntlm.spec
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without static_libs # static library
+
Summary: Library for NTLM authentication
Summary(pl.UTF-8): Biblioteka do uwierzytelniania NTLM
Name: libntlm
@@ -8,6 +12,7 @@ Group: Libraries
Source0: https://download.savannah.nongnu.org/releases/libntlm/%{name}-%{version}.tar.gz
# Source0-md5: ecb7ffe83a97588e444eafa0d85c3c01
URL: https://gitlab.com/gsasl/libntlm/
+BuildRequires: rpmbuild(macros) >= 1.527
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -55,7 +60,9 @@ Statyczna biblioteka Libntlm.
%setup -q
%build
-%configure
+%configure \
+ %{__enable_disable static_libs static}
+
%{__make}
%install
@@ -85,6 +92,8 @@ rm -rf $RPM_BUILD_ROOT
%{_includedir}/ntlm.h
%{_pkgconfigdir}/libntlm.pc
+%if %{with static_libs}
%files static
%defattr(644,root,root,755)
%{_libdir}/libntlm.a
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libntlm.git/commitdiff/492060faef5728bd35fb530c64587a299d9dfef0
More information about the pld-cvs-commit
mailing list