]>
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 | |
676d1ad6 | 4 | Version: 10.1.0 |
efd5770f | 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 | |
676d1ad6 | 11 | # Source0-md5: 3711fca820ceb8e76d5b026964c5029d |
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 | ||
2b3eb2da MK |
106 | # File from examples subdir |
107 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/cfg_to_dot | |
108 | # Not used binary and non-binary .db files | |
109 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/unstrip | |
110 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/*.db | |
111 | ||
6638e92f JB |
112 | %clean |
113 | rm -rf $RPM_BUILD_ROOT | |
114 | ||
115 | %post -p /sbin/ldconfig | |
116 | %postun -p /sbin/ldconfig | |
117 | ||
118 | %files | |
119 | %defattr(644,root,root,755) | |
770436bb | 120 | %doc COPYRIGHT CHANGELOG.md README.md |
676d1ad6 | 121 | %attr(755,root,root) %{_bindir}/codeCoverage |
91c3c392 | 122 | %attr(755,root,root) %{_bindir}/parseThat |
4fe92e20 | 123 | %attr(755,root,root) %{_libdir}/libdynC_API.so.*.*.* |
676d1ad6 | 124 | %attr(755,root,root) %ghost %{_libdir}/libdynC_API.so.10.1 |
6638e92f | 125 | %attr(755,root,root) %{_libdir}/libdynDwarf.so.*.*.* |
676d1ad6 | 126 | %attr(755,root,root) %ghost %{_libdir}/libdynDwarf.so.10.1 |
6638e92f | 127 | %attr(755,root,root) %{_libdir}/libdynElf.so.*.*.* |
676d1ad6 | 128 | %attr(755,root,root) %ghost %{_libdir}/libdynElf.so.10.1 |
6638e92f | 129 | %attr(755,root,root) %{_libdir}/libdyncommon.so.*.*.* |
676d1ad6 | 130 | %attr(755,root,root) %ghost %{_libdir}/libdyncommon.so.10.1 |
6638e92f | 131 | %attr(755,root,root) %{_libdir}/libdyninstAPI.so.*.*.* |
676d1ad6 | 132 | %attr(755,root,root) %ghost %{_libdir}/libdyninstAPI.so.10.1 |
6638e92f | 133 | %attr(755,root,root) %{_libdir}/libdyninstAPI_RT.so.*.*.* |
676d1ad6 | 134 | %attr(755,root,root) %ghost %{_libdir}/libdyninstAPI_RT.so.10.1 |
6638e92f | 135 | %attr(755,root,root) %{_libdir}/libinstructionAPI.so.*.*.* |
676d1ad6 | 136 | %attr(755,root,root) %ghost %{_libdir}/libinstructionAPI.so.10.1 |
6638e92f | 137 | %attr(755,root,root) %{_libdir}/libparseAPI.so.*.*.* |
676d1ad6 | 138 | %attr(755,root,root) %ghost %{_libdir}/libparseAPI.so.10.1 |
6638e92f | 139 | %attr(755,root,root) %{_libdir}/libpatchAPI.so.*.*.* |
676d1ad6 | 140 | %attr(755,root,root) %ghost %{_libdir}/libpatchAPI.so.10.1 |
6638e92f | 141 | %attr(755,root,root) %{_libdir}/libpcontrol.so.*.*.* |
676d1ad6 | 142 | %attr(755,root,root) %ghost %{_libdir}/libpcontrol.so.10.1 |
6638e92f | 143 | %attr(755,root,root) %{_libdir}/libstackwalk.so.*.*.* |
676d1ad6 | 144 | %attr(755,root,root) %ghost %{_libdir}/libstackwalk.so.10.1 |
6638e92f | 145 | %attr(755,root,root) %{_libdir}/libsymLite.so.*.*.* |
676d1ad6 | 146 | %attr(755,root,root) %ghost %{_libdir}/libsymLite.so.10.1 |
6638e92f | 147 | %attr(755,root,root) %{_libdir}/libsymtabAPI.so.*.*.* |
676d1ad6 | 148 | %attr(755,root,root) %ghost %{_libdir}/libsymtabAPI.so.10.1 |
6638e92f JB |
149 | |
150 | %files devel | |
151 | %defattr(644,root,root,755) | |
4fe92e20 | 152 | %attr(755,root,root) %{_libdir}/libdynC_API.so |
6638e92f JB |
153 | %attr(755,root,root) %{_libdir}/libdynDwarf.so |
154 | %attr(755,root,root) %{_libdir}/libdynElf.so | |
155 | %attr(755,root,root) %{_libdir}/libdyncommon.so | |
156 | %attr(755,root,root) %{_libdir}/libdyninstAPI.so | |
157 | %attr(755,root,root) %{_libdir}/libdyninstAPI_RT.so | |
676d1ad6 | 158 | %attr(755,root,root) %{_libdir}/libInst.so |
6638e92f JB |
159 | %attr(755,root,root) %{_libdir}/libinstructionAPI.so |
160 | %attr(755,root,root) %{_libdir}/libparseAPI.so | |
161 | %attr(755,root,root) %{_libdir}/libpatchAPI.so | |
162 | %attr(755,root,root) %{_libdir}/libpcontrol.so | |
163 | %attr(755,root,root) %{_libdir}/libstackwalk.so | |
164 | %attr(755,root,root) %{_libdir}/libsymLite.so | |
165 | %attr(755,root,root) %{_libdir}/libsymtabAPI.so | |
166 | %{_includedir}/dyninst | |
4fe92e20 | 167 | %{_libdir}/cmake/Dyninst |
6638e92f JB |
168 | |
169 | %files static | |
170 | %defattr(644,root,root,755) | |
171 | %{_libdir}/libdyninstAPI_RT.a | |
4fe92e20 JB |
172 | |
173 | %files doc | |
174 | %defattr(644,root,root,755) | |
175 | %{_docdir}/dyninst |