libunwind-vl.spec 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. Summary: An unwinding library
  2. Name: libunwind
  3. Version: 1.8.1
  4. Release: 1%{?_dist_release}
  5. Group: system
  6. Vendor: Project Vine
  7. Distribution: Vine Linux
  8. License: BSD
  9. URL: https://savannah.nongnu.org/projects/libunwind
  10. Source: https://github.com/libunwind/libunwind/releases/download/v%{version}/%{name}-%{version}.tar.gz
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. ExclusiveArch: %{ix86} x86_64 ia64
  13. BuildRequires: pkgconfig(zlib)
  14. # host != target would cause REMOTE_ONLY build even if building i386 on x86_64.
  15. %global _host %{_target_platform}
  16. %description
  17. Libunwind provides a C ABI to determine the call-chain of a program.
  18. %package devel
  19. Summary: Development package for libunwind
  20. Group: programming
  21. Requires: libunwind = %{version}-%{release}
  22. %description devel
  23. The libunwind-devel package includes the libraries and header files for
  24. libunwind.
  25. %debug_package
  26. %prep
  27. %autosetup -p1
  28. %build
  29. %global optflags %{optflags} -fcommon
  30. autoreconf -fiv
  31. %configure \
  32. --enable-static \
  33. --enable-shared \
  34. --enable-setjmp=no \
  35. %if 0%{?_with_check:1} || 0%{?_with_testsuite:1}
  36. --enable-tests \
  37. %else
  38. --disable-tests \
  39. %endif
  40. %{nil}
  41. %make_build
  42. %install
  43. %make_install
  44. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
  45. # [...] aren't really part of the libunwind API. They are implemented in
  46. # a archive library called libunwind-ptrace.a.
  47. mv -f $RPM_BUILD_ROOT%{_libdir}/libunwind-ptrace.a $RPM_BUILD_ROOT%{_libdir}/libunwind-ptrace.a-save
  48. rm -f $RPM_BUILD_ROOT%{_libdir}/libunwind*.a
  49. mv -f $RPM_BUILD_ROOT%{_libdir}/libunwind-ptrace.a-save $RPM_BUILD_ROOT%{_libdir}/libunwind-ptrace.a
  50. rm -f $RPM_BUILD_ROOT%{_libdir}/libunwind-ptrace*.so*
  51. %if 0%{?_with_check:1} || 0%{?_with_testsuite:1}
  52. %check
  53. echo ====================TESTING=========================
  54. make check || true
  55. echo ====================TESTING END=====================
  56. %else
  57. echo ====================TESTSUITE DISABLED=========================
  58. %endif
  59. %files
  60. %defattr(-,root,root)
  61. %license COPYING
  62. %doc README* NEWS
  63. %{_libdir}/*.so.*
  64. %files devel
  65. %defattr(-,root,root)
  66. %{_libdir}/*.so
  67. %{_libdir}/*.a
  68. %{_libdir}/pkgconfig/*.pc
  69. # <unwind.h> does not get installed for REMOTE_ONLY targets - check it.
  70. %{_includedir}/unwind.h
  71. %{_includedir}/libunwind*.h
  72. %changelog
  73. * Sat Jul 13 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.8.1-1
  74. - new upstream release.
  75. * Tue Sep 13 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.6.2-1
  76. - new upstream release.
  77. - dropped ldconfig scriptlets.
  78. * Thu Feb 18 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.5.0-1
  79. - new upstream release.
  80. * Sun Feb 18 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.1-1
  81. - new upstream release.
  82. - dropped all patches.
  83. * Wed Oct 24 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.1-1
  84. - update to 1.0.1
  85. * Tue Dec 2 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.98.6-2
  86. - ExclusiveArch set to %%{ix86} x86_64 ia64
  87. * Fri Nov 07 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.98.6-1
  88. - new upstream release
  89. - remove static libs
  90. * Fri Oct 03 2008 Shu KONNO <owa@bg.wakwak.com> 0.98.5-1vl5
  91. - applied new versioning policy
  92. * Sat Jun 09 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 0.98.5
  93. - initial build for Vine Linux