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
#
2018-02-02 11:11:16 +00:00
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
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.
2007-06-07 11:15:07 +00:00
# Please submit bugfixes or comments via http://bugs.opensuse.org/
2006-12-18 23:16:58 +00:00
#
2012-03-05 21:38:02 +00:00
2018-02-02 11:11:16 +00:00
%define realver 1.2.1
2007-06-07 11:15:07 +00:00
Name : libunwind
2018-02-02 11:11:16 +00:00
Version : 1.2.1
2014-05-19 12:32:34 +00:00
Release : 0
2007-06-07 11:15:07 +00:00
Summary : Unwind Library
2010-01-28 16:32:04 +00:00
License : MIT
2012-03-05 21:38:02 +00:00
Group : System/Base
2014-05-19 12:32:34 +00:00
Url : http://savannah.nongnu.org/projects/libunwind/
2018-02-02 11:11:16 +00:00
Source0 : http://download.savannah.gnu.org/releases/%{name} /%{name} -%{realver} .tar.gz
Source1 : http://download.savannah.gnu.org/releases/%{name} /%{name} -%{realver} .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
2018-02-19 08:07:04 +00:00
# PATCH-FIX-UPSTREAM fix_versioning_libunwind_1.2.1.patch gh#libunwind/libunwind#30 ronisbr@gmail.com -- libunwind 1.2.1 UNW_VERSION_MINOR is not an integer.
Patch0 : fix_versioning_libunwind_1.2.1.patch
2014-05-19 12:32:34 +00:00
BuildRequires : gcc-c++
2016-06-20 09:12:48 +00:00
BuildRequires : lzma-devel
BuildRequires : pkgconfig
BuildRequires : pkgconfig(atomic_ops)
ExclusiveArch : %{ix86} ia64 x86_64 %{arm} ppc ppc64 ppc64le aarch64
2006-12-18 23:16:58 +00:00
%description
A portable and efficient C programming interface (API) to determine the
call chain of a program.
%package devel
2007-06-07 11:15:07 +00:00
Summary : Unwind library
2008-04-20 13:13:41 +00:00
Group : Development/Libraries/C and C++
2016-05-17 12:34:27 +00:00
Requires : %{name} = %{version}
2006-12-18 23:16:58 +00:00
%description devel
A portable and efficient C programming interface (API) to determine the
call-chain of a program.
%prep
2016-05-17 11:12:18 +00:00
%setup -q -n %{name} -%{realver}
2018-02-19 08:07:04 +00:00
%patch0 -p1
2006-12-18 23:16:58 +00:00
%build
2016-06-20 09:12:48 +00:00
%configure \
--enable-minidebuginfo
2010-11-02 12:36:23 +00:00
make %{?_smp_mflags}
2011-11-24 11:36:06 +00:00
%check
%if ! 0%{?qemu_user_space_build:1}
2016-05-17 11:12:18 +00:00
# run-coredump-unwind fails
2014-05-19 12:32:34 +00:00
make check %{?_smp_mflags} || :
2011-11-24 11:36:06 +00:00
%endif
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
2006-12-18 23:16:58 +00:00
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%{_libdir} /lib*.so.*
%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
2006-12-18 23:16:58 +00:00
2007-06-07 11:15:07 +00:00
%changelog