]> git.pld-linux.org Git - packages/libunwind.git/commitdiff
add static_libs bcond master auto/th/libunwind-1.6.2-2
authorJan Palus <atler@pld-linux.org>
Wed, 10 Apr 2024 20:30:41 +0000 (22:30 +0200)
committerJan Palus <atler@pld-linux.org>
Wed, 10 Apr 2024 20:30:41 +0000 (22:30 +0200)
libunwind.spec

index f64997a050e150d117df978b8598839cb4c038f0..4e297a023d47659da729d661db8a27d87f21e1ab 100644 (file)
@@ -1,7 +1,8 @@
 #
 # Conditional build:
-%bcond_with    tests   # perform "make check" (fails randomly)
-%bcond_without doc     # man pages
+%bcond_with    tests           # perform "make check" (fails randomly)
+%bcond_without doc             # man pages
+%bcond_without static_libs     # static libraries
 #
 Summary:       libunwind - a (mostly) platform-independent unwind API
 Summary(pl.UTF-8):     libunwind - (prawie) niezależne od platformy API do rozwijania
@@ -22,7 +23,7 @@ BuildRequires:        binutils >= 2:2.15.94.0.2.2
 %endif
 %{?with_doc:BuildRequires:     latex2man}
 BuildRequires: libtool >= 2:2.0
-BuildRequires: rpmbuild(macros) >= 1.213
+BuildRequires: rpmbuild(macros) >= 1.527
 BuildRequires: xz-devel
 ExclusiveArch: %{ix86} %{x8664} x32 %{arm} aarch64 hppa ia64 mips ppc ppc64 sh tilegx
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -93,7 +94,8 @@ Statyczna biblioteka libunwind.
 # what needs additional -fPIC? libtool already uses it for shared objects
 %configure \
        CFLAGS="%{rpmcflags} -fPIC" \
-       %{!?with_doc:--disable-documentation}
+       %{!?with_doc:--disable-documentation} \
+       %{__enable_disable static_libs static}
 %{__make}
 
 %{?with_tests:%{__make} check}
@@ -150,6 +152,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man3/unw_*.3*
 %endif
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libunwind.a
@@ -158,3 +161,4 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/libunwind-ptrace.a
 %{_libdir}/libunwind-setjmp.a
 %{_libdir}/libunwind-%{asuf}.a
+%endif
This page took 0.102145 seconds and 4 git commands to generate.