]>
Commit | Line | Data |
---|---|---|
1ef5b95c JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # perform "make check" (fails randomly) | |
b8dc68b8 | 4 | %bcond_without doc # man pages |
1ef5b95c | 5 | # |
4ab0cf1c | 6 | Summary: libunwind - a (mostly) platform-independent unwind API |
bbc714e1 | 7 | Summary(pl.UTF-8): libunwind - (prawie) niezależne od platformy API do rozwijania |
4ab0cf1c | 8 | Name: libunwind |
9660a944 | 9 | Version: 1.6.2 |
112886d5 | 10 | Release: 1 |
4ab0cf1c JB |
11 | License: MIT |
12 | Group: Libraries | |
2deec1fc | 13 | Source0: https://download.savannah.gnu.org/releases/libunwind/%{name}-%{version}.tar.gz |
9660a944 | 14 | # Source0-md5: f625b6a98ac1976116c71708a73dc44a |
39a6e594 | 15 | Patch0: %{name}-link.patch |
7bb8270b | 16 | Patch1: %{name}-x32.patch |
f4772bfb | 17 | URL: http://www.nongnu.org/libunwind/ |
39a6e594 | 18 | BuildRequires: autoconf >= 2.50 |
1ef5b95c | 19 | BuildRequires: automake >= 1.6 |
0b50d9fc | 20 | %ifarch %{x8664} |
8e766e79 | 21 | BuildRequires: binutils >= 2:2.15.94.0.2.2 |
1d04c85c | 22 | %endif |
b8dc68b8 | 23 | %{?with_doc:BuildRequires: latex2man} |
39a6e594 | 24 | BuildRequires: libtool >= 2:2.0 |
0b50d9fc | 25 | BuildRequires: rpmbuild(macros) >= 1.213 |
39a6e594 | 26 | BuildRequires: xz-devel |
112886d5 | 27 | ExclusiveArch: %{ix86} %{x8664} x32 %{arm} aarch64 hppa ia64 mips ppc ppc64 sh tilegx |
4ab0cf1c JB |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29 | ||
1ef5b95c JB |
30 | # some setjmp tricks expect non-redirected functions |
31 | %define filterout_cpp -D_FORTIFY_SOURCE=[0-9]+ | |
32 | ||
da114ef9 JB |
33 | # x86/x86_64/hppa/ia64 |
34 | %ifarch %{ix86} | |
35 | %define asuf x86 | |
36 | %else | |
7bb8270b | 37 | %ifarch %{x8664} x32 |
da114ef9 JB |
38 | %define asuf x86_64 |
39 | %else | |
43e732ec JP |
40 | %ifarch %{arm} |
41 | %define asuf arm | |
42 | %else | |
da114ef9 JB |
43 | %define asuf %{_target_cpu} |
44 | %endif | |
45 | %endif | |
43e732ec | 46 | %endif |
da114ef9 | 47 | |
4ab0cf1c JB |
48 | %description |
49 | The goal of the libunwind project is to define a portable and | |
50 | efficient C programming interface (API) to determine the call-chain | |
51 | of a program. | |
52 | ||
c79b9939 JR |
53 | %description -l pl.UTF-8 |
54 | Celem projektu libunwind jest zdefiniowanie przenośnego i wydajnego | |
55 | API w języku C do określania łańcucha wywołań w programie. | |
4ab0cf1c JB |
56 | |
57 | %package devel | |
58 | Summary: Header files for libunwind library | |
bbc714e1 | 59 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libunwind |
4ab0cf1c JB |
60 | Group: Development/Libraries |
61 | Requires: %{name} = %{version}-%{release} | |
39a6e594 | 62 | Requires: xz-devel |
4ab0cf1c JB |
63 | |
64 | %description devel | |
65 | Header files for libunwind library. | |
66 | ||
c79b9939 JR |
67 | %description devel -l pl.UTF-8 |
68 | Pliki nagłówkowe biblioteki libunwind. | |
4ab0cf1c JB |
69 | |
70 | %package static | |
71 | Summary: Static libunwind library | |
bbc714e1 | 72 | Summary(pl.UTF-8): Statyczna biblioteka libunwind |
4ab0cf1c JB |
73 | Group: Development/Libraries |
74 | Requires: %{name}-devel = %{version}-%{release} | |
75 | ||
76 | %description static | |
77 | Static libunwind library. | |
78 | ||
c79b9939 | 79 | %description static -l pl.UTF-8 |
4ab0cf1c JB |
80 | Statyczna biblioteka libunwind. |
81 | ||
82 | %prep | |
83 | %setup -q | |
33dafe23 | 84 | %patch0 -p1 |
7bb8270b | 85 | %patch1 -p1 |
4ab0cf1c JB |
86 | |
87 | %build | |
f4772bfb ŁK |
88 | %{__libtoolize} |
89 | %{__aclocal} | |
90 | %{__autoconf} | |
da114ef9 | 91 | %{__autoheader} |
f4772bfb | 92 | %{__automake} |
1ef5b95c | 93 | # what needs additional -fPIC? libtool already uses it for shared objects |
23e160a1 | 94 | %configure \ |
b8dc68b8 JB |
95 | CFLAGS="%{rpmcflags} -fPIC" \ |
96 | %{!?with_doc:--disable-documentation} | |
4ab0cf1c JB |
97 | %{__make} |
98 | ||
23e160a1 AM |
99 | %{?with_tests:%{__make} check} |
100 | ||
4ab0cf1c JB |
101 | %install |
102 | rm -rf $RPM_BUILD_ROOT | |
103 | ||
104 | %{__make} install \ | |
105 | DESTDIR=$RPM_BUILD_ROOT | |
106 | ||
107 | %clean | |
108 | rm -rf $RPM_BUILD_ROOT | |
109 | ||
110 | %post -p /sbin/ldconfig | |
111 | %postun -p /sbin/ldconfig | |
112 | ||
113 | %files | |
114 | %defattr(644,root,root,755) | |
115 | %doc AUTHORS COPYING ChangeLog NEWS README TODO | |
da114ef9 | 116 | %attr(755,root,root) %{_libdir}/libunwind.so.*.*.* |
2b3e47c6 | 117 | %attr(755,root,root) %ghost %{_libdir}/libunwind.so.8 |
39a6e594 JB |
118 | %attr(755,root,root) %{_libdir}/libunwind-coredump.so.*.*.* |
119 | %attr(755,root,root) %ghost %{_libdir}/libunwind-coredump.so.0 | |
120 | %attr(755,root,root) %{_libdir}/libunwind-ptrace.so.*.*.* | |
121 | %attr(755,root,root) %ghost %{_libdir}/libunwind-ptrace.so.0 | |
1ef5b95c JB |
122 | %attr(755,root,root) %{_libdir}/libunwind-setjmp.so.*.*.* |
123 | %attr(755,root,root) %ghost %{_libdir}/libunwind-setjmp.so.0 | |
da114ef9 | 124 | %attr(755,root,root) %{_libdir}/libunwind-%{asuf}.so.*.*.* |
2b3e47c6 | 125 | %attr(755,root,root) %ghost %{_libdir}/libunwind-%{asuf}.so.8 |
4ab0cf1c JB |
126 | |
127 | %files devel | |
128 | %defattr(644,root,root,755) | |
da114ef9 | 129 | %attr(755,root,root) %{_libdir}/libunwind.so |
39a6e594 | 130 | %attr(755,root,root) %{_libdir}/libunwind-coredump.so |
da114ef9 | 131 | %attr(755,root,root) %{_libdir}/libunwind-generic.so |
39a6e594 | 132 | %attr(755,root,root) %{_libdir}/libunwind-ptrace.so |
1ef5b95c | 133 | %attr(755,root,root) %{_libdir}/libunwind-setjmp.so |
da114ef9 JB |
134 | %attr(755,root,root) %{_libdir}/libunwind-%{asuf}.so |
135 | %{_libdir}/libunwind.la | |
39a6e594 JB |
136 | %{_libdir}/libunwind-coredump.la |
137 | %{_libdir}/libunwind-ptrace.la | |
1ef5b95c | 138 | %{_libdir}/libunwind-setjmp.la |
da114ef9 | 139 | %{_libdir}/libunwind-%{asuf}.la |
da114ef9 JB |
140 | %{_includedir}/libunwind*.h |
141 | %{_includedir}/unwind.h | |
39a6e594 JB |
142 | %{_pkgconfigdir}/libunwind.pc |
143 | %{_pkgconfigdir}/libunwind-coredump.pc | |
144 | %{_pkgconfigdir}/libunwind-generic.pc | |
145 | %{_pkgconfigdir}/libunwind-ptrace.pc | |
146 | %{_pkgconfigdir}/libunwind-setjmp.pc | |
a2221ab2 | 147 | %if %{with doc} |
da114ef9 JB |
148 | %{_mandir}/man3/_U_dyn_*.3* |
149 | %{_mandir}/man3/libunwind*.3* | |
150 | %{_mandir}/man3/unw_*.3* | |
a2221ab2 | 151 | %endif |
4ab0cf1c JB |
152 | |
153 | %files static | |
154 | %defattr(644,root,root,755) | |
da114ef9 | 155 | %{_libdir}/libunwind.a |
39a6e594 | 156 | %{_libdir}/libunwind-coredump.a |
da114ef9 | 157 | %{_libdir}/libunwind-generic.a |
39a6e594 | 158 | %{_libdir}/libunwind-ptrace.a |
1ef5b95c | 159 | %{_libdir}/libunwind-setjmp.a |
da114ef9 | 160 | %{_libdir}/libunwind-%{asuf}.a |