]>
Commit | Line | Data |
---|---|---|
8138752f JB |
1 | Summary: LLVM libunwind implementation |
2 | Summary(pl.UTF-8): Implementacja biblioteki libunwind z projektu LLVM | |
3 | Name: llvm-libunwind | |
34f76bdf | 4 | Version: 3.9.0 |
8138752f JB |
5 | Release: 1 |
6 | License: BSD-like or MIT | |
7 | Group: Libraries | |
8 | Source0: http://llvm.org/releases/%{version}/libunwind-%{version}.src.tar.xz | |
34f76bdf | 9 | # Source0-md5: 3e5c87c723a456be599727a444b1c166 |
8138752f | 10 | URL: http://llvm.org/ |
34f76bdf | 11 | BuildRequires: cmake >= 3.4.3 |
8138752f JB |
12 | BuildRequires: libstdc++-devel |
13 | BuildRequires: llvm-devel >= %{version} | |
14 | BuildRequires: rpmbuild(macros) >= 1.605 | |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
17 | %description | |
18 | LLVM libunwind implementation. | |
19 | ||
20 | %description -l pl.UTF-8 | |
21 | Implementacja biblioteki libunwind z projektu LLVM. | |
22 | ||
23 | %package devel | |
24 | Summary: Header file for LLVM libunwind implementation | |
25 | Summary(pl.UTF-8): Plik nagłówkowy implementacji LLVM libunwind | |
26 | Group: Development/Libraries | |
27 | Requires: %{name} = %{version}-%{release} | |
28 | ||
29 | %description devel | |
30 | Header file for LLVM libunwind implementation. | |
31 | ||
32 | %description devel -l pl.UTF-8 | |
33 | Plik nagłówkowy implementacji LLVM libunwind. | |
34 | ||
35 | %prep | |
36 | %setup -q -n libunwind-%{version}.src | |
37 | ||
38 | %build | |
39 | install -d build | |
40 | cd build | |
41 | %cmake .. | |
42 | ||
43 | %{__make} | |
44 | ||
45 | %install | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
48 | %{__make} -C build install \ | |
49 | DESTDIR=$RPM_BUILD_ROOT | |
50 | ||
51 | install -d $RPM_BUILD_ROOT%{_includedir}/llvm-libunwind | |
52 | cp -p include/*.h $RPM_BUILD_ROOT%{_includedir}/llvm-libunwind | |
53 | ||
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %post -p /sbin/ldconfig | |
58 | %postun -p /sbin/ldconfig | |
59 | ||
60 | %files | |
61 | %defattr(644,root,root,755) | |
62 | %attr(755,root,root) %{_libdir}/libunwind.so.*.* | |
63 | %attr(755,root,root) %ghost %{_libdir}/libunwind.so.1 | |
64 | ||
65 | %files devel | |
66 | %defattr(644,root,root,755) | |
67 | %attr(755,root,root) %{_libdir}/libunwind.so | |
68 | %{_includedir}/llvm-libunwind |