2 %define testsdir %{_libdir}/libunwind
7 BuildRequires: pkg-config
8 Url: http://savannah.nongnu.org/projects/libunwind/
9 Summary: Unwind Library
11 Group: System/Libraries
14 VCS: profile/base/libunwind#upstream/1.1-0-g0349587-dirty
15 Source: libunwind-%{version}.tar.gz
16 Source1001: libunwind.manifest
17 ExclusiveArch: %ix86 x86_64 %arm aarch64
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}
27 Provides: libunwind:%{_libdir}/libunwind.so
30 A portable and efficient C programming interface (API) to determine the
31 call-chain of a program.
34 Summary: Package with binaries and data for libunwind tests
37 This package contains installable tests in Bash.
48 export CFLAGS="%optflags -U_FORTIFY_SOURCE"
51 make -C tests test-ptrace
56 mkdir -p $RPM_BUILD_ROOT/%{_lib}
57 ln -sf /%{_libdir}/libunwind.so.8 $RPM_BUILD_ROOT%{_libdir}/libunwind.so
58 # Check that ln did not create a dangling link
59 stat %{buildroot}/$(readlink -f "%{buildroot}/%{_libdir}/libunwind.so");
61 mkdir -p %{buildroot}%{testsdir}
62 install -m 750 tests/.libs/test-ptrace %{buildroot}%{testsdir}
63 install -m 750 tests/test-ptrace-misc %{buildroot}%{testsdir}
64 install -m 750 tests/run-ptrace-misc %{buildroot}%{testsdir}
66 %post -p /sbin/ldconfig
68 %postun -p /sbin/ldconfig
71 %manifest %{name}.manifest
73 %defattr(-, root, root)
76 %{_libdir}/libunwind.so
79 %manifest %{name}.manifest
80 %defattr(-, root, root)
83 %{_libdir}/libunwind-*.so
84 %{_libdir}/pkgconfig/libunwind-generic.pc
85 %{_libdir}/pkgconfig/libunwind-ptrace.pc
86 %{_libdir}/pkgconfig/libunwind-setjmp.pc
87 %{_libdir}/pkgconfig/libunwind.pc
88 %ifarch %arm %ix86 x86_64 aarch64
89 %{_libdir}/pkgconfig/libunwind-coredump.pc
91 %doc %{_mandir}/man?/*