912388
# rpmbuild parameters:
912388
# --without check: Do not run the testsuite.  Default is to run it.
912388
912388
Summary: An unwinding library
912388
Name: libunwind
912388
Epoch: 2
912388
Version: 1.2
912388
Release: 2%{?dist}
912388
License: BSD
912388
Group: Development/Debuggers
912388
Source: http://download.savannah.gnu.org/releases/libunwind/libunwind-%{version}.tar.gz
912388
912388
Patch2: 0002-Fix-rpmdiff-failure.patch
912388
912388
URL: http://savannah.nongnu.org/projects/libunwind
912388
ExclusiveArch: %{arm} aarch64 %{ix86} x86_64 %{power64}
912388
912388
BuildRequires: automake libtool autoconf
912388
912388
# host != target would cause REMOTE_ONLY build even if building i386 on x86_64.
912388
%global _host %{_target_platform}
912388
912388
%description
912388
Libunwind provides a C ABI to determine the call-chain of a program.
912388
912388
%package devel
912388
Summary: Development package for libunwind
912388
Group: Development/Debuggers
912388
Requires: libunwind = %{epoch}:%{version}-%{release}
912388
912388
%description devel
912388
The libunwind-devel package includes the libraries and header files for
912388
libunwind.
912388
912388
%prep
912388
%setup -q
912388
912388
%patch2 -p1
912388
912388
%build
912388
aclocal
912388
libtoolize --force
912388
autoheader
912388
automake --add-missing
912388
autoconf
912388
%configure --enable-static --enable-shared --disable-setjmp
912388
make %{?_smp_mflags}
912388
912388
%install
912388
make install DESTDIR=$RPM_BUILD_ROOT
912388
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
912388
912388
# /usr/include/libunwind-ptrace.h
912388
# [...] aren't really part of the libunwind API.  They are implemented in
912388
# a archive library called libunwind-ptrace.a.
912388
mv -f $RPM_BUILD_ROOT%{_libdir}/libunwind-ptrace.a $RPM_BUILD_ROOT%{_libdir}/libunwind-ptrace.a-save
912388
rm -f $RPM_BUILD_ROOT%{_libdir}/libunwind*.a
912388
mv -f $RPM_BUILD_ROOT%{_libdir}/libunwind-ptrace.a-save $RPM_BUILD_ROOT%{_libdir}/libunwind-ptrace.a
912388
rm -f $RPM_BUILD_ROOT%{_libdir}/libunwind-ptrace*.so*
912388
912388
#Copy doc files manually as we do not have latex2man in Red Hat Enterprise Linux
912388
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man3
912388
cd doc
912388
for fn in *.man; do
912388
  install -c -m 644 $fn $RPM_BUILD_ROOT%{_mandir}/man3/${fn%.man}.3
912388
done
912388
cd ..
912388
912388
%check
912388
%if 0%{?_with_check:1} || 0%{?_with_testsuite:1}
912388
echo ====================TESTING=========================
912388
make check || true
912388
echo ====================TESTING END=====================
912388
%else
912388
echo ====================TESTSUITE DISABLED=========================
912388
%endif
912388
912388
%post -p /sbin/ldconfig
912388
912388
%postun -p /sbin/ldconfig
912388
912388
%files
912388
%defattr(-,root,root,-)
912388
%doc COPYING README NEWS
912388
%{_libdir}/libunwind*.so.*
912388
912388
%files devel
912388
%defattr(-,root,root,-)
912388
%{_libdir}/libunwind*.so
912388
%{_libdir}/libunwind-ptrace.a
912388
%{_libdir}/pkgconfig/libunwind*.pc
912388
%{_mandir}/man3/*
912388
# <unwind.h> does not get installed for REMOTE_ONLY targets - check it.
912388
%{_includedir}/unwind.h
912388
%{_includedir}/libunwind*.h
912388
912388
%changelog
912388
* Mon Feb 27 2017 Miroslav Rezanina <mrezanin@redhat.com> 1.2-2.el7
912388
- Rebase to 1.2 [bz#1384435]
912388
- Resolves: bz#1384435
912388
  (Rebase libunwind package (and add for ppc64le): libunwind)
912388
912388
* Thu Jan 28 2016 Miroslav Rezanina <mrezanin@redhat.com> 1.1-6.el7
912388
- Fix update from EPEL version [bz#1289950]
912388
- Resolves: bz#1289950
912388
  (libunwind in RHEL 7.2 has a smaller release than the last libunwind package in EPEL-7)
912388
912388
* Wed Jul 29 2015 Miroslav Rezanina <mrezanin@redhat.com> 1.1-5
912388
- Version bumped [bz#1238864]
912388
- Resolves: bz#1238864
912388
  libunwind: bump version to win against existing branches
912388
912388
* Fri Jun 19 2015 Miroslav Rezanina <mrezanin@redhat.com> 1.1-2
912388
- lu-Fix-rpmdiff-failure.patch [bz#1229359]
912388
- lu-Fix-buffer-overflow-reported-by-Coverity.patch [bz#1233114]
912388
- Resolves: bz#1229359
912388
  (Fix multilib support)
912388
- Resolves: bz#1233114
912388
  (fix off-by-one in dwarf_to_unw_regnum (CVE-2015-3239))
912388
912388
* Tue Jun 02 2015 Miroslav Rezanina <mrezanin@redhat.com> 1.1-1
912388
- Import to RHEL