c0300daabb
Copy from Base:System/libunwind based on submit request 30687 from user rguenther OBS-URL: https://build.opensuse.org/request/show/30687 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libunwind?expand=0&rev=8
110 lines
2.7 KiB
RPMSpec
110 lines
2.7 KiB
RPMSpec
#
|
|
# spec file for package libunwind (Version 0.98.6)
|
|
#
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
|
|
Name: libunwind
|
|
BuildRequires: gcc-c++
|
|
Url: http://savannah.nongnu.org/projects/libunwind/
|
|
Summary: Unwind Library
|
|
Version: 0.98.6
|
|
Release: 27
|
|
Group: System/Base
|
|
License: MIT
|
|
Source: libunwind-%{version}.tar.gz
|
|
Patch: libunwind-%{version}.diff
|
|
# PATCH-FIX-OPENSUSE libunwind-0.98.6-pointer-comparison.patch bnc#531705
|
|
Patch1: libunwind-%{version}-pointer-comparison.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
ExclusiveArch: %ix86 ia64 x86_64
|
|
|
|
%description
|
|
A portable and efficient C programming interface (API) to determine the
|
|
call chain of a program.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
David Mosberger <David.Mosberger@acm.org>
|
|
|
|
%package devel
|
|
License: MIT
|
|
Summary: Unwind library
|
|
Group: Development/Libraries/C and C++
|
|
Requires: libunwind = %{version}-%{release}
|
|
Provides: libunwind:%{_libdir}/libunwind.so
|
|
|
|
%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
|
|
%patch
|
|
|
|
%build
|
|
chmod +w aclocal.m4 configure
|
|
autoreconf -fi
|
|
RPM_OPT_FLAGS="$RPM_OPT_FLAGS -U_FORTIFY_SOURCE"
|
|
./configure "CFLAGS=$RPM_OPT_FLAGS" --prefix=/usr --mandir=%{_mandir} \
|
|
--libdir=%{_libdir} --build=%{_target_cpu}-suse-linux
|
|
make %{?jobs:-j%jobs}
|
|
%ifarch ia64
|
|
make -k check
|
|
%else
|
|
# There are some expected failures
|
|
make -k check || :
|
|
%endif
|
|
|
|
%install
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
mkdir -p $RPM_BUILD_ROOT/%{_lib}
|
|
mv $RPM_BUILD_ROOT%{_libdir}/libunwind.so.7* $RPM_BUILD_ROOT/%{_lib}
|
|
cd $RPM_BUILD_ROOT%{_libdir}
|
|
ln -sf ../../%{_lib}/libunwind.so.7.* libunwind.so
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-, root, root)
|
|
/%_lib/lib*
|
|
%{_libdir}/lib*.so.*
|
|
%{_libdir}/libunwind.so
|
|
|
|
%files devel
|
|
%defattr(-, root, root)
|
|
%{_prefix}/include/*
|
|
%{_libdir}/lib*.a
|
|
%{_libdir}/lib*.la
|
|
%{_libdir}/libunwind-*.so
|
|
%doc %{_mandir}/man?/*
|
|
|
|
%changelog
|