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
|
|
|
#
|
2011-11-08 09:24:40 +01:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products 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
|
|
|
#
|
|
|
|
|
2007-06-07 13:15:07 +02:00
|
|
|
Name: libunwind
|
2011-11-24 12:36:06 +01:00
|
|
|
BuildRequires: gcc-c++ libtool
|
2008-04-20 15:13:41 +02:00
|
|
|
Url: http://savannah.nongnu.org/projects/libunwind/
|
2007-06-07 13:15:07 +02:00
|
|
|
Summary: Unwind Library
|
2011-11-08 09:24:40 +01:00
|
|
|
Version: 1.0.1
|
2010-11-02 13:36:30 +01:00
|
|
|
Release: 34
|
2007-06-07 13:15:07 +02:00
|
|
|
Group: System/Base
|
2010-01-28 17:32:04 +01:00
|
|
|
License: MIT
|
2007-06-07 13:15:07 +02:00
|
|
|
Source: libunwind-%{version}.tar.gz
|
2011-11-08 09:24:40 +01:00
|
|
|
Patch0: libunwind-1.0.1-ia64.diff
|
|
|
|
Patch1: libunwind-1.0.1-memset.diff
|
|
|
|
Patch2: libunwind-1.0.1-tests.diff
|
2007-06-07 13:15:07 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-03-05 22:36:58 +01:00
|
|
|
ExclusiveArch: %ix86 ia64 x86_64 %arm
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
2007-06-07 13:15:07 +02:00
|
|
|
David Mosberger <David.Mosberger@acm.org>
|
2006-12-19 00:16:58 +01:00
|
|
|
|
|
|
|
%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++
|
2007-06-07 13:15:07 +02:00
|
|
|
Requires: libunwind = %{version}-%{release}
|
|
|
|
Provides: libunwind:%{_libdir}/libunwind.so
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
David Mosberger <davidm@hpl.hp.com>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2011-11-08 09:24:40 +01:00
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
|
|
|
%patch2
|
|
|
|
# %patch
|
2006-12-19 00:16:58 +01:00
|
|
|
|
|
|
|
%build
|
2009-01-27 02:19:00 +01:00
|
|
|
autoreconf -fi
|
2012-02-17 12:01:39 +01:00
|
|
|
export CFLAGS="%optflags -U_FORTIFY_SOURCE"
|
|
|
|
%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}
|
2006-12-19 00:16:58 +01:00
|
|
|
# There are some expected failures
|
|
|
|
make -k check || :
|
2011-11-24 12:36:06 +01:00
|
|
|
%endif
|
2006-12-19 00:16:58 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
2012-02-17 12:01:39 +01:00
|
|
|
rm -f "%buildroot/%_libdir"/*.la
|
2006-12-19 00:16:58 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_lib}
|
2011-11-08 09:24:40 +01:00
|
|
|
mv $RPM_BUILD_ROOT%{_libdir}/libunwind.so.8* $RPM_BUILD_ROOT/%{_lib}
|
2012-02-17 12:01:39 +01:00
|
|
|
ln -sf /%{_lib}/libunwind.so.8 $RPM_BUILD_ROOT%{_libdir}/libunwind.so
|
|
|
|
# Check that ln did not create a dangling link
|
|
|
|
stat "%buildroot"/$(readlink -f "%buildroot/%_libdir/libunwind.so");
|
2006-12-19 00:16:58 +01:00
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
|
|
|
/%_lib/lib*
|
|
|
|
%{_libdir}/lib*.so.*
|
|
|
|
%{_libdir}/libunwind.so
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_prefix}/include/*
|
|
|
|
%{_libdir}/lib*.a
|
|
|
|
%{_libdir}/libunwind-*.so
|
|
|
|
%doc %{_mandir}/man?/*
|
|
|
|
|
2007-06-07 13:15:07 +02:00
|
|
|
%changelog
|