6 BuildRequires: pkg-config
7 Url: http://savannah.nongnu.org/projects/libunwind/
8 Summary: Unwind Library
10 Group: System/Libraries
13 VCS: profile/base/libunwind#upstream/1.1-0-g0349587-dirty
14 Source: libunwind-%{version}.tar.gz
15 Source1001: libunwind.manifest
16 ExclusiveArch: %ix86 x86_64 %arm aarch64
19 A portable and efficient C programming interface (API) to determine the
20 call chain of a program.
23 Summary: Unwind library
24 Group: Development/Libraries
25 Requires: libunwind = %{version}-%{release}
26 Provides: libunwind:%{_libdir}/libunwind.so
29 A portable and efficient C programming interface (API) to determine the
30 call-chain of a program.
38 export CFLAGS="%optflags -U_FORTIFY_SOURCE"
45 mkdir -p $RPM_BUILD_ROOT/%{_lib}
46 ln -sf /%{_libdir}/libunwind.so.8 $RPM_BUILD_ROOT%{_libdir}/libunwind.so
47 # Check that ln did not create a dangling link
48 stat %{buildroot}/$(readlink -f "%{buildroot}/%{_libdir}/libunwind.so");
50 %post -p /sbin/ldconfig
52 %postun -p /sbin/ldconfig
55 %manifest %{name}.manifest
57 %defattr(-, root, root)
60 %{_libdir}/libunwind.so
63 %manifest %{name}.manifest
64 %defattr(-, root, root)
67 %{_libdir}/libunwind-*.so
68 %{_libdir}/pkgconfig/libunwind-generic.pc
69 %{_libdir}/pkgconfig/libunwind-ptrace.pc
70 %{_libdir}/pkgconfig/libunwind-setjmp.pc
71 %{_libdir}/pkgconfig/libunwind.pc
72 %ifarch %arm %ix86 x86_64 aarch64
73 %{_libdir}/pkgconfig/libunwind-coredump.pc
75 %doc %{_mandir}/man?/*