diff --git a/libunwind-1.8.0.tar.gz b/libunwind-1.8.0.tar.gz deleted file mode 100644 index 73387b239df97aec238917fb295dae3f620d681c..0000000000000000000000000000000000000000 Binary files a/libunwind-1.8.0.tar.gz and /dev/null differ diff --git a/libunwind-1.8.1.tar.gz b/libunwind-1.8.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..d4dd6b1b00eed3a77b07102142bff3b073f6a854 Binary files /dev/null and b/libunwind-1.8.1.tar.gz differ diff --git a/libunwind.spec b/libunwind.spec index b344da43cee6604b105e60339670054de67c2ad8..e3a394ad9ccbc8b9682e472ff5998ecdf5a2c411 100644 --- a/libunwind.spec +++ b/libunwind.spec @@ -1,17 +1,20 @@ +%bcond_with tests + Name: libunwind Epoch: 2 -Version: 1.8.0 -Release: 2 +Version: 1.8.1 +Release: 1 Summary: Libunwind provides a C ABI to determine the call-chain of a program -License: BSD -URL: http://savannah.nongnu.org/projects/libunwind -Source: http://download-mirror.savannah.gnu.org/releases/libunwind/libunwind-%{version}.tar.gz +License: MIT +URL: https://www.nongnu.org/libunwind/ +Source: https://github.com/libunwind/libunwind/releases/download/v%{version}/%{name}-%{version}.tar.gz Patch9000: riscv.patch ExclusiveArch: aarch64 %{ix86} x86_64 riscv64 ppc64le loongarch64 -BuildRequires: automake libtool autoconf texlive-latex2man gcc-c++ +BuildRequires: gcc-c++ +BuildRequires: /usr/bin/latex2man %description Libunwind defines a portable and efficient C programming interface (API) to @@ -33,12 +36,9 @@ This package contains development files for libunwind. %autosetup -n %{name}-%{version} -p1 %build -aclocal -libtoolize --force -autoheader -automake --add-missing -autoconf -%configure --enable-static --enable-shared --enable-setjmp=no +%global optflags %{optflags} -fcommon + +%configure --enable-static --enable-shared --enable-setjmp=no %{!?with_test:--disable-tests} %make_build %install @@ -56,22 +56,19 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libunwind-ptrace*.so* # fix multilib conflicts touch -r NEWS $RPM_BUILD_ROOT%{_includedir}/libunwind.h -%check -make check || true - -%pre +%if %{with tests} +# drop installed test programs +rm -fr %{buildroot}%{_libexecdir} -%preun - -%ldconfig_scriptlets +%check +%make_build check +%endif %files -%defattr(-,root,root) %license COPYING %{_libdir}/libunwind*.so.* %files devel -%defattr(-,root,root) %{_libdir}/pkgconfig/libunwind*.pc # does not get installed for REMOTE_ONLY targets - check it. %{_includedir}/unwind.h @@ -80,11 +77,15 @@ make check || true %{_libdir}/libunwind*.so %files help -%defattr(-,root,root) %doc README NEWS %{_mandir}/*/* %changelog +* Sun Sep 29 2024 Funda Wang - 2:1.8.1-1 +- update to 1.8.1 +- disable test build by default, as it produces error under aarch64 + (https://github.com/libunwind/libunwind/issues/788) + * Thu Sep 12 2024 liweigang - 2:1.8.0-2 - Type: - ID:NA diff --git a/libunwind.yaml b/libunwind.yaml index 75a741d9410d6dd6c58543bdb714fab5632d5bd5..59ee9b24c05bebf579f2ce051a1c42d827d98c11 100644 --- a/libunwind.yaml +++ b/libunwind.yaml @@ -1,4 +1,4 @@ -version_control: git -src_repo: https://git.savannah.gnu.org/git/libunwind.git -tag_prefix: ^v -seperator: . +version_control: github +src_repo: libunwind/libunwind +tag_prefix: ^v +separator: .