libunwind/libunwind.spec
Tomáš Chvátal 89d6a1c431 Accepting request 577875 from home:Ronis_BR
- Add patch `fix_versioning_libunwind_1.2.1.patch`.
  * This patch fixes the upstream bug gh#libunwind/libunwind#30.
    This bug was causing the julia build process to fail.
    NOTE: This patch shall be removed in the next version of
    libunwind.

OBS-URL: https://build.opensuse.org/request/show/577875
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libunwind?expand=0&rev=37
2018-02-19 08:07:04 +00:00

83 lines
2.4 KiB
RPMSpec

#
# spec file for package libunwind
#
# Copyright (c) 2018 SUSE LINUX 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/
#
%define realver 1.2.1
Name: libunwind
Version: 1.2.1
Release: 0
Summary: Unwind Library
License: MIT
Group: System/Base
Url: http://savannah.nongnu.org/projects/libunwind/
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
Source2: %{name}.keyring
Source3: baselibs.conf
# 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
BuildRequires: gcc-c++
BuildRequires: lzma-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(atomic_ops)
ExclusiveArch: %{ix86} ia64 x86_64 %{arm} ppc ppc64 ppc64le aarch64
%description
A portable and efficient C programming interface (API) to determine the
call chain of a program.
%package devel
Summary: Unwind library
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
%description devel
A portable and efficient C programming interface (API) to determine the
call-chain of a program.
%prep
%setup -q -n %{name}-%{realver}
%patch0 -p1
%build
%configure \
--enable-minidebuginfo
make %{?_smp_mflags}
%check
%if ! 0%{?qemu_user_space_build:1}
# run-coredump-unwind fails
make check %{?_smp_mflags} || :
%endif
%install
%make_install
find %{buildroot} -iregex '.*\.l?a$' -delete -print
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%{_libdir}/lib*.so.*
%files devel
%{_includedir}/*
%{_libdir}/%{name}*.so
%{_libdir}/pkgconfig/%{name}*.pc
%changelog