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