]>
Commit | Line | Data |
---|---|---|
6638e92f JB |
1 | Summary: API for Run-time Code Generation |
2 | Summary(pl.UTF-8): API do generowania kodu w czasie działania | |
3 | Name: dyninst | |
3aef0a88 JB |
4 | Version: 12.2.0 |
5 | Release: 1 | |
6638e92f JB |
6 | License: LGPL v2.1+ |
7 | Group: Libraries | |
91c3c392 JB |
8 | #Source0Download: https://github.com/dyninst/dyninst/releases |
9 | Source0: https://github.com/dyninst/dyninst/archive/v%{version}/%{name}-%{version}.tar.gz | |
3aef0a88 | 10 | # Source0-md5: fae0ab5eddb03990a5e196f21c95a349 |
6638e92f | 11 | Patch0: %{name}-libname.patch |
b42727c2 | 12 | Patch1: %{name}-x32.patch |
e0511022 | 13 | Patch2: %{name}-tbb.patch |
6c5c9610 | 14 | URL: https://dyninst.org/dyninst |
4fe92e20 | 15 | # libiberty |
6638e92f | 16 | BuildRequires: binutils-devel |
3aef0a88 | 17 | BuildRequires: boost-devel >= 1.70.0 |
4273f5a9 | 18 | BuildRequires: cmake >= 3.4.0 |
e0511022 | 19 | BuildRequires: elfutils-devel >= 0.186 |
6638e92f | 20 | BuildRequires: flex |
4273f5a9 | 21 | BuildRequires: libgomp-devel |
4fe92e20 | 22 | BuildRequires: libstdc++-devel >= 6:4.7 |
e0511022 | 23 | BuildRequires: rpmbuild(macros) >= 1.605 |
6638e92f | 24 | BuildRequires: sed >= 4.0 |
fe4c339c | 25 | BuildRequires: tbb-devel >= 2021.4 |
e0511022 | 26 | Requires: elfutils >= 0.186 |
fe4c339c | 27 | Requires: tbb >= 2021.4 |
3aef0a88 | 28 | Obsoletes: dyninst-doc < 12.2 |
b42727c2 | 29 | ExclusiveArch: %{ix86} %{x8664} x32 aarch64 ppc ppc64 aarch64 |
6638e92f JB |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31 | ||
fe4c339c JP |
32 | %define skip_post_check_so libparseAPI\.so.* |
33 | ||
6638e92f JB |
34 | %description |
35 | Dyninst is an Application Program Interface (API) to permit the | |
36 | insertion of code into a running program. The API also permits | |
37 | changing or removing subroutine calls from the application program. | |
38 | Run-time code changes are useful to support a variety of applications | |
39 | including debugging, performance monitoring, and to support composing | |
40 | applications out of existing packages. The goal of this API is to | |
41 | provide a machine independent interface to permit the creation of | |
42 | tools and applications that use run-time code patching. | |
43 | ||
44 | %description -l pl.UTF-8 | |
45 | Dyninst to API (interfejs programowy) pozwalający na wstawianie kodu | |
46 | do działającego programu. API pozwala także na zmianę lub usuwanie | |
47 | wywołań funkcji z programu aplikacji. Zmiany kodu w czasie działania | |
48 | są przydatne w wielu zastosowaniach, w tym diagnostyce, monitorowaniu | |
49 | wydajności oraz wsparciu składania aplikacji z istniejących pakietów. | |
50 | Celem tego API jest zapewnienie niezależnego od maszyny interfejsu | |
51 | pozwalającego na tworzenie narzędzi i aplikacji wykorzystujących | |
52 | modyfikowanie kodu w czasie działania. | |
53 | ||
54 | %package devel | |
55 | Summary: Header files for dyninst libraries | |
56 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek dyninst | |
57 | Group: Development/Libraries | |
58 | Requires: %{name} = %{version}-%{release} | |
4fe92e20 | 59 | Requires: libstdc++-devel >= 6:4.7 |
6638e92f JB |
60 | |
61 | %description devel | |
62 | Header files for dyninst libraries. | |
63 | ||
64 | %description devel -l pl.UTF-8 | |
65 | Pliki nagłówkowe bibliotek dyninst. | |
66 | ||
67 | %package static | |
68 | Summary: Static dyninst libraries | |
69 | Summary(pl.UTF-8): Statyczne biblioteki dyninst | |
70 | Group: Development/Libraries | |
71 | Requires: %{name}-devel = %{version}-%{release} | |
72 | ||
73 | %description static | |
74 | Static dyninst libraries. | |
75 | ||
76 | %description static -l pl.UTF-8 | |
77 | Statyczne biblioteki dyninst. | |
78 | ||
79 | %prep | |
91c3c392 | 80 | %setup -q |
6638e92f JB |
81 | %patch0 -p1 |
82 | %patch1 -p1 | |
49d420e8 | 83 | %patch2 -p1 |
6638e92f | 84 | |
6638e92f | 85 | %build |
fe4c339c | 86 | export CXXFLAGS="%{rpmcxxflags} -DTBB_DEFINE_STD_HASH_SPECIALIZATIONS" |
3aef0a88 JB |
87 | install -d build |
88 | cd build | |
89 | %cmake .. \ | |
4fe92e20 JB |
90 | -DINSTALL_CMAKE_DIR:PATH=%{_libdir}/cmake/Dyninst \ |
91 | -DINSTALL_DOC_DIR:PATH=%{_docdir}/dyninst \ | |
92 | -DINSTALL_INCLUDE_DIR:PATH=%{_includedir}/dyninst \ | |
93 | -DINSTALL_LIB_DIR:PATH=%{_libdir} \ | |
6638e92f | 94 | |
4fe92e20 | 95 | %{__make} |
6638e92f JB |
96 | |
97 | %install | |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
3aef0a88 | 100 | %{__make} -C build install \ |
6638e92f JB |
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) | |
770436bb | 111 | %doc COPYRIGHT CHANGELOG.md README.md |
91c3c392 | 112 | %attr(755,root,root) %{_bindir}/parseThat |
4fe92e20 | 113 | %attr(755,root,root) %{_libdir}/libdynC_API.so.*.*.* |
3aef0a88 | 114 | %attr(755,root,root) %ghost %{_libdir}/libdynC_API.so.12.2 |
6638e92f | 115 | %attr(755,root,root) %{_libdir}/libdynDwarf.so.*.*.* |
3aef0a88 | 116 | %attr(755,root,root) %ghost %{_libdir}/libdynDwarf.so.12.2 |
6638e92f | 117 | %attr(755,root,root) %{_libdir}/libdynElf.so.*.*.* |
3aef0a88 | 118 | %attr(755,root,root) %ghost %{_libdir}/libdynElf.so.12.2 |
6638e92f | 119 | %attr(755,root,root) %{_libdir}/libdyncommon.so.*.*.* |
3aef0a88 | 120 | %attr(755,root,root) %ghost %{_libdir}/libdyncommon.so.12.2 |
6638e92f | 121 | %attr(755,root,root) %{_libdir}/libdyninstAPI.so.*.*.* |
3aef0a88 | 122 | %attr(755,root,root) %ghost %{_libdir}/libdyninstAPI.so.12.2 |
6638e92f | 123 | %attr(755,root,root) %{_libdir}/libdyninstAPI_RT.so.*.*.* |
3aef0a88 | 124 | %attr(755,root,root) %ghost %{_libdir}/libdyninstAPI_RT.so.12.2 |
6638e92f | 125 | %attr(755,root,root) %{_libdir}/libinstructionAPI.so.*.*.* |
3aef0a88 | 126 | %attr(755,root,root) %ghost %{_libdir}/libinstructionAPI.so.12.2 |
6638e92f | 127 | %attr(755,root,root) %{_libdir}/libparseAPI.so.*.*.* |
3aef0a88 | 128 | %attr(755,root,root) %ghost %{_libdir}/libparseAPI.so.12.2 |
6638e92f | 129 | %attr(755,root,root) %{_libdir}/libpatchAPI.so.*.*.* |
3aef0a88 | 130 | %attr(755,root,root) %ghost %{_libdir}/libpatchAPI.so.12.2 |
6638e92f | 131 | %attr(755,root,root) %{_libdir}/libpcontrol.so.*.*.* |
3aef0a88 | 132 | %attr(755,root,root) %ghost %{_libdir}/libpcontrol.so.12.2 |
6638e92f | 133 | %attr(755,root,root) %{_libdir}/libstackwalk.so.*.*.* |
3aef0a88 | 134 | %attr(755,root,root) %ghost %{_libdir}/libstackwalk.so.12.2 |
6638e92f | 135 | %attr(755,root,root) %{_libdir}/libsymLite.so.*.*.* |
3aef0a88 | 136 | %attr(755,root,root) %ghost %{_libdir}/libsymLite.so.12.2 |
6638e92f | 137 | %attr(755,root,root) %{_libdir}/libsymtabAPI.so.*.*.* |
3aef0a88 | 138 | %attr(755,root,root) %ghost %{_libdir}/libsymtabAPI.so.12.2 |
6638e92f JB |
139 | |
140 | %files devel | |
141 | %defattr(644,root,root,755) | |
4fe92e20 | 142 | %attr(755,root,root) %{_libdir}/libdynC_API.so |
6638e92f JB |
143 | %attr(755,root,root) %{_libdir}/libdynDwarf.so |
144 | %attr(755,root,root) %{_libdir}/libdynElf.so | |
145 | %attr(755,root,root) %{_libdir}/libdyncommon.so | |
146 | %attr(755,root,root) %{_libdir}/libdyninstAPI.so | |
147 | %attr(755,root,root) %{_libdir}/libdyninstAPI_RT.so | |
148 | %attr(755,root,root) %{_libdir}/libinstructionAPI.so | |
149 | %attr(755,root,root) %{_libdir}/libparseAPI.so | |
150 | %attr(755,root,root) %{_libdir}/libpatchAPI.so | |
151 | %attr(755,root,root) %{_libdir}/libpcontrol.so | |
152 | %attr(755,root,root) %{_libdir}/libstackwalk.so | |
153 | %attr(755,root,root) %{_libdir}/libsymLite.so | |
154 | %attr(755,root,root) %{_libdir}/libsymtabAPI.so | |
155 | %{_includedir}/dyninst | |
4fe92e20 | 156 | %{_libdir}/cmake/Dyninst |
6638e92f JB |
157 | |
158 | %files static | |
159 | %defattr(644,root,root,755) | |
160 | %{_libdir}/libdyninstAPI_RT.a |