2006-12-19 00:16:58 +01:00
|
|
|
#
|
2011-11-08 09:24:40 +01:00
|
|
|
# spec file for package libunwind
|
2006-12-19 00:16:58 +01:00
|
|
|
#
|
2016-04-24 21:34:44 +02:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2006-12-19 00:16:58 +01:00
|
|
|
#
|
2009-01-27 02:19:00 +01: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 13:15:07 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2006-12-19 00:16:58 +01:00
|
|
|
#
|
|
|
|
|
2012-03-05 22:38:02 +01:00
|
|
|
|
2016-05-17 13:12:18 +02:00
|
|
|
%define realver 1.2-rc1
|
2007-06-07 13:15:07 +02:00
|
|
|
Name: libunwind
|
2016-05-17 13:12:18 +02:00
|
|
|
Version: 1.2~rc1
|
2014-05-19 14:32:34 +02:00
|
|
|
Release: 0
|
2007-06-07 13:15:07 +02:00
|
|
|
Summary: Unwind Library
|
2010-01-28 17:32:04 +01:00
|
|
|
License: MIT
|
2012-03-05 22:38:02 +01:00
|
|
|
Group: System/Base
|
2014-05-19 14:32:34 +02:00
|
|
|
Url: http://savannah.nongnu.org/projects/libunwind/
|
2016-05-17 13:12:18 +02:00
|
|
|
Source0: http://download.savannah.gnu.org/releases/libunwind/libunwind-%{realver}.tar.gz
|
|
|
|
Source1: http://download.savannah.gnu.org/releases/libunwind/libunwind-%{realver}.tar.gz.sig
|
2015-03-04 19:23:33 +01:00
|
|
|
Source2: %{name}.keyring
|
2015-03-29 22:12:49 +02:00
|
|
|
Source3: baselibs.conf
|
2014-05-19 14:32:34 +02:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libatomic_ops-devel
|
|
|
|
BuildRequires: pkg-config
|
2007-06-07 13:15:07 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2015-03-04 19:23:33 +01:00
|
|
|
ExclusiveArch: %ix86 ia64 x86_64 %arm ppc ppc64 ppc64le aarch64
|
2006-12-19 00:16:58 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
A portable and efficient C programming interface (API) to determine the
|
|
|
|
call chain of a program.
|
|
|
|
|
|
|
|
%package devel
|
2007-06-07 13:15:07 +02:00
|
|
|
Summary: Unwind library
|
2008-04-20 15:13:41 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2016-05-17 13:12:18 +02:00
|
|
|
Requires: %{libname} = %{version}
|
2006-12-19 00:16:58 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
A portable and efficient C programming interface (API) to determine the
|
|
|
|
call-chain of a program.
|
|
|
|
|
|
|
|
%prep
|
2016-05-17 13:12:18 +02:00
|
|
|
%setup -q -n %{name}-%{realver}
|
2006-12-19 00:16:58 +01:00
|
|
|
|
|
|
|
%build
|
2012-02-17 12:01:39 +01:00
|
|
|
%configure
|
2010-11-02 13:36:23 +01:00
|
|
|
make %{?_smp_mflags}
|
2011-11-24 12:36:06 +01:00
|
|
|
|
|
|
|
%check
|
|
|
|
%if ! 0%{?qemu_user_space_build:1}
|
2016-05-17 13:12:18 +02:00
|
|
|
# run-coredump-unwind fails
|
2014-05-19 14:32:34 +02:00
|
|
|
make check %{?_smp_mflags} || :
|
2011-11-24 12:36:06 +01:00
|
|
|
%endif
|
2006-12-19 00:16:58 +01:00
|
|
|
|
|
|
|
%install
|
2016-05-17 13:12:18 +02:00
|
|
|
make %{?_smp_mflags} DESTDIR=%{buildroot} install
|
2014-05-19 14:32:34 +02:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2006-12-19 00:16:58 +01:00
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_libdir}/lib*.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-, root, root)
|
2014-05-19 14:32:34 +02:00
|
|
|
%{_includedir}/*
|
2016-05-17 13:12:18 +02:00
|
|
|
%{_libdir}/libunwind*.a
|
|
|
|
%{_libdir}/libunwind*.so
|
|
|
|
%{_libdir}/pkgconfig/libunwind*.pc
|
2006-12-19 00:16:58 +01:00
|
|
|
|
2007-06-07 13:15:07 +02:00
|
|
|
%changelog
|