]>
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 | |
1052db1e | 4 | Version: 14.0.6 |
8138752f JB |
5 | Release: 1 |
6 | License: BSD-like or MIT | |
7 | Group: Libraries | |
3dd05896 | 8 | #Source0Download: https://github.com/llvm/llvm-project/releases/ |
3973eafc | 9 | Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/libunwind-%{version}.src.tar.xz |
1052db1e | 10 | # Source0-md5: b4ab520fd84066cde664eec95940de59 |
eb3b3bd9 JB |
11 | #Source1Download: https://github.com/llvm/llvm-project/releases/ |
12 | Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/libcxx-%{version}.src.tar.xz | |
1052db1e | 13 | # Source1-md5: 3d5630a8dcbec623172e57fae890351b |
eb3b3bd9 JB |
14 | #Source2Download: https://github.com/llvm/llvm-project/releases/ |
15 | Source2: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/llvm-%{version}.src.tar.xz | |
1052db1e | 16 | # Source2-md5: 80072c6a4be8b9adb60c6aac01f577db |
8138752f | 17 | URL: http://llvm.org/ |
eb3b3bd9 | 18 | BuildRequires: cmake >= 3.13.4 |
8138752f JB |
19 | BuildRequires: libstdc++-devel |
20 | BuildRequires: llvm-devel >= %{version} | |
21 | BuildRequires: rpmbuild(macros) >= 1.605 | |
55225523 JB |
22 | BuildRequires: tar >= 1:1.22 |
23 | BuildRequires: xz | |
8138752f JB |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %description | |
27 | LLVM libunwind implementation. | |
28 | ||
29 | %description -l pl.UTF-8 | |
30 | Implementacja biblioteki libunwind z projektu LLVM. | |
31 | ||
32 | %package devel | |
33 | Summary: Header file for LLVM libunwind implementation | |
34 | Summary(pl.UTF-8): Plik nagłówkowy implementacji LLVM libunwind | |
35 | Group: Development/Libraries | |
36 | Requires: %{name} = %{version}-%{release} | |
37 | ||
38 | %description devel | |
39 | Header file for LLVM libunwind implementation. | |
40 | ||
41 | %description devel -l pl.UTF-8 | |
42 | Plik nagłówkowy implementacji LLVM libunwind. | |
43 | ||
b3f09f48 JB |
44 | %package static |
45 | Summary: Static LLVM libunwind library | |
46 | Summary(pl.UTF-8): Statyczna biblioteka LLVM libunwind | |
47 | Group: Development/Libraries | |
48 | Requires: %{name} = %{version}-%{release} | |
49 | ||
50 | %description static | |
51 | Static LLVM libunwind library. | |
52 | ||
53 | %description static -l pl.UTF-8 | |
54 | Statyczna biblioteka LLVM libunwind. | |
55 | ||
8138752f | 56 | %prep |
eb3b3bd9 JB |
57 | %setup -q -c -a1 -a2 |
58 | ||
59 | %{__mv} libcxx-%{version}.src libcxx | |
60 | %{__mv} libunwind-%{version}.src libunwind | |
61 | %{__mv} llvm-%{version}.src llvm | |
8138752f JB |
62 | |
63 | %build | |
64 | install -d build | |
65 | cd build | |
eb3b3bd9 | 66 | %cmake ../libunwind |
8138752f JB |
67 | |
68 | %{__make} | |
69 | ||
70 | %install | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %{__make} -C build install \ | |
74 | DESTDIR=$RPM_BUILD_ROOT | |
75 | ||
76 | install -d $RPM_BUILD_ROOT%{_includedir}/llvm-libunwind | |
eb3b3bd9 | 77 | cp -p libunwind/include/*.h $RPM_BUILD_ROOT%{_includedir}/llvm-libunwind |
8138752f JB |
78 | |
79 | %clean | |
80 | rm -rf $RPM_BUILD_ROOT | |
81 | ||
82 | %post -p /sbin/ldconfig | |
83 | %postun -p /sbin/ldconfig | |
84 | ||
85 | %files | |
86 | %defattr(644,root,root,755) | |
87 | %attr(755,root,root) %{_libdir}/libunwind.so.*.* | |
88 | %attr(755,root,root) %ghost %{_libdir}/libunwind.so.1 | |
89 | ||
90 | %files devel | |
91 | %defattr(644,root,root,755) | |
92 | %attr(755,root,root) %{_libdir}/libunwind.so | |
93 | %{_includedir}/llvm-libunwind | |
b3f09f48 JB |
94 | |
95 | %files static | |
96 | %defattr(644,root,root,755) | |
97 | %{_libdir}/libunwind.a |