1 | Summary: An unwinding library |
---|
2 | Name: libunwind |
---|
3 | Version: 1.2.1 |
---|
4 | Release: 1%{?_dist_release} |
---|
5 | License: BSD |
---|
6 | Group: System Environment/Libraries |
---|
7 | URL: http://savannah.nongnu.org/projects/libunwind |
---|
8 | Source: http://download.savannah.nongnu.org/releases/libunwind/%{name}-%{version}.tar.gz |
---|
9 | |
---|
10 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
11 | |
---|
12 | ExclusiveArch: %{ix86} x86_64 ia64 |
---|
13 | |
---|
14 | %description |
---|
15 | Libunwind provides a C ABI to determine the call-chain of a program. |
---|
16 | |
---|
17 | %package devel |
---|
18 | Summary: Development package for libunwind |
---|
19 | Group: Development/Libraries |
---|
20 | Requires: libunwind = %{version}-%{release} |
---|
21 | |
---|
22 | %description devel |
---|
23 | The libunwind-devel package includes the libraries and header files for |
---|
24 | libunwind. |
---|
25 | |
---|
26 | %prep |
---|
27 | %setup -q |
---|
28 | |
---|
29 | %build |
---|
30 | %configure --enable-static --enable-shared --enable-setjmp=no |
---|
31 | %__make %{?_smp_mflags} |
---|
32 | |
---|
33 | %install |
---|
34 | rm -rf $RPM_BUILD_ROOT |
---|
35 | %makeinstall |
---|
36 | |
---|
37 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' |
---|
38 | |
---|
39 | # [...] aren't really part of the libunwind API. They are implemented in |
---|
40 | # a archive library called libunwind-ptrace.a. |
---|
41 | mv -f $RPM_BUILD_ROOT%{_libdir}/libunwind-ptrace.a $RPM_BUILD_ROOT%{_libdir}/libunwind-ptrace.a-save |
---|
42 | rm -f $RPM_BUILD_ROOT%{_libdir}/libunwind*.a |
---|
43 | mv -f $RPM_BUILD_ROOT%{_libdir}/libunwind-ptrace.a-save $RPM_BUILD_ROOT%{_libdir}/libunwind-ptrace.a |
---|
44 | rm -f $RPM_BUILD_ROOT%{_libdir}/libunwind-ptrace*.so* |
---|
45 | |
---|
46 | %clean |
---|
47 | rm -rf $RPM_BUILD_ROOT |
---|
48 | |
---|
49 | %post -p /sbin/ldconfig |
---|
50 | |
---|
51 | %postun -p /sbin/ldconfig |
---|
52 | |
---|
53 | %files |
---|
54 | %defattr(-,root,root) |
---|
55 | %doc COPYING README NEWS |
---|
56 | %{_libdir}/libunwind*.so.* |
---|
57 | |
---|
58 | %files devel |
---|
59 | %defattr(-,root,root) |
---|
60 | %{_libdir}/libunwind*.so |
---|
61 | %{_libdir}/libunwind-ptrace.a |
---|
62 | %{_libdir}/pkgconfig/libunwind*.pc |
---|
63 | # <unwind.h> does not get installed for REMOTE_ONLY targets - check it. |
---|
64 | %{_includedir}/unwind.h |
---|
65 | %{_includedir}/libunwind*.h |
---|
66 | |
---|
67 | %changelog |
---|
68 | * Sun Feb 18 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.1-1 |
---|
69 | - new upstream release. |
---|
70 | - dropped all patches. |
---|
71 | |
---|
72 | * Wed Oct 24 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.1-1 |
---|
73 | - update to 1.0.1 |
---|
74 | |
---|
75 | * Tue Dec 2 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.98.6-2 |
---|
76 | - ExclusiveArch set to %%{ix86} x86_64 ia64 |
---|
77 | |
---|
78 | * Fri Nov 07 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.98.6-1 |
---|
79 | - new upstream release |
---|
80 | - remove static libs |
---|
81 | |
---|
82 | * Fri Oct 03 2008 Shu KONNO <owa@bg.wakwak.com> 0.98.5-1vl5 |
---|
83 | - applied new versioning policy |
---|
84 | |
---|
85 | * Sat Jun 09 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 0.98.5 |
---|
86 | - initial build for Vine Linux |
---|