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