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