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