2006-12-18 23:16:58 +00:00
|
|
|
#
|
2011-11-08 08:24:40 +00:00
|
|
|
# spec file for package libunwind
|
2006-12-18 23:16:58 +00:00
|
|
|
#
|
2023-06-29 13:09:07 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2006-12-18 23:16:58 +00:00
|
|
|
#
|
2009-01-27 01:19:00 +00:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-07-01 09:35:13 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2006-12-18 23:16:58 +00:00
|
|
|
#
|
|
|
|
|
2012-03-05 21:38:02 +00:00
|
|
|
|
2023-06-29 13:09:07 +00:00
|
|
|
# Note the wrong version number from upstream
|
|
|
|
%global _bversion 1.70
|
2007-06-07 11:15:07 +00:00
|
|
|
Name: libunwind
|
2023-06-29 13:09:07 +00:00
|
|
|
Version: 1.7.0
|
2014-05-19 12:32:34 +00:00
|
|
|
Release: 0
|
2019-07-08 08:04:21 +00:00
|
|
|
Summary: Call chain detection library
|
2010-01-28 16:32:04 +00:00
|
|
|
License: MIT
|
2012-03-05 21:38:02 +00:00
|
|
|
Group: System/Base
|
2020-02-19 09:44:15 +00:00
|
|
|
URL: https://savannah.nongnu.org/projects/libunwind/
|
2023-06-29 13:09:07 +00:00
|
|
|
Source0: https://github.com/libunwind/libunwind/releases/download/v1.7.0/libunwind-%{_bversion}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
|
Source1: https://github.com/libunwind/libunwind/releases/download/v1.7.0/libunwind-%{_bversion}.tar.gz.sig#/%{name}-%{version}.tar.gz.sig
|
2015-03-04 18:23:33 +00:00
|
|
|
Source2: %{name}.keyring
|
2015-03-29 20:12:49 +00:00
|
|
|
Source3: baselibs.conf
|
2023-06-29 13:09:07 +00:00
|
|
|
BuildRequires: automake >= 1.14
|
2014-05-19 12:32:34 +00:00
|
|
|
BuildRequires: gcc-c++
|
2023-06-29 13:09:07 +00:00
|
|
|
BuildRequires: libtool
|
2016-06-20 09:12:48 +00:00
|
|
|
BuildRequires: lzma-devel
|
|
|
|
BuildRequires: pkgconfig
|
2023-06-29 13:09:07 +00:00
|
|
|
BuildRequires: texlive-latex2man
|
2022-05-06 11:18:06 +00:00
|
|
|
ExcludeArch: s390
|
2006-12-18 23:16:58 +00:00
|
|
|
|
|
|
|
%description
|
2019-07-08 08:04:21 +00:00
|
|
|
A C programming interface (API) to determine the call chain of a program.
|
2006-12-18 23:16:58 +00:00
|
|
|
|
2022-05-16 08:33:16 +00:00
|
|
|
%package -n libunwind8
|
|
|
|
Summary: Call chain detection library for process self-inspection
|
|
|
|
Group: System/Libraries
|
2022-05-16 14:28:12 +00:00
|
|
|
Conflicts: libunwind < %{version}-%{release}
|
2022-05-16 08:33:16 +00:00
|
|
|
|
|
|
|
%description -n libunwind8
|
|
|
|
A C programming interface (API) to determine the call chain of a
|
|
|
|
program from within the same process.
|
|
|
|
|
|
|
|
%package -n libunwind-coredump0
|
|
|
|
Summary: Call chain detection library for coredump images
|
|
|
|
Group: System/Libraries
|
2022-05-16 14:28:12 +00:00
|
|
|
Conflicts: libunwind < %{version}-%{release}
|
2022-05-16 08:33:16 +00:00
|
|
|
|
|
|
|
%description -n libunwind-coredump0
|
|
|
|
A C programming interface (API) to determine the call chains
|
|
|
|
of the threads in coredump images.
|
|
|
|
|
|
|
|
%package -n libunwind-ptrace0
|
|
|
|
Summary: Call chain detection library for ptraced processes
|
|
|
|
Group: System/Libraries
|
2022-05-16 14:28:12 +00:00
|
|
|
Conflicts: libunwind < %{version}-%{release}
|
2022-05-16 08:33:16 +00:00
|
|
|
|
|
|
|
%description -n libunwind-ptrace0
|
|
|
|
A C programming interface (API) to determine the call chains of
|
|
|
|
another process by means of using ptrace(2) on it.
|
|
|
|
|
|
|
|
%package -n libunwind-setjmp0
|
|
|
|
Summary: Non-local goto (setjmp/longmap) implementation based on libunwind
|
|
|
|
Group: System/Libraries
|
2022-05-16 14:28:12 +00:00
|
|
|
Conflicts: libunwind < %{version}-%{release}
|
2022-05-16 08:33:16 +00:00
|
|
|
|
|
|
|
%description -n libunwind-setjmp0
|
|
|
|
The unwind-setjmp library offers a libunwind-based implementation of
|
|
|
|
non-local gotos. This is a drop-in replacement for the normal,
|
|
|
|
system-provided routines of the same name. With this library, setting
|
|
|
|
up a non-local goto via setjmp is generally faster compared to the
|
|
|
|
system routines, at the cost of a much slower longjmp.
|
|
|
|
|
2006-12-18 23:16:58 +00:00
|
|
|
%package devel
|
2019-07-08 08:04:21 +00:00
|
|
|
Summary: Headers for the Unwind library
|
2008-04-20 13:13:41 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2022-05-23 13:56:17 +00:00
|
|
|
%ifnarch ppc ppc64 ppc64le s390x
|
2022-05-16 08:33:16 +00:00
|
|
|
Requires: libunwind-coredump0 = %{version}-%{release}
|
2022-05-23 13:56:17 +00:00
|
|
|
%endif
|
2022-05-16 08:33:16 +00:00
|
|
|
Requires: libunwind-ptrace0 = %{version}-%{release}
|
|
|
|
Requires: libunwind-setjmp0 = %{version}-%{release}
|
|
|
|
Requires: libunwind8 = %{version}-%{release}
|
2006-12-18 23:16:58 +00:00
|
|
|
|
|
|
|
%description devel
|
2022-05-16 08:33:16 +00:00
|
|
|
A set of C programming interfaces to determine the call chain within a running
|
|
|
|
program (libunwind), of a coredump image (libunwind-coredump), or of a separate
|
|
|
|
process (libunwind-ptrace).
|
2006-12-18 23:16:58 +00:00
|
|
|
|
|
|
|
%prep
|
2023-06-29 13:09:07 +00:00
|
|
|
%autosetup -p1 -n %{name}-%{_bversion}
|
2006-12-18 23:16:58 +00:00
|
|
|
|
|
|
|
%build
|
2023-06-29 13:09:07 +00:00
|
|
|
autoreconf -fiv
|
2016-06-20 09:12:48 +00:00
|
|
|
%configure \
|
|
|
|
--enable-minidebuginfo
|
2021-01-20 09:16:51 +00:00
|
|
|
%make_build
|
2011-11-24 11:36:06 +00:00
|
|
|
|
|
|
|
%check
|
2016-05-17 11:12:18 +00:00
|
|
|
# run-coredump-unwind fails
|
2021-01-20 09:16:51 +00:00
|
|
|
%make_build check || :
|
2006-12-18 23:16:58 +00:00
|
|
|
|
|
|
|
%install
|
2018-02-02 11:11:16 +00:00
|
|
|
%make_install
|
|
|
|
find %{buildroot} -iregex '.*\.l?a$' -delete -print
|
2023-06-29 13:09:07 +00:00
|
|
|
# Help packagers with %%files
|
2022-05-16 08:33:16 +00:00
|
|
|
find %{buildroot}/%{_libdir} -type f | sort
|
|
|
|
|
|
|
|
%post -n libunwind8 -p /sbin/ldconfig
|
|
|
|
%postun -n libunwind8 -p /sbin/ldconfig
|
|
|
|
%post -n libunwind-coredump0 -p /sbin/ldconfig
|
|
|
|
%postun -n libunwind-coredump0 -p /sbin/ldconfig
|
|
|
|
%post -n libunwind-ptrace0 -p /sbin/ldconfig
|
|
|
|
%postun -n libunwind-ptrace0 -p /sbin/ldconfig
|
|
|
|
%post -n libunwind-setjmp0 -p /sbin/ldconfig
|
|
|
|
%postun -n libunwind-setjmp0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n libunwind8
|
2023-06-29 13:09:07 +00:00
|
|
|
%license COPYING
|
|
|
|
%doc README NEWS
|
2022-05-16 08:33:16 +00:00
|
|
|
%{_libdir}/libunwind.so.8*
|
|
|
|
%ifarch %arm
|
|
|
|
%{_libdir}/libunwind-arm.so.8*
|
|
|
|
%else
|
|
|
|
%ifarch riscv32 riscv64
|
|
|
|
%{_libdir}/libunwind-riscv.so.8*
|
|
|
|
%else
|
|
|
|
%ifarch %ix86
|
|
|
|
%{_libdir}/libunwind-x86.so.8*
|
|
|
|
%else
|
2022-05-23 13:56:17 +00:00
|
|
|
%ifarch ppc
|
|
|
|
%{_libdir}/libunwind-ppc32.so.8*
|
|
|
|
%else
|
|
|
|
%ifarch ppc64 ppc64le
|
2022-05-16 08:33:16 +00:00
|
|
|
%{_libdir}/libunwind-ppc64.so.8*
|
|
|
|
%else
|
|
|
|
%{_libdir}/libunwind-%{_target_cpu}.so.8*
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%endif
|
2022-05-23 13:56:17 +00:00
|
|
|
%endif
|
2022-05-16 08:33:16 +00:00
|
|
|
|
2022-05-23 13:56:17 +00:00
|
|
|
%ifnarch ppc ppc64 ppc64le s390x
|
2022-05-16 08:33:16 +00:00
|
|
|
%files -n libunwind-coredump0
|
|
|
|
%{_libdir}/libunwind-coredump.so.0*
|
|
|
|
%endif
|
2006-12-18 23:16:58 +00:00
|
|
|
|
2022-05-16 08:33:16 +00:00
|
|
|
%files -n libunwind-setjmp0
|
|
|
|
%{_libdir}/libunwind-setjmp.so.0*
|
2006-12-18 23:16:58 +00:00
|
|
|
|
2022-05-16 08:33:16 +00:00
|
|
|
%files -n libunwind-ptrace0
|
|
|
|
%{_libdir}/libunwind-ptrace.so.0*
|
2006-12-18 23:16:58 +00:00
|
|
|
|
|
|
|
%files devel
|
2014-05-19 12:32:34 +00:00
|
|
|
%{_includedir}/*
|
2018-02-02 11:11:16 +00:00
|
|
|
%{_libdir}/%{name}*.so
|
|
|
|
%{_libdir}/pkgconfig/%{name}*.pc
|
2023-06-29 13:09:07 +00:00
|
|
|
%{_mandir}/man3/*
|
2006-12-18 23:16:58 +00:00
|
|
|
|
2007-06-07 11:15:07 +00:00
|
|
|
%changelog
|