]>
Commit | Line | Data |
---|---|---|
4ab0cf1c | 1 | Summary: libunwind - a (mostly) platform-independent unwind API |
bbc714e1 | 2 | Summary(pl.UTF-8): libunwind - (prawie) niezależne od platformy API do rozwijania |
4ab0cf1c | 3 | Name: libunwind |
f4772bfb | 4 | Version: 0.98.6 |
f5c73607 | 5 | Release: 1 |
4ab0cf1c JB |
6 | License: MIT |
7 | Group: Libraries | |
f4772bfb ŁK |
8 | Source0: http://download.savannah.gnu.org/releases/libunwind/%{name}-%{version}.tar.gz |
9 | # Source0-md5: dbe360f4ffabfbaf937dccf2b383fff9 | |
10 | URL: http://www.nongnu.org/libunwind/ | |
11 | BuildRequires: autoconf | |
da114ef9 | 12 | BuildRequires: automake >= 1.6 |
0b50d9fc | 13 | %ifarch %{x8664} |
8e766e79 | 14 | BuildRequires: binutils >= 2:2.15.94.0.2.2 |
1d04c85c | 15 | %endif |
f4772bfb | 16 | BuildRequires: libtool |
0b50d9fc JB |
17 | BuildRequires: rpmbuild(macros) >= 1.213 |
18 | ExclusiveArch: %{ix86} %{x8664} hppa ia64 | |
4ab0cf1c JB |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
da114ef9 JB |
21 | # x86/x86_64/hppa/ia64 |
22 | %ifarch %{ix86} | |
23 | %define asuf x86 | |
24 | %else | |
25 | %ifarch %{x8664} | |
26 | %define asuf x86_64 | |
27 | %else | |
28 | %define asuf %{_target_cpu} | |
29 | %endif | |
30 | %endif | |
31 | ||
4ab0cf1c JB |
32 | %description |
33 | The goal of the libunwind project is to define a portable and | |
34 | efficient C programming interface (API) to determine the call-chain | |
35 | of a program. | |
36 | ||
c79b9939 JR |
37 | %description -l pl.UTF-8 |
38 | Celem projektu libunwind jest zdefiniowanie przenośnego i wydajnego | |
39 | API w języku C do określania łańcucha wywołań w programie. | |
4ab0cf1c JB |
40 | |
41 | %package devel | |
42 | Summary: Header files for libunwind library | |
bbc714e1 | 43 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libunwind |
4ab0cf1c JB |
44 | Group: Development/Libraries |
45 | Requires: %{name} = %{version}-%{release} | |
46 | ||
47 | %description devel | |
48 | Header files for libunwind library. | |
49 | ||
c79b9939 JR |
50 | %description devel -l pl.UTF-8 |
51 | Pliki nagłówkowe biblioteki libunwind. | |
4ab0cf1c JB |
52 | |
53 | %package static | |
54 | Summary: Static libunwind library | |
bbc714e1 | 55 | Summary(pl.UTF-8): Statyczna biblioteka libunwind |
4ab0cf1c JB |
56 | Group: Development/Libraries |
57 | Requires: %{name}-devel = %{version}-%{release} | |
58 | ||
59 | %description static | |
60 | Static libunwind library. | |
61 | ||
c79b9939 | 62 | %description static -l pl.UTF-8 |
4ab0cf1c JB |
63 | Statyczna biblioteka libunwind. |
64 | ||
65 | %prep | |
66 | %setup -q | |
67 | ||
68 | %build | |
f4772bfb ŁK |
69 | %{__libtoolize} |
70 | %{__aclocal} | |
71 | %{__autoconf} | |
da114ef9 | 72 | %{__autoheader} |
f4772bfb | 73 | %{__automake} |
4ab0cf1c JB |
74 | %configure |
75 | %{__make} | |
76 | ||
77 | %install | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
80 | %{__make} install \ | |
81 | DESTDIR=$RPM_BUILD_ROOT | |
82 | ||
83 | %clean | |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
86 | %post -p /sbin/ldconfig | |
87 | %postun -p /sbin/ldconfig | |
88 | ||
89 | %files | |
90 | %defattr(644,root,root,755) | |
91 | %doc AUTHORS COPYING ChangeLog NEWS README TODO | |
da114ef9 JB |
92 | %attr(755,root,root) %{_libdir}/libunwind.so.*.*.* |
93 | %attr(755,root,root) %ghost %{_libdir}/libunwind.so.7 | |
94 | %attr(755,root,root) %{_libdir}/libunwind-setjmp.so.*.*.* | |
95 | %attr(755,root,root) %ghost %{_libdir}/libunwind-setjmp.so.0 | |
96 | %attr(755,root,root) %{_libdir}/libunwind-%{asuf}.so.*.*.* | |
97 | %attr(755,root,root) %ghost %{_libdir}/libunwind-%{asuf}.so.7 | |
4ab0cf1c JB |
98 | |
99 | %files devel | |
100 | %defattr(644,root,root,755) | |
da114ef9 JB |
101 | %attr(755,root,root) %{_libdir}/libunwind.so |
102 | %attr(755,root,root) %{_libdir}/libunwind-setjmp.so | |
103 | %attr(755,root,root) %{_libdir}/libunwind-generic.so | |
104 | %attr(755,root,root) %{_libdir}/libunwind-%{asuf}.so | |
105 | %{_libdir}/libunwind.la | |
106 | %{_libdir}/libunwind-setjmp.la | |
107 | %{_libdir}/libunwind-%{asuf}.la | |
108 | # static-only | |
109 | %{_libdir}/libunwind-ptrace.a | |
110 | %{_includedir}/libunwind*.h | |
111 | %{_includedir}/unwind.h | |
112 | %{_mandir}/man3/_U_dyn_*.3* | |
113 | %{_mandir}/man3/libunwind*.3* | |
114 | %{_mandir}/man3/unw_*.3* | |
4ab0cf1c JB |
115 | |
116 | %files static | |
117 | %defattr(644,root,root,755) | |
da114ef9 JB |
118 | %{_libdir}/libunwind.a |
119 | %{_libdir}/libunwind-setjmp.a | |
120 | %{_libdir}/libunwind-generic.a | |
121 | %{_libdir}/libunwind-%{asuf}.a |