]>
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 | |
2f85a760 | 4 | Version: 7.0.1 |
8138752f JB |
5 | Release: 1 |
6 | License: BSD-like or MIT | |
7 | Group: Libraries | |
3a725518 | 8 | Source0: http://releases.llvm.org/%{version}/libunwind-%{version}.src.tar.xz |
2f85a760 | 9 | # Source0-md5: fe8c801dd79e087a6fa8d039390a47d0 |
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 | ||
b3f09f48 JB |
35 | %package static |
36 | Summary: Static LLVM libunwind library | |
37 | Summary(pl.UTF-8): Statyczna biblioteka LLVM libunwind | |
38 | Group: Development/Libraries | |
39 | Requires: %{name} = %{version}-%{release} | |
40 | ||
41 | %description static | |
42 | Static LLVM libunwind library. | |
43 | ||
44 | %description static -l pl.UTF-8 | |
45 | Statyczna biblioteka LLVM libunwind. | |
46 | ||
8138752f JB |
47 | %prep |
48 | %setup -q -n libunwind-%{version}.src | |
49 | ||
50 | %build | |
51 | install -d build | |
52 | cd build | |
53 | %cmake .. | |
54 | ||
55 | %{__make} | |
56 | ||
57 | %install | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %{__make} -C build install \ | |
61 | DESTDIR=$RPM_BUILD_ROOT | |
62 | ||
63 | install -d $RPM_BUILD_ROOT%{_includedir}/llvm-libunwind | |
64 | cp -p include/*.h $RPM_BUILD_ROOT%{_includedir}/llvm-libunwind | |
65 | ||
66 | %clean | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
69 | %post -p /sbin/ldconfig | |
70 | %postun -p /sbin/ldconfig | |
71 | ||
72 | %files | |
73 | %defattr(644,root,root,755) | |
74 | %attr(755,root,root) %{_libdir}/libunwind.so.*.* | |
75 | %attr(755,root,root) %ghost %{_libdir}/libunwind.so.1 | |
76 | ||
77 | %files devel | |
78 | %defattr(644,root,root,755) | |
79 | %attr(755,root,root) %{_libdir}/libunwind.so | |
80 | %{_includedir}/llvm-libunwind | |
b3f09f48 JB |
81 | |
82 | %files static | |
83 | %defattr(644,root,root,755) | |
84 | %{_libdir}/libunwind.a |