2 %define testsdir %{_libdir}/libunwind
5 Url: http://savannah.nongnu.org/projects/libunwind/
6 Summary: Unwind Library
8 Group: System/Libraries
11 Source: libunwind-%{version}.tar.gz
12 Source1001: libunwind.manifest
13 ExclusiveArch: %ix86 x86_64 %arm aarch64
15 BuildRequires: gcc-c++
16 BuildRequires: libtool
17 BuildRequires: pkg-config
20 A portable and efficient C programming interface (API) to determine the
21 call chain of a program.
24 Summary: Unwind library
25 Group: Development/Libraries
26 Requires: libunwind = %{version}-%{release}
29 A portable and efficient C programming interface (API) to determine the
30 call-chain of a program.
33 Summary: Package with binaries and data for libunwind tests
36 This package contains installable tests in Bash.
46 %if "%{hwasan}" == "1"
52 make -C tests test-ptrace
57 mkdir -p %{buildroot}%{testsdir}
58 install -m 750 tests/.libs/test-ptrace %{buildroot}%{testsdir}
59 install -m 750 tests/test-ptrace-misc %{buildroot}%{testsdir}
60 install -m 750 tests/run-ptrace-misc %{buildroot}%{testsdir}
62 %post -p /sbin/ldconfig
64 %postun -p /sbin/ldconfig
67 %manifest %{name}.manifest
69 %defattr(-, root, root)
70 %{_libdir}/libunwind.so.*
71 %{_libdir}/libunwind-*.so.*
74 %manifest %{name}.manifest
75 %defattr(-, root, root)
77 %{_libdir}/libunwind*a
78 %{_libdir}/libunwind*so
79 %{_libdir}/pkgconfig/libunwind-generic.pc
80 %{_libdir}/pkgconfig/libunwind-ptrace.pc
81 %{_libdir}/pkgconfig/libunwind-setjmp.pc
82 %{_libdir}/pkgconfig/libunwind.pc
83 %{_libdir}/pkgconfig/libunwind-coredump.pc