]>
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 |
a2221ab2 | 9 | Version: 1.2.1 |
b8dc68b8 | 10 | Release: 3 |
4ab0cf1c JB |
11 | License: MIT |
12 | Group: Libraries | |
f4772bfb | 13 | Source0: http://download.savannah.gnu.org/releases/libunwind/%{name}-%{version}.tar.gz |
a2221ab2 | 14 | # Source0-md5: 06ba9e60d92fd6f55cd9dadb084df19e |
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 |
7bb8270b | 27 | ExclusiveArch: %{ix86} %{x8664} x32 %{arm} hppa ia64 mips ppc ppc64 sh |
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 | |
40 | %define asuf %{_target_cpu} | |
41 | %endif | |
42 | %endif | |
43 | ||
4ab0cf1c JB |
44 | %description |
45 | The goal of the libunwind project is to define a portable and | |
46 | efficient C programming interface (API) to determine the call-chain | |
47 | of a program. | |
48 | ||
c79b9939 JR |
49 | %description -l pl.UTF-8 |
50 | Celem projektu libunwind jest zdefiniowanie przenośnego i wydajnego | |
51 | API w języku C do określania łańcucha wywołań w programie. | |
4ab0cf1c JB |
52 | |
53 | %package devel | |
54 | Summary: Header files for libunwind library | |
bbc714e1 | 55 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libunwind |
4ab0cf1c JB |
56 | Group: Development/Libraries |
57 | Requires: %{name} = %{version}-%{release} | |
39a6e594 | 58 | Requires: xz-devel |
4ab0cf1c JB |
59 | |
60 | %description devel | |
61 | Header files for libunwind library. | |
62 | ||
c79b9939 JR |
63 | %description devel -l pl.UTF-8 |
64 | Pliki nagłówkowe biblioteki libunwind. | |
4ab0cf1c JB |
65 | |
66 | %package static | |
67 | Summary: Static libunwind library | |
bbc714e1 | 68 | Summary(pl.UTF-8): Statyczna biblioteka libunwind |
4ab0cf1c JB |
69 | Group: Development/Libraries |
70 | Requires: %{name}-devel = %{version}-%{release} | |
71 | ||
72 | %description static | |
73 | Static libunwind library. | |
74 | ||
c79b9939 | 75 | %description static -l pl.UTF-8 |
4ab0cf1c JB |
76 | Statyczna biblioteka libunwind. |
77 | ||
78 | %prep | |
79 | %setup -q | |
33dafe23 | 80 | %patch0 -p1 |
7bb8270b | 81 | %patch1 -p1 |
4ab0cf1c JB |
82 | |
83 | %build | |
f4772bfb ŁK |
84 | %{__libtoolize} |
85 | %{__aclocal} | |
86 | %{__autoconf} | |
da114ef9 | 87 | %{__autoheader} |
f4772bfb | 88 | %{__automake} |
1ef5b95c | 89 | # what needs additional -fPIC? libtool already uses it for shared objects |
23e160a1 | 90 | %configure \ |
b8dc68b8 JB |
91 | CFLAGS="%{rpmcflags} -fPIC" \ |
92 | %{!?with_doc:--disable-documentation} | |
4ab0cf1c JB |
93 | %{__make} |
94 | ||
23e160a1 AM |
95 | %{?with_tests:%{__make} check} |
96 | ||
4ab0cf1c JB |
97 | %install |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
100 | %{__make} install \ | |
101 | DESTDIR=$RPM_BUILD_ROOT | |
102 | ||
103 | %clean | |
104 | rm -rf $RPM_BUILD_ROOT | |
105 | ||
106 | %post -p /sbin/ldconfig | |
107 | %postun -p /sbin/ldconfig | |
108 | ||
109 | %files | |
110 | %defattr(644,root,root,755) | |
111 | %doc AUTHORS COPYING ChangeLog NEWS README TODO | |
da114ef9 | 112 | %attr(755,root,root) %{_libdir}/libunwind.so.*.*.* |
2b3e47c6 | 113 | %attr(755,root,root) %ghost %{_libdir}/libunwind.so.8 |
39a6e594 JB |
114 | %attr(755,root,root) %{_libdir}/libunwind-coredump.so.*.*.* |
115 | %attr(755,root,root) %ghost %{_libdir}/libunwind-coredump.so.0 | |
116 | %attr(755,root,root) %{_libdir}/libunwind-ptrace.so.*.*.* | |
117 | %attr(755,root,root) %ghost %{_libdir}/libunwind-ptrace.so.0 | |
1ef5b95c JB |
118 | %attr(755,root,root) %{_libdir}/libunwind-setjmp.so.*.*.* |
119 | %attr(755,root,root) %ghost %{_libdir}/libunwind-setjmp.so.0 | |
da114ef9 | 120 | %attr(755,root,root) %{_libdir}/libunwind-%{asuf}.so.*.*.* |
2b3e47c6 | 121 | %attr(755,root,root) %ghost %{_libdir}/libunwind-%{asuf}.so.8 |
4ab0cf1c JB |
122 | |
123 | %files devel | |
124 | %defattr(644,root,root,755) | |
da114ef9 | 125 | %attr(755,root,root) %{_libdir}/libunwind.so |
39a6e594 | 126 | %attr(755,root,root) %{_libdir}/libunwind-coredump.so |
da114ef9 | 127 | %attr(755,root,root) %{_libdir}/libunwind-generic.so |
39a6e594 | 128 | %attr(755,root,root) %{_libdir}/libunwind-ptrace.so |
1ef5b95c | 129 | %attr(755,root,root) %{_libdir}/libunwind-setjmp.so |
da114ef9 JB |
130 | %attr(755,root,root) %{_libdir}/libunwind-%{asuf}.so |
131 | %{_libdir}/libunwind.la | |
39a6e594 JB |
132 | %{_libdir}/libunwind-coredump.la |
133 | %{_libdir}/libunwind-ptrace.la | |
1ef5b95c | 134 | %{_libdir}/libunwind-setjmp.la |
da114ef9 | 135 | %{_libdir}/libunwind-%{asuf}.la |
da114ef9 JB |
136 | %{_includedir}/libunwind*.h |
137 | %{_includedir}/unwind.h | |
39a6e594 JB |
138 | %{_pkgconfigdir}/libunwind.pc |
139 | %{_pkgconfigdir}/libunwind-coredump.pc | |
140 | %{_pkgconfigdir}/libunwind-generic.pc | |
141 | %{_pkgconfigdir}/libunwind-ptrace.pc | |
142 | %{_pkgconfigdir}/libunwind-setjmp.pc | |
a2221ab2 | 143 | %if %{with doc} |
da114ef9 JB |
144 | %{_mandir}/man3/_U_dyn_*.3* |
145 | %{_mandir}/man3/libunwind*.3* | |
146 | %{_mandir}/man3/unw_*.3* | |
a2221ab2 | 147 | %endif |
4ab0cf1c JB |
148 | |
149 | %files static | |
150 | %defattr(644,root,root,755) | |
da114ef9 | 151 | %{_libdir}/libunwind.a |
39a6e594 | 152 | %{_libdir}/libunwind-coredump.a |
da114ef9 | 153 | %{_libdir}/libunwind-generic.a |
39a6e594 | 154 | %{_libdir}/libunwind-ptrace.a |
1ef5b95c | 155 | %{_libdir}/libunwind-setjmp.a |
da114ef9 | 156 | %{_libdir}/libunwind-%{asuf}.a |