Blame SPECS/libunwind.spec

7f7c90
%{?scl:%scl_package libunwind}
7f7c90
%{!?scl:%global pkg_name %{name}}
7f7c90
7f7c90
# rpmbuild parameters:
7f7c90
# --without check: Do not run the testsuite.  Default is to run it.
7f7c90
7f7c90
Summary: An unwinding library
7f7c90
Name: %{?scl_prefix}libunwind
7f7c90
Version: 1.2
7f7c90
Release: 3%{?dist}
7f7c90
License: BSD
7f7c90
Group: Development/Debuggers
7f7c90
Source: http://download-mirror.savannah.gnu.org/releases/libunwind/libunwind-%{version}.tar.gz
7f7c90
#Fedora specific patch
7f7c90
Patch1: libunwind-arm-default-to-exidx.patch
7f7c90
URL: http://savannah.nongnu.org/projects/libunwind
7f7c90
ExclusiveArch: %{arm} aarch64 hppa ia64 mips ppc %{power64} %{ix86} x86_64
7f7c90
7f7c90
%{?scl:Requires: %{scl}-runtime}
7f7c90
BuildRequires: automake libtool autoconf
7f7c90
7f7c90
# host != target would cause REMOTE_ONLY build even if building i386 on x86_64.
7f7c90
%global _host %{_target_platform}
7f7c90
7f7c90
# we don't want to require or provide any pkgconfig(xxx) symbols
7f7c90
%global __pkgconfig_requires ""
7f7c90
%global __pkgconfig_provides ""
7f7c90
7f7c90
7f7c90
%description
7f7c90
Libunwind provides a C ABI to determine the call-chain of a program.
7f7c90
7f7c90
7f7c90
%package devel
7f7c90
Summary: Development package for libunwind
7f7c90
Group: Development/Debuggers
7f7c90
Requires: %{?scl_prefix}libunwind = %{version}-%{release}
7f7c90
7f7c90
7f7c90
%description devel
7f7c90
The libunwind-devel package includes the libraries and header files for
7f7c90
libunwind.
7f7c90
7f7c90
7f7c90
%prep
7f7c90
%{?scl:scl enable %{scl} - << \EOF}
7f7c90
set -ex
7f7c90
%setup -n %{pkg_name}-%{version} -q
7f7c90
%patch1 -p1 -b .default-to-exidx
7f7c90
%{?scl:EOF}
7f7c90
7f7c90
7f7c90
%build
7f7c90
%{?scl_prefix:export verstring_prefix="%{scl_prefix}"}
7f7c90
%{?scl:scl enable %{scl} - << \EOF}
7f7c90
set -ex
7f7c90
aclocal
7f7c90
libtoolize --force
7f7c90
7f7c90
# we need to patch ltmain in order to provide prefixed soname,
7f7c90
# so symlink doesn't work for us
7f7c90
unlink config/ltmain.sh
7f7c90
sed -e 's|major=.$func_arith_result|major=.$verstring_prefix$func_arith_result|g' \
7f7c90
    /usr/share/libtool/config/ltmain.sh > config/ltmain.sh
