commit 2c025a854384e2080f24b50f18fef020b3d6346d
Author: Jan Palus <[email protected]>
Date:   Mon Jan 15 11:16:00 2024 +0100

    add static_libs bcond

 libidn.spec | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/libidn.spec b/libidn.spec
index 0427f61..11a56c4 100644
--- a/libidn.spec
+++ b/libidn.spec
@@ -3,13 +3,14 @@
 #
 # Conditional build:
 %if "%{pld_release}" == "ac"
-%bcond_with    dotnet  # don't build C# binding
-%bcond_with    java    # don't build Java implementation
+%bcond_with    dotnet          # don't build C# binding
+%bcond_with    java            # don't build Java implementation
 %else
-%bcond_without dotnet  # don't build C# binding
-%bcond_without java    # don't build Java implementation
+%bcond_without dotnet          # don't build C# binding
+%bcond_without java            # don't build Java implementation
 %endif
-%bcond_without python  # don't build python interface
+%bcond_without python          # don't build python interface
+%bcond_without static_libs     # static library
 #
 %ifnarch %{ix86} %{x8664} alpha %{arm} hppa ppc s390 s390x sparc sparcv9 
sparc64
 %undefine      with_dotnet
@@ -43,7 +44,7 @@ BuildRequires:        pkgconfig
 %{?with_python:BuildRequires:  python-devel >= 1:2.3}
 BuildRequires: rpm >= 4.4.9-56
 %{?with_python:BuildRequires:  rpm-pythonprov}
-BuildRequires: rpmbuild(macros) >= 1.384
+BuildRequires: rpmbuild(macros) >= 1.527
 BuildRequires: texinfo >= 4.7
 Requires(post,postun): /sbin/ldconfig
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -169,6 +170,7 @@ d=${d#?Date: }; d=${d%%%% *}; d=$(date -d "$d" '+%d %B %Y')
 %{__automake}
 %configure \
        --disable-silent-rules \
+       %{__enable_disable static_libs static} \
        %{?with_dotnet:--enable-csharp=mono}%{!?with_dotnet:--disable-csharp} \
        %{?with_java:--enable-java} \
        --with-lispdir=%{_emacs_lispdir}
@@ -234,9 +236,11 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man3/stringprep*.3*
 %{_mandir}/man3/tld_*.3*
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libidn.a
+%endif
 
 %if %{with dotnet}
 %files -n dotnet-libidn
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libidn.git/commitdiff/d6d2da3de678ac1e4a000f5128e37fb262af2950

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to