libunwind/libunwind.spec

149 lines
4.8 KiB
RPMSpec

Name: libunwind
Version: 1.8.1
Release: 1mamba
Summary: A portable and efficient C programming interface (API) to determine the call-chain of a program
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.nongnu.org/libunwind/
Source: https://github.com/libunwind/libunwind.git/v%{version}/libunwind-%{version}.tar.bz2
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: liblzma-devel
BuildRequires: libstdc++6-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
BuildRequires: libatomic_ops-devel
%description
libunwind implements a portable and efficient C programming interface (API) to determine the call-chain of a program. The API additionally provides the means to manipulate the preserved (callee-saved) state of each call-frame and to resume execution at any point in the call-chain (non-local goto). The API supports both local (same-process) and remote (across-process) operation. As such, the API is useful in a number of applications. Some examples include:
%package devel
Group: Development/Libraries
Summary: Static libraries and headers for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
libunwind implements a portable and efficient C programming interface (API) to determine the call-chain of a program. The API additionally provides the means to manipulate the preserved (callee-saved) state of each call-frame and to resume execution at any point in the call-chain (non-local goto). The API supports both local (same-process) and remote (across-process) operation. As such, the API is useful in a number of applications. Some examples include:
This package contains static libraries and header files needed for development.
%debug_package
%prep
%setup -q
autoreconf -f -i
%build
%configure \
CFLAGS="%{optflags} -DAO_USE_PTHREAD_DEFS=1" \
LDFLAGS="-latomic_ops"
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libunwind.so.*
%{_libdir}/libunwind-coredump.so.*
%{_libdir}/libunwind-ptrace.so.*
%{_libdir}/libunwind-setjmp.so.*
%ifarch %{ix86}
%{_libdir}/libunwind-x86.so.*
%endif
%ifarch x86_64
%{_libdir}/libunwind-x86_64.so.*
%endif
%ifarch arm
%{_libdir}/libunwind-arm.so.*
%endif
%ifarch aarch64
%{_libdir}/libunwind-aarch64.so.*
%endif
%dir %{_libexecdir}/libunwind
%{_libexecdir}/libunwind/*
%doc AUTHORS COPYING
%files devel
%defattr(-,root,root)
%{_includedir}/libunwind*.h
%{_includedir}/unwind*.h
%{_libdir}/libunwind.a
%{_libdir}/libunwind.so
%{_libdir}/libunwind-coredump.a
%{_libdir}/libunwind-coredump.so
%{_libdir}/libunwind-generic.a
%{_libdir}/libunwind-generic.so
%{_libdir}/libunwind-ptrace.a
%{_libdir}/libunwind-ptrace.so
%{_libdir}/libunwind-setjmp.a
%{_libdir}/libunwind-setjmp.so
%ifarch %{ix86}
%{_libdir}/libunwind-x86.a
%{_libdir}/libunwind-x86.so
%endif
%ifarch x86_64
%{_libdir}/libunwind-x86_64.a
%{_libdir}/libunwind-x86_64.so
%endif
%ifarch arm
%{_libdir}/libunwind-arm.a
%{_libdir}/libunwind-arm.so
%endif
%ifarch aarch64
%{_libdir}/libunwind-aarch64.a
%{_libdir}/libunwind-aarch64.so
%endif
%{_libdir}/pkgconfig/libunwind-coredump.pc
%{_libdir}/pkgconfig/libunwind-generic.pc
%{_libdir}/pkgconfig/libunwind-ptrace.pc
%{_libdir}/pkgconfig/libunwind-setjmp.pc
%{_libdir}/pkgconfig/libunwind.pc
%{_mandir}/man3/*
#%doc ChangeLog LICENSE NEWS README TODO
%changelog
* Mon May 06 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 1.8.1-1mamba
- update to 1.8.1
* Wed Dec 01 2021 Automatic Build System <autodist@mambasoft.it> 1.6.2-1mamba
- automatic version update by autodist
* Sat Nov 27 2021 Automatic Build System <autodist@mambasoft.it> 1.6.0-1mamba
- automatic version update by autodist
* Mon Nov 30 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.5.0-2mamba
- rebuilt with debug package
* Thu Nov 12 2020 Automatic Build System <autodist@mambasoft.it> 1.5.0-1mamba
- automatic update by autodist
* Mon Jan 28 2019 Automatic Build System <autodist@mambasoft.it> 1.3.1-1mamba
- automatic version update by autodist
* Sat Dec 02 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.1-2mamba
- arm: added patch to fix build failure with asm (Mesa 17)
* Mon Aug 07 2017 Automatic Build System <autodist@mambasoft.it> 1.2.1-1mamba
- automatic version update by autodist
* Mon Apr 10 2017 Automatic Build System <autodist@mambasoft.it> 1.2-1mamba
- automatic update by autodist
* Tue Oct 23 2012 Automatic Build System <autodist@mambasoft.it> 1.1-1mamba
- automatic version update by autodist
* Sat Nov 05 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.1-1mamba
- package created by autospec