%define keepstatic 1 %define testsdir %{_libdir}/libunwind Name: libunwind Url: http://savannah.nongnu.org/projects/libunwind/ Summary: Unwind Library License: MIT Group: System/Libraries Version: 1.3.1 Release: 0 Source: libunwind-%{version}.tar.gz Source1001: libunwind.manifest ExclusiveArch: %ix86 x86_64 %arm aarch64 BuildRequires: gcc-c++ BuildRequires: libtool BuildRequires: pkg-config %description A portable and efficient C programming interface (API) to determine the call chain of a program. %package devel Summary: Unwind library Group: Development/Libraries Requires: libunwind = %{version}-%{release} %description devel A portable and efficient C programming interface (API) to determine the call-chain of a program. %package tests Summary: Package with binaries and data for libunwind tests %description tests This package contains installable tests in Bash. %prep %setup -q cp %{SOURCE1001} . %build %if "%{asan}" == "1" %restore_fcommon %endif autoreconf -fi %configure make %{?_smp_mflags} make -C tests test-ptrace %install %make_install mkdir -p %{buildroot}%{testsdir} install -m 750 tests/.libs/test-ptrace %{buildroot}%{testsdir} install -m 750 tests/test-ptrace-misc %{buildroot}%{testsdir} install -m 750 tests/run-ptrace-misc %{buildroot}%{testsdir} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %manifest %{name}.manifest %license COPYING %defattr(-, root, root) %{_libdir}/libunwind.so.* %{_libdir}/libunwind-*.so.* %files devel %manifest %{name}.manifest %defattr(-, root, root) %{_prefix}/include/* %{_libdir}/libunwind*a %{_libdir}/libunwind*so %{_libdir}/pkgconfig/libunwind-generic.pc %{_libdir}/pkgconfig/libunwind-ptrace.pc %{_libdir}/pkgconfig/libunwind-setjmp.pc %{_libdir}/pkgconfig/libunwind.pc %{_libdir}/pkgconfig/libunwind-coredump.pc %changelog %files tests %{testsdir}/*