82b9074
# rpmbuild parameters:
82b9074
# --without check: Do not run the testsuite.  Default is to run it.
82b9074
6932619
Summary: An unwinding library
cvsdist c09494a
Name: libunwind
5d7bc24
Version: 1.4.0
7fe03d7
Release: 4%{?dist}
cvsdist c09494a
License: BSD
977148d
URL: http://savannah.nongnu.org/projects/libunwind
Jes Sorensen 1815d8e
Source: http://download-mirror.savannah.gnu.org/releases/libunwind/libunwind-%{version}.tar.gz
977148d
189cf20
#Fedora specific patch
Jes Sorensen 1815d8e
Patch1: libunwind-arm-default-to-exidx.patch
7fe03d7
# Make libunwind.h multilib friendly
7fe03d7
Patch2: libunwind-1.3.1-multilib-fix.patch
977148d
5d7bc24
ExclusiveArch: %{arm} aarch64 hppa ia64 mips ppc %{power64} s390x %{ix86} x86_64
cvsdist c09494a
Jes Sorensen 1815d8e
BuildRequires: automake libtool autoconf texlive-latex2man
a55e1b8
BuildRequires: make
cvsdist c09494a
5568974
# host != target would cause REMOTE_ONLY build even if building i386 on x86_64.
189cf20
%global _host %{_target_platform}
5568974
cvsdist c09494a
%description
cvsdist c09494a
Libunwind provides a C ABI to determine the call-chain of a program.
cvsdist c09494a
6932619
%package devel
6932619
Summary: Development package for libunwind
21c49f1
Requires: libunwind = %{version}-%{release}
189cf20
6932619
%description devel
6932619
The libunwind-devel package includes the libraries and header files for
6932619
libunwind.
6932619
cvsdist c09494a
%prep
c4c9b1e
%setup -q
Jes Sorensen 1815d8e
%patch1 -p1 -b .default-to-exidx
7fe03d7
%patch2 -p1 -b .multilib-fix
8cfbeef
cvsdist c09494a
%build
ec928ec
%global optflags %{optflags} -fcommon
6932619
aclocal
5568974
libtoolize --force
6932619
autoheader
6932619
automake --add-missing
6932619
autoconf
Jes Sorensen 1815d8e
%configure --enable-static --enable-shared --enable-setjmp=no
189cf20
make %{?_smp_mflags}
cvsdist c09494a
cvsdist c09494a
%install
189cf20
make install DESTDIR=$RPM_BUILD_ROOT
189cf20
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
170f437
170f437
# /usr/include/libunwind-ptrace.h
170f437
# [...] aren't really part of the libunwind API.  They are implemented in
170f437
# a archive library called libunwind-ptrace.a.
170f437
mv -f $RPM_BUILD_ROOT%{_libdir}/libunwind-ptrace.a $RPM_BUILD_ROOT%{_libdir}/libunwind-ptrace.a-save
170f437
rm -f $RPM_BUILD_ROOT%{_libdir}/libunwind*.a
170f437
mv -f $RPM_BUILD_ROOT%{_libdir}/libunwind-ptrace.a-save $RPM_BUILD_ROOT%{_libdir}/libunwind-ptrace.a
170f437
rm -f $RPM_BUILD_ROOT%{_libdir}/libunwind-ptrace*.so*
6932619
ee3845b
# fix multilib conflicts
90f7c40
touch -r NEWS $RPM_BUILD_ROOT%{_includedir}/libunwind.h
ee3845b
6932619
%check
5568974
%if 0%{?_with_check:1} || 0%{?_with_testsuite:1}
82b9074
echo ====================TESTING=========================
6932619
make check || true
82b9074
echo ====================TESTING END=====================
5568974
%else
5568974
echo ====================TESTSUITE DISABLED=========================
82b9074
%endif
cvsdist c09494a
4a34d35
%ldconfig_scriptlets
6932619
cvsdist c09494a
%files
977148d
%license COPYING
977148d
%doc README NEWS
6932619
%{_libdir}/libunwind*.so.*
6932619
6932619
%files devel
6932619
%{_libdir}/libunwind*.so
170f437
%{_libdir}/libunwind-ptrace.a
Kyle McMartin ef33c9d
%{_libdir}/pkgconfig/libunwind*.pc
cvsdist c09494a
%{_mandir}/*/*
5568974
# <unwind.h> does not get installed for REMOTE_ONLY targets - check it.
5568974
%{_includedir}/unwind.h
5568974
%{_includedir}/libunwind*.h
cvsdist c09494a
cvsdist c09494a
%changelog
7fe03d7
* Thu Aug 13 2020 Tom Callaway <spot@fedoraproject.org> - 1.4.0-4
7fe03d7
- revert previous change
7fe03d7
- fix it properly
7fe03d7
0d267b1
* Mon Aug 10 2020 Tom Callaway <spot@fedoraproject.org> - 1.4.0-3
0d267b1
- fix multilib issues with libunwind.h (bz1866512)
0d267b1
dd77810
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-2
dd77810
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
dd77810
5d7bc24
* Tue Apr 14 2020 Dan HorĂ¡k <dan[at]danny.cz> - 1.4.0-1
5d7bc24
- Update to 1.4.0 with s390x support
5d7bc24
ec928ec
* Fri Jan 31 2020 Tom Callaway <spot@fedoraproject.org> - 1.3.1-5
ec928ec
- backport change from upstream to fix reported test failures (bz1795896)
ec928ec
bfdacd7
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-4
bfdacd7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
bfdacd7
ccdcb64
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-3
ccdcb64
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
ccdcb64
d1c7cb2
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-2
d1c7cb2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
d1c7cb2
3dda0e7
* Sun Jan 13 2019 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 1.3.1-1
3dda0e7
- Update to 1.3.1
3dda0e7
- Remove no longer needed patch (builds on all arches without it)
3dda0e7
a4bb342
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-6
a4bb342
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
a4bb342
aacb7d4
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.2.1-5
aacb7d4
- Escape macros in %%changelog
aacb7d4
ebfaa26
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-4
ebfaa26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
ebfaa26
ee3845b
* Sun Oct 29 2017 Tom Callaway <spot@fedoraproject.org> - 1.2.1-3
ee3845b
- fix multilib conflicts
ee3845b
977148d
* Sat Oct 14 2017 Peter Robinson <pbrobinson@fedoraproject.org> 1.2.1-2
977148d
- Add patch to fix ARM issues
977148d
58ed064
* Fri Sep  1 2017 Tom Callaway <spot@fedoraproject.org> - 1.2.1-1
58ed064
- update to 1.2.1
58ed064
1129981
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-3
1129981
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
1129981
a81d7b3
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-2
a81d7b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
a81d7b3
Jes Sorensen 1815d8e
* Thu Jun 1 2017 Jes Sorensen <jes.sorensen@gmail.com> - 1.2-1
Jes Sorensen 1815d8e
- Update to libunwind-1.2 (#1439962)
Jes Sorensen 1815d8e
- Disable setjmp the correct way and get rid of messy patch
Jes Sorensen 1815d8e
8c93d61
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-12
8c93d61
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
8c93d61
9e0a924
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-11
9e0a924
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
9e0a924
841b180
* Fri Jul 10 2015 Tom Callaway <spot@fedoraproject.org> - 1.1-10
841b180
- fix CVE-2015-3239
841b180
3f11b9a
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-9
3f11b9a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
3f11b9a
e98c17b
* Tue Jun  2 2015 Tom Callaway <spot@fedoraproject.org> - 1.1-8 
e98c17b
- default arm unwinding method to exidx, old default of dwarf never works on Fedora
e98c17b
  (#1226806)
e98c17b
d31bc18
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-7
d31bc18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
d31bc18
b0c9b69
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-6
b0c9b69
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
b0c9b69
Jaromir Capik 7a28bf3
* Tue May 13 2014 Jaromir Capik <jcapik@redhat.com> - 1.1-5
Jaromir Capik 7a28bf3
- Replacing ppc64 with the power64 macro (#1051641)
Jaromir Capik 7a28bf3
Kyle McMartin 67d2b33
* Mon Jan 20 2014 Kyle McMartin <kmcmarti@redhat.com> 1.1-4
Kyle McMartin 67d2b33
- Link test_ppc64_altivec against libunwind in tests/Makefile.am to fix build
Kyle McMartin 67d2b33
  on ppc64.
Kyle McMartin 67d2b33
d436ef2
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-3
d436ef2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
d436ef2
Kyle McMartin cd37e09
* Mon Jun 03 2013 Kyle McMartin <kmcmarti@redhat.com> 1.1-2
Kyle McMartin cd37e09
- Add aarch64 support from backported ac6c0a65. (Mark Salter)
Kyle McMartin cd37e09
  (rhbz#969689)
Kyle McMartin cd37e09
Kyle McMartin ef33c9d
* Mon Feb 18 2013 Kyle McMartin <kmcmarti@redhat.com> 1.1-1
Kyle McMartin ef33c9d
- Update to upstream v1.1
Kyle McMartin ef33c9d
- libunwind-install-ptrace.patch: drop upstream patch
Kyle McMartin ef33c9d
- libunwind-arm-register-rename.patch: fixed upstream
Kyle McMartin ef33c9d
- Add pkg-config files to libunwind-devel
Kyle McMartin ef33c9d
d42b74e
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-5
d42b74e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
d42b74e
2501e5f
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-4
2501e5f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2501e5f
c2bd71a
* Wed Feb 15 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 1.0.1-3
c2bd71a
- Add patch to fix build on ARM
c2bd71a
157195c
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
157195c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
157195c
c4c9b1e
* Thu Sep 15 2011 Jan Kratochvil <jan.kratochvil@redhat.com> - 1.0.1-1.fc17
c4c9b1e
- Upgrade to the upstream release. (BZ 738595).
c4c9b1e
- Use official distribution URL for %%{source}.
c4c9b1e
Paul Whalen eda4efe
* Thu Jun 02 2011 Paul Whalen <paul.whalen@senecac.on.ca> - 0.99-3.20110424git1e10c293
Paul Whalen eda4efe
- Added arm macro to ExclusiveArch
Paul Whalen eda4efe
170f437
* Mon May  9 2011 Jan Kratochvil <jan.kratochvil@redhat.com> - 0.99-2.20110424git1e10c293
170f437
- Install static libunwind-ptrace library into system (for ltrace, BZ 703159).
170f437
413a800
* Sun Apr 24 2011 Jan Kratochvil <jan.kratochvil@redhat.com> - 0.99-1.20110424git1e10c293
413a800
- Rebase to the upstream post-0.99 snapshot (BZ 697453).
413a800
1709f2b
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99-0.16.20090430betagit4b8404d1
1709f2b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
1709f2b
Jesse Keating 6b1518c
* Wed Sep 29 2010 jkeating - 0.99-0.15.20090430betagit4b8404d1
Jesse Keating 6b1518c
- Rebuilt for gcc bug 634757
Jesse Keating 6b1518c
189cf20
* Sat Sep 11 2010 Parag Nemade <paragn AT fedoraproject.org> 0.99-0.14.20090430betagit4b8404d1.fc15
189cf20
- Merge-review cleanup (#226052)
189cf20
21c49f1
* Fri Dec  4 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99-0.13.20090430betagit4b8404d1
aacb7d4
- The devel package now requires also base package's %%{release}.
21c49f1
- Update the obsolete macro %%{package_version}.
21c49f1
4e3906c
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99-0.12.20090430betagit4b8404d1
4e3906c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
4e3906c
3ebb80c
* Wed Jul 15 2009 Jan Kratochvil <jan.kratochvil@redhat.com> - 0.99-0.11.20090430betagit4b8404d1
3ebb80c
- Disable the libunwind-setjmp library as no longer compatible with glibc and
3ebb80c
  no Fedora dependencies on it (FTBSFS BZ 511562).
3ebb80c
de471ff
* Thu Apr 30 2009 Jan Kratochvil <jan.kratochvil@redhat.com> - 0.99-0.10.20090430betagit4b8404d1
de471ff
- Fix the ia64 variant of GetIPInfo() (BZ 480412).
de471ff
5568974
* Mon Apr 13 2009 Jan Kratochvil <jan.kratochvil@redhat.com> - 0.99-0.9.20090413betagitb483ea3f
5568974
- Rebase the package on the upstream variant: http://www.nongnu.org/libunwind/
5568974
  - Drop the patch libunwind-snap-070224-frysk20070405cvs.patch
5568974
    as even frysk-0.4-8.fc11 still has this library bundled statically.
5568974
- Disable the testsuite by default during the build.
5568974
  - It should be run separately as it crashes some ia64 kernels.
5568974
  - Drop the patch libunwind-snap-070224-orphanripper.patch.
5568974
- Drop the patch libunwind-snap-070224-dprintf-vs-stdio.h as no longer needed.
5568974
- Drop libunwind-snap-070224-multilib-rh342451.patch as accepted upstream.
5568974
- Fix and enable ppc (ppc32) arch.
5568974
69918d7
* Tue Mar  3 2009 Jan Kratochvil <jan.kratochvil@redhat.com> - 0.99-0.8.frysk20070405cvs
69918d7
- Fix .spec ExclusiveArch from i386 to %%{ix86}.
69918d7
- Remove `BuildRequires: glibc gcc make tar gzip' - minimum build environment.
69918d7
16e6870
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99-0.7.frysk20070405cvs
16e6870
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
16e6870
82b9074
* Mon Sep 22 2008 Jan Kratochvil <jan.kratochvil@redhat.com> - 0.99-0.6.frysk20070405cvs
82b9074
- Fix build error due to a `dprintf' conflict on recent glibc.
82b9074
- New rpmbuild parameter: --without check
82b9074
8cfbeef
* Sun Feb 24 2008 Jan Kratochvil <jan.kratochvil@redhat.com> - 0.99-0.5.frysk20070405cvs
8cfbeef
- Fix the multilib conflicts (BZ 342451).
8cfbeef
9f01fb1
* Sun Feb 24 2008 Jan Kratochvil <jan.kratochvil@redhat.com> - 0.99-0.4.frysk20070405cvs
9f01fb1
- Abort the possibly hung up testcases after 120 seconds (BZ 427850, BZ 434147).
9f01fb1
5198241
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.99-0.3.frysk20070405cvs
5198241
- Autorebuild for GCC 4.3
5198241
63fcff8
* Sun Apr 22 2007 Jan Kratochvil <jan.kratochvil@redhat.com> - 0.99-0.2.frysk20070405cvs
63fcff8
- Require conflict with gdb < gdb-6.6-9 as it would not find `libunwind.so'.
63fcff8
- Fixed (unused - commented) rule for a RPM build with embedded debug info.
63fcff8
6932619
* Thu Apr  5 2007 Jan Kratochvil <jan.kratochvil@redhat.com> - 0.99-0.1.frysk20070405cvs
6932619
- Update to the upstream snapshot snap-070224.
6932619
- Use the Frysk's modified version, currently snapshot 20070405cvs.
6932619
- Extend the supported architectures from ia64 also to x86_64, i386 and ppc64.
6932619
- Spec file fixups.
6932619
- Split the package to its base and the `devel' part.
6932619
- Drop the statically built libraries.
6932619
554d42a
* Sun Oct 01 2006 Jesse Keating <jkeating@redhat.com> - 0.98.5-3
554d42a
- rebuilt for unwind info generation, broken in gcc-4.1.1-21
554d42a
977148d
* Fri Sep 22 2006 Jan Kratochvil <jan.kratochvil@redhat.com> - 0.98.5-2
883a72b
- SELinux compatibility fix - stack is now non-exec (Jakub Jelinek suggestion).
883a72b
eec9ffd
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.98.5-1.1
eec9ffd
- rebuild
eec9ffd
5e5ba58
* Sat May 27 2006 Alexandre Oliva <aoliva@redhat.com> - 0.98.5-1
5e5ba58
- Import version 0.98.5.
5e5ba58
Florian La Roche d4f87d1
* Thu Feb 09 2006 Florian La Roche <laroche@redhat.com>
Florian La Roche d4f87d1
- remove empty scripts
Florian La Roche d4f87d1
e704134
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.98.2-3.2
e704134
- rebuilt for new gcc4.1 snapshot and glibc changes
e704134
11dd0d8
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
11dd0d8
- rebuilt
11dd0d8
1a97cf2
* Tue Mar 01 2005 Jeff Johnston <jjohnstn@redhat.com>	0.98.2.3
1a97cf2
- Bump up release number
1a97cf2
d5e0c62
* Thu Nov 11 2004 Jeff Johnston <jjohnstn@redhat.com>	0.98.2.2
d5e0c62
- Import version 0.98.2.
d5e0c62
f88d9d8
* Wed Nov 10 2004 Jeff Johnston <jjohnstn@redhat.com>	0.97.6
1b62c44
- Bump up release number
1b62c44
cvsdist 90081cf
* Thu Aug 19 2004 Jeff Johnston <jjohnstn@redhat.com>	0.97.3
cvsdist 90081cf
- Remove debug file from files list.
cvsdist 90081cf
cvsdist a43e324
* Fri Aug 13 2004 Jeff Johnston <jjohnstn@redhat.com>	0.97.2
cvsdist a43e324
- Import version 0.97.
cvsdist a43e324
cvsdist 8555f6d
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 8555f6d
- rebuilt
cvsdist 8555f6d
cvsdist 31a809b
* Wed Jun 09 2004  Elena Zannoni <ezannoni@redhat.com>	0.96.4
cvsdist 31a809b
- Bump release number.
cvsdist 31a809b
cvsdist 31a809b
* Mon Feb 23 2004  Elena Zannoni <ezannoni@redhat.com>	0.96.3
cvsdist 31a809b
- Bump release number.
cvsdist 31a809b
cvsdist 91f82cf
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 91f82cf
- rebuilt
cvsdist 91f82cf
cvsdist 28e3673
* Thu Jan 29 2004  Jeff Johnston <jjohnstn@redhat.com>	0.96.1
cvsdist 28e3673
- Import version 0.96.
cvsdist 28e3673
cvsdist ed3604f
* Tue Jan 06 2004  Jeff Johnston <jjohnstn@redhat.com>	0.92.2
cvsdist ed3604f
- Bump release number.
cvsdist ed3604f
cvsdist c09494a
* Mon Oct 06 2003  Jeff Johnston <jjohnstn@redhat.com>	0.92.1
cvsdist c09494a
- Initial release
cvsdist c09494a