7f7c90
7f7c90
autoheader
7f7c90
automake --add-missing
7f7c90
autoconf
7f7c90
7f7c90
%configure --enable-static --enable-shared --enable-setjmp=no
7f7c90
make %{?_smp_mflags}
7f7c90
%{?scl:EOF}
7f7c90
7f7c90
7f7c90
%install
7f7c90
%{?scl_prefix:export verstring_prefix="%{scl_prefix}"}
7f7c90
%{?scl:scl enable %{scl} - << \EOF}
7f7c90
set -ex
7f7c90
make install DESTDIR=$RPM_BUILD_ROOT
7f7c90
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
7f7c90
7f7c90
# /usr/include/libunwind-ptrace.h
7f7c90
# [...] aren't really part of the libunwind API.  They are implemented in
7f7c90
# a archive library called libunwind-ptrace.a.
7f7c90
mv -f $RPM_BUILD_ROOT%{_libdir}/libunwind-ptrace.a $RPM_BUILD_ROOT%{_libdir}/libunwind-ptrace.a-save
7f7c90
rm -f $RPM_BUILD_ROOT%{_libdir}/libunwind*.a
7f7c90
mv -f $RPM_BUILD_ROOT%{_libdir}/libunwind-ptrace.a-save $RPM_BUILD_ROOT%{_libdir}/libunwind-ptrace.a
7f7c90
rm -f $RPM_BUILD_ROOT%{_libdir}/libunwind-ptrace*.so*
7f7c90
%{?scl:EOF}
7f7c90
7f7c90
7f7c90
%check
7f7c90
%{?scl:scl enable %{scl} - << \EOF}
7f7c90
set -ex
7f7c90
%if 0%{?_with_check:1} || 0%{?_with_testsuite:1}
7f7c90
echo ====================TESTING=========================
7f7c90
make check || true
7f7c90
echo ====================TESTING END=====================
7f7c90
%else
7f7c90
echo ====================TESTSUITE DISABLED=========================
7f7c90
%endif
7f7c90
%{?scl:EOF}
7f7c90
7f7c90
7f7c90
%post -p /sbin/ldconfig
7f7c90
7f7c90
%postun -p /sbin/ldconfig
7f7c90
7f7c90
7f7c90
%files
7f7c90
%defattr(-,root,root,-)
7f7c90
%doc COPYING README NEWS
7f7c90
%{_libdir}/libunwind*.so.*
7f7c90
7f7c90
7f7c90
%files devel
7f7c90
%defattr(-,root,root,-)
7f7c90
%{_libdir}/libunwind*.so
7f7c90
%{_libdir}/libunwind-ptrace.a
7f7c90
%{_libdir}/pkgconfig/libunwind*.pc
7f7c90
#%{_mandir}/*/*
7f7c90
# <unwind.h> does not get installed for REMOTE_ONLY targets - check it.
7f7c90
%{_includedir}/unwind.h
7f7c90
%{_includedir}/libunwind*.h
7f7c90
7f7c90
7f7c90
%changelog
7f7c90
* Thu Jun 15 2017 Marek Skalický <mskalick@redhat.com> - 1.2-3
7f7c90
- Add SCL name into soname
7f7c90
- Remove pkgconfig provides (don't contain SCL name)
7f7c90
7f7c90
* Wed Jun 14 2017 Marek Skalický <mskalick@redhat.com> - 1.2-2
7f7c90
- Rebase to libunwind 1.2 from Fedora 27 and convert it to SCL
7f7c90
- Do not install man pages - latex2man is not RHEL and it is needed
7f7c90
  to regenerate manpages (libunwind is only dependency of rh-mongodb34
7f7c90
  collection and using it for other purposes is not supported)
7f7c90
7f7c90
* Thu Jun 1 2017 Jes Sorensen <jes.sorensen@gmail.com> - 1.2-1
7f7c90
- Update to libunwind-1.2 (#1439962)
7f7c90
- Disable setjmp the correct way and get rid of messy patch
7f7c90
7f7c90
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-12
7f7c90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
7f7c90
7f7c90
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-11
7f7c90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
7f7c90
7f7c90
* Fri Jul 10 2015 Tom Callaway <spot@fedoraproject.org> - 1.1-10
7f7c90
- fix CVE-2015-3239
7f7c90
7f7c90
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-9
7f7c90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
7f7c90
7f7c90
* Tue Jun  2 2015 Tom Callaway <spot@fedoraproject.org> - 1.1-8 
7f7c90
- default arm unwinding method to exidx, old default of dwarf never works on Fedora
7f7c90
  (#1226806)
7f7c90
7f7c90
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-7
7f7c90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
7f7c90
7f7c90
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-6
7f7c90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
7f7c90
7f7c90
* Tue May 13 2014 Jaromir Capik <jcapik@redhat.com> - 1.1-5
7f7c90
- Replacing ppc64 with the power64 macro (#1051641)
7f7c90
7f7c90
* Mon Jan 20 2014 Kyle McMartin <kmcmarti@redhat.com> 1.1-4
7f7c90
- Link test_ppc64_altivec against libunwind in tests/Makefile.am to fix build
7f7c90
  on ppc64.
7f7c90
7f7c90
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-3
7f7c90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
7f7c90
7f7c90
* Mon Jun 03 2013 Kyle McMartin <kmcmarti@redhat.com> 1.1-2
7f7c90
- Add aarch64 support from backported ac6c0a65. (Mark Salter)
7f7c90
  (rhbz#969689)
7f7c90
7f7c90
* Mon Feb 18 2013 Kyle McMartin <kmcmarti@redhat.com> 1.1-1
7f7c90
- Update to upstream v1.1
7f7c90
- libunwind-install-ptrace.patch: drop upstream patch
7f7c90
- libunwind-arm-register-rename.patch: fixed upstream
7f7c90
- Add pkg-config files to libunwind-devel
7f7c90
7f7c90
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-5
7f7c90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
7f7c90
7f7c90
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-4
7f7c90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
7f7c90
7f7c90
* Wed Feb 15 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 1.0.1-3
7f7c90
- Add patch to fix build on ARM
7f7c90
7f7c90
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
7f7c90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
7f7c90
7f7c90
* Thu Sep 15 2011 Jan Kratochvil <jan.kratochvil@redhat.com> - 1.0.1-1.fc17
7f7c90
- Upgrade to the upstream release. (BZ 738595).
7f7c90
- Use official distribution URL for %%{source}.
7f7c90
7f7c90
* Thu Jun 02 2011 Paul Whalen <paul.whalen@senecac.on.ca> - 0.99-3.20110424git1e10c293
7f7c90
- Added arm macro to ExclusiveArch
7f7c90
7f7c90
* Mon May  9 2011 Jan Kratochvil <jan.kratochvil@redhat.com> - 0.99-2.20110424git1e10c293
7f7c90
- Install static libunwind-ptrace library into system (for ltrace, BZ 703159).
7f7c90
7f7c90
* Sun Apr 24 2011 Jan Kratochvil <jan.kratochvil@redhat.com> - 0.99-1.20110424git1e10c293
7f7c90
- Rebase to the upstream post-0.99 snapshot (BZ 697453).
7f7c90
7f7c90
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99-0.16.20090430betagit4b8404d1
7f7c90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
7f7c90
7f7c90
* Wed Sep 29 2010 jkeating - 0.99-0.15.20090430betagit4b8404d1
7f7c90
- Rebuilt for gcc bug 634757
7f7c90
7f7c90
* Sat Sep 11 2010 Parag Nemade <paragn AT fedoraproject.org> 0.99-0.14.20090430betagit4b8404d1.fc15
7f7c90
- Merge-review cleanup (#226052)
7f7c90
7f7c90
* Fri Dec  4 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99-0.13.20090430betagit4b8404d1
7f7c90
- The devel package now requires also base package's %{release}.
7f7c90
- Update the obsolete macro %%{package_version}.
7f7c90
7f7c90
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99-0.12.20090430betagit4b8404d1
7f7c90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
7f7c90
7f7c90
* Wed Jul 15 2009 Jan Kratochvil <jan.kratochvil@redhat.com> - 0.99-0.11.20090430betagit4b8404d1
7f7c90
- Disable the libunwind-setjmp library as no longer compatible with glibc and
7f7c90
  no Fedora dependencies on it (FTBSFS BZ 511562).
7f7c90
7f7c90
* Thu Apr 30 2009 Jan Kratochvil <jan.kratochvil@redhat.com> - 0.99-0.10.20090430betagit4b8404d1
7f7c90
- Fix the ia64 variant of GetIPInfo() (BZ 480412).
7f7c90
7f7c90
* Mon Apr 13 2009 Jan Kratochvil <jan.kratochvil@redhat.com> - 0.99-0.9.20090413betagitb483ea3f
7f7c90
- Rebase the package on the upstream variant: http://www.nongnu.org/libunwind/
7f7c90
  - Drop the patch libunwind-snap-070224-frysk20070405cvs.patch
7f7c90
    as even frysk-0.4-8.fc11 still has this library bundled statically.
7f7c90
- Disable the testsuite by default during the build.
7f7c90
  - It should be run separately as it crashes some ia64 kernels.
7f7c90
  - Drop the patch libunwind-snap-070224-orphanripper.patch.
7f7c90
- Drop the patch libunwind-snap-070224-dprintf-vs-stdio.h as no longer needed.
7f7c90
- Drop libunwind-snap-070224-multilib-rh342451.patch as accepted upstream.
7f7c90
- Fix and enable ppc (ppc32) arch.
7f7c90
7f7c90
* Tue Mar  3 2009 Jan Kratochvil <jan.kratochvil@redhat.com> - 0.99-0.8.frysk20070405cvs
7f7c90
- Fix .spec ExclusiveArch from i386 to %%{ix86}.
7f7c90
- Remove `BuildRequires: glibc gcc make tar gzip' - minimum build environment.
7f7c90
7f7c90
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99-0.7.frysk20070405cvs
7f7c90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
7f7c90
7f7c90
* Mon Sep 22 2008 Jan Kratochvil <jan.kratochvil@redhat.com> - 0.99-0.6.frysk20070405cvs
7f7c90
- Fix build error due to a `dprintf' conflict on recent glibc.
7f7c90
- New rpmbuild parameter: --without check
7f7c90
7f7c90
* Sun Feb 24 2008 Jan Kratochvil <jan.kratochvil@redhat.com> - 0.99-0.5.frysk20070405cvs
7f7c90
- Fix the multilib conflicts (BZ 342451).
7f7c90
7f7c90
* Sun Feb 24 2008 Jan Kratochvil <jan.kratochvil@redhat.com> - 0.99-0.4.frysk20070405cvs
7f7c90
- Abort the possibly hung up testcases after 120 seconds (BZ 427850, BZ 434147).
7f7c90
7f7c90
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.99-0.3.frysk20070405cvs
7f7c90
- Autorebuild for GCC 4.3
7f7c90
7f7c90
* Sun Apr 22 2007 Jan Kratochvil <jan.kratochvil@redhat.com> - 0.99-0.2.frysk20070405cvs
7f7c90
- Require conflict with gdb < gdb-6.6-9 as it would not find `libunwind.so'.
7f7c90
- Fixed (unused - commented) rule for a RPM build with embedded debug info.
7f7c90
7f7c90
* Thu Apr  5 2007 Jan Kratochvil <jan.kratochvil@redhat.com> - 0.99-0.1.frysk20070405cvs
7f7c90
- Update to the upstream snapshot snap-070224.
7f7c90
- Use the Frysk's modified version, currently snapshot 20070405cvs.
7f7c90
- Extend the supported architectures from ia64 also to x86_64, i386 and ppc64.
7f7c90
- Spec file fixups.
7f7c90
- Split the package to its base and the `devel' part.
7f7c90
- Drop the statically built libraries.
7f7c90
7f7c90
* Sun Oct 01 2006 Jesse Keating <jkeating@redhat.com> - 0.98.5-3
7f7c90
- rebuilt for unwind info generation, broken in gcc-4.1.1-21
7f7c90
7f7c90
* Sat Sep 22 2006 Jan Kratochvil <jan.kratochvil@redhat.com> - 0.98.5-2
7f7c90
- SELinux compatibility fix - stack is now non-exec (Jakub Jelinek suggestion).
7f7c90
7f7c90
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.98.5-1.1
7f7c90
- rebuild
7f7c90
7f7c90
* Sat May 27 2006 Alexandre Oliva <aoliva@redhat.com> - 0.98.5-1
7f7c90
- Import version 0.98.5.
7f7c90
7f7c90
* Thu Feb 09 2006 Florian La Roche <laroche@redhat.com>
7f7c90
- remove empty scripts
7f7c90
7f7c90
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.98.2-3.2
7f7c90
- rebuilt for new gcc4.1 snapshot and glibc changes
7f7c90
7f7c90
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
7f7c90
- rebuilt
7f7c90
7f7c90
* Tue Mar 01 2005 Jeff Johnston <jjohnstn@redhat.com>	0.98.2.3
7f7c90
- Bump up release number
7f7c90
7f7c90
* Thu Nov 11 2004 Jeff Johnston <jjohnstn@redhat.com>	0.98.2.2
7f7c90
- Import version 0.98.2.
7f7c90
7f7c90
* Wed Nov 10 2004 Jeff Johnston <jjohnstn@redhat.com>	0.97.6
7f7c90
- Bump up release number
7f7c90
7f7c90
* Thu Aug 19 2004 Jeff Johnston <jjohnstn@redhat.com>	0.97.3
7f7c90
- Remove debug file from files list.
7f7c90
7f7c90
* Fri Aug 13 2004 Jeff Johnston <jjohnstn@redhat.com>	0.97.2
7f7c90
- Import version 0.97.
7f7c90
7f7c90
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
7f7c90
- rebuilt
7f7c90
7f7c90
* Wed Jun 09 2004  Elena Zannoni <ezannoni@redhat.com>	0.96.4
7f7c90
- Bump release number.
7f7c90
7f7c90
* Mon Feb 23 2004  Elena Zannoni <ezannoni@redhat.com>	0.96.3
7f7c90
- Bump release number.
7f7c90
7f7c90
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
7f7c90
- rebuilt
7f7c90
7f7c90
* Thu Jan 29 2004  Jeff Johnston <jjohnstn@redhat.com>	0.96.1
7f7c90
- Import version 0.96.
7f7c90
7f7c90
* Tue Jan 06 2004  Jeff Johnston <jjohnstn@redhat.com>	0.92.2
7f7c90
- Bump release number.
7f7c90
7f7c90
* Mon Oct 06 2003  Jeff Johnston <jjohnstn@redhat.com>	0.92.1
7f7c90
- Initial release