]>
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 | |
e0511022 JP |
4 | Version: 12.0.1 |
5 | Release: 0.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 | |
e0511022 | 10 | # Source0-md5: a64cd16ed2c364e892fd46b243414833 |
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 |
4273f5a9 JB |
17 | BuildRequires: boost-devel >= 1.61.0 |
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 |
4273f5a9 | 25 | BuildRequires: tbb-devel >= 2018.6 |
4fe92e20 | 26 | BuildRequires: texlive-format-pdflatex |
e0511022 | 27 | Requires: elfutils >= 0.186 |
4273f5a9 | 28 | Requires: tbb >= 2018.6 |
b42727c2 | 29 | ExclusiveArch: %{ix86} %{x8664} x32 aarch64 ppc ppc64 aarch64 |
6638e92f JB |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31 | ||
32 | %description | |
33 | Dyninst is an Application Program Interface (API) to permit the | |
34 | insertion of code into a running program. The API also permits | |
35 | changing or removing subroutine calls from the application program. | |
36 | Run-time code changes are useful to support a variety of applications | |
37 | including debugging, performance monitoring, and to support composing | |
38 | applications out of existing packages. The goal of this API is to | |
39 | provide a machine independent interface to permit the creation of | |
40 | tools and applications that use run-time code patching. | |
41 | ||
42 | %description -l pl.UTF-8 | |
43 | Dyninst to API (interfejs programowy) pozwalający na wstawianie kodu | |
44 | do działającego programu. API pozwala także na zmianę lub usuwanie | |
45 | wywołań funkcji z programu aplikacji. Zmiany kodu w czasie działania | |
46 | są przydatne w wielu zastosowaniach, w tym diagnostyce, monitorowaniu | |
47 | wydajności oraz wsparciu składania aplikacji z istniejących pakietów. | |
48 | Celem tego API jest zapewnienie niezależnego od maszyny interfejsu | |
49 | pozwalającego na tworzenie narzędzi i aplikacji wykorzystujących | |
50 | modyfikowanie kodu w czasie działania. | |
51 | ||
52 | %package devel | |
53 | Summary: Header files for dyninst libraries | |
54 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek dyninst | |
55 | Group: Development/Libraries | |
56 | Requires: %{name} = %{version}-%{release} | |
4fe92e20 | 57 | Requires: libstdc++-devel >= 6:4.7 |
6638e92f JB |
58 | |
59 | %description devel | |
60 | Header files for dyninst libraries. | |
61 | ||
62 | %description devel -l pl.UTF-8 | |
63 | Pliki nagłówkowe bibliotek dyninst. | |
64 | ||
65 | %package static | |
66 | Summary: Static dyninst libraries | |
67 | Summary(pl.UTF-8): Statyczne biblioteki dyninst | |
68 | Group: Development/Libraries | |
69 | Requires: %{name}-devel = %{version}-%{release} | |
70 | ||
71 | %description static | |
72 | Static dyninst libraries. | |
73 | ||
74 | %description static -l pl.UTF-8 | |
75 | Statyczne biblioteki dyninst. | |
76 | ||
4fe92e20 JB |
77 | %package doc |
78 | Summary: Documentation for dyninst libraries | |
79 | Summary(pl.UTF-8): Dokumentacja do bibliotek dyninst | |
80 | Group: Documentation | |
81 | ||
82 | %description doc | |
83 | Documentation for dyninst libraries. | |
84 | ||
85 | %description doc -l pl.UTF-8 | |
86 | Dokumentacja do bibliotek dyninst. | |
87 | ||
6638e92f | 88 | %prep |
91c3c392 | 89 | %setup -q |
6638e92f JB |
90 | %patch0 -p1 |
91 | %patch1 -p1 | |
49d420e8 | 92 | %patch2 -p1 |
6638e92f | 93 | |
6638e92f | 94 | %build |
4fe92e20 JB |
95 | %cmake . \ |
96 | -DINSTALL_CMAKE_DIR:PATH=%{_libdir}/cmake/Dyninst \ | |
97 | -DINSTALL_DOC_DIR:PATH=%{_docdir}/dyninst \ | |
98 | -DINSTALL_INCLUDE_DIR:PATH=%{_includedir}/dyninst \ | |
99 | -DINSTALL_LIB_DIR:PATH=%{_libdir} \ | |
6638e92f | 100 | |
4fe92e20 | 101 | %{__make} |
6638e92f JB |
102 | |
103 | %install | |
104 | rm -rf $RPM_BUILD_ROOT | |
105 | ||
106 | %{__make} install \ | |
107 | DESTDIR=$RPM_BUILD_ROOT | |
108 | ||
2b3eb2da MK |
109 | # File from examples subdir |
110 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/cfg_to_dot | |
111 | # Not used binary and non-binary .db files | |
112 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/unstrip | |
113 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/*.db | |
114 | ||
6638e92f JB |
115 | %clean |
116 | rm -rf $RPM_BUILD_ROOT | |
117 | ||
118 | %post -p /sbin/ldconfig | |
119 | %postun -p /sbin/ldconfig | |
120 | ||
121 | %files | |
122 | %defattr(644,root,root,755) | |
770436bb | 123 | %doc COPYRIGHT CHANGELOG.md README.md |
676d1ad6 | 124 | %attr(755,root,root) %{_bindir}/codeCoverage |
91c3c392 | 125 | %attr(755,root,root) %{_bindir}/parseThat |
4fe92e20 | 126 | %attr(755,root,root) %{_libdir}/libdynC_API.so.*.*.* |
676d1ad6 | 127 | %attr(755,root,root) %ghost %{_libdir}/libdynC_API.so.10.1 |
6638e92f | 128 | %attr(755,root,root) %{_libdir}/libdynDwarf.so.*.*.* |
676d1ad6 | 129 | %attr(755,root,root) %ghost %{_libdir}/libdynDwarf.so.10.1 |
6638e92f | 130 | %attr(755,root,root) %{_libdir}/libdynElf.so.*.*.* |
676d1ad6 | 131 | %attr(755,root,root) %ghost %{_libdir}/libdynElf.so.10.1 |
6638e92f | 132 | %attr(755,root,root) %{_libdir}/libdyncommon.so.*.*.* |
676d1ad6 | 133 | %attr(755,root,root) %ghost %{_libdir}/libdyncommon.so.10.1 |
6638e92f | 134 | %attr(755,root,root) %{_libdir}/libdyninstAPI.so.*.*.* |
676d1ad6 | 135 | %attr(755,root,root) %ghost %{_libdir}/libdyninstAPI.so.10.1 |
6638e92f | 136 | %attr(755,root,root) %{_libdir}/libdyninstAPI_RT.so.*.*.* |
676d1ad6 | 137 | %attr(755,root,root) %ghost %{_libdir}/libdyninstAPI_RT.so.10.1 |
6638e92f | 138 | %attr(755,root,root) %{_libdir}/libinstructionAPI.so.*.*.* |
676d1ad6 | 139 | %attr(755,root,root) %ghost %{_libdir}/libinstructionAPI.so.10.1 |
6638e92f | 140 | %attr(755,root,root) %{_libdir}/libparseAPI.so.*.*.* |
676d1ad6 | 141 | %attr(755,root,root) %ghost %{_libdir}/libparseAPI.so.10.1 |
6638e92f | 142 | %attr(755,root,root) %{_libdir}/libpatchAPI.so.*.*.* |
676d1ad6 | 143 | %attr(755,root,root) %ghost %{_libdir}/libpatchAPI.so.10.1 |
6638e92f | 144 | %attr(755,root,root) %{_libdir}/libpcontrol.so.*.*.* |
676d1ad6 | 145 | %attr(755,root,root) %ghost %{_libdir}/libpcontrol.so.10.1 |
6638e92f | 146 | %attr(755,root,root) %{_libdir}/libstackwalk.so.*.*.* |
676d1ad6 | 147 | %attr(755,root,root) %ghost %{_libdir}/libstackwalk.so.10.1 |
6638e92f | 148 | %attr(755,root,root) %{_libdir}/libsymLite.so.*.*.* |
676d1ad6 | 149 | %attr(755,root,root) %ghost %{_libdir}/libsymLite.so.10.1 |
6638e92f | 150 | %attr(755,root,root) %{_libdir}/libsymtabAPI.so.*.*.* |
676d1ad6 | 151 | %attr(755,root,root) %ghost %{_libdir}/libsymtabAPI.so.10.1 |
6638e92f JB |
152 | |
153 | %files devel | |
154 | %defattr(644,root,root,755) | |
4fe92e20 | 155 | %attr(755,root,root) %{_libdir}/libdynC_API.so |
6638e92f JB |
156 | %attr(755,root,root) %{_libdir}/libdynDwarf.so |
157 | %attr(755,root,root) %{_libdir}/libdynElf.so | |
158 | %attr(755,root,root) %{_libdir}/libdyncommon.so | |
159 | %attr(755,root,root) %{_libdir}/libdyninstAPI.so | |
160 | %attr(755,root,root) %{_libdir}/libdyninstAPI_RT.so | |
676d1ad6 | 161 | %attr(755,root,root) %{_libdir}/libInst.so |
6638e92f JB |
162 | %attr(755,root,root) %{_libdir}/libinstructionAPI.so |
163 | %attr(755,root,root) %{_libdir}/libparseAPI.so | |
164 | %attr(755,root,root) %{_libdir}/libpatchAPI.so | |
165 | %attr(755,root,root) %{_libdir}/libpcontrol.so | |
166 | %attr(755,root,root) %{_libdir}/libstackwalk.so | |
167 | %attr(755,root,root) %{_libdir}/libsymLite.so | |
168 | %attr(755,root,root) %{_libdir}/libsymtabAPI.so | |
169 | %{_includedir}/dyninst | |
4fe92e20 | 170 | %{_libdir}/cmake/Dyninst |
6638e92f JB |
171 | |
172 | %files static | |
173 | %defattr(644,root,root,755) | |
174 | %{_libdir}/libdyninstAPI_RT.a | |
4fe92e20 JB |
175 | |
176 | %files doc | |
177 | %defattr(644,root,root,755) | |
178 | %{_docdir}/dyninst |