]>
Commit | Line | Data |
---|---|---|
7560dceb JP |
1 | # TODO: |
2 | # - package jupyter files | |
ef8f36a5 JB |
3 | # |
4 | # Conditional build: | |
8bec3f09 | 5 | %bcond_without doc # documentation build |
97c167ee | 6 | %bcond_with publican # publican guides build [as of 3.0 not rebuilt automatically, PDFs are included] |
1651fd5a | 7 | %bcond_without crash # crash extension |
c15371b4 | 8 | %bcond_without dyninst # dyninst support |
8bec3f09 | 9 | %bcond_without java # Java runtime support |
07f4762f JB |
10 | %bcond_without python2 # Python 2.x runtime support |
11 | %bcond_without python3 # Python 3.x runtime support | |
ef8f36a5 | 12 | %bcond_with rpm5 # build with rpm5 |
7a86387a | 13 | |
104281fd | 14 | %ifnarch %{ix86} %{x8664} x32 alpha %{arm} ia64 ppc64 s390 s390x |
1651fd5a JB |
15 | %undefine with_crash |
16 | %endif | |
923afaa0 | 17 | %ifnarch %{ix86} %{x8664} x32 ppc ppc64 aarch64 |
c15371b4 JB |
18 | %undefine with_dyninst |
19 | %endif | |
60f1f91f JP |
20 | |
21 | %{?use_default_jdk} | |
22 | ||
aa39e90e | 23 | Summary: Instrumentation System |
7ad1ccd0 | 24 | Summary(pl.UTF-8): System oprzyrządowania |
aa39e90e | 25 | Name: systemtap |
7560dceb | 26 | Version: 4.9 |
54ada4b8 | 27 | Release: 2 |
839ed024 | 28 | License: GPL v2+ |
aa39e90e | 29 | Group: Base |
fcc0f9e6 | 30 | Source0: ftp://sourceware.org/pub/systemtap/releases/%{name}-%{version}.tar.gz |
7560dceb | 31 | # Source0-md5: 32734fa4c4e240f5345fba244de1034c |
7a86387a | 32 | Source1: %{name}.tmpfiles |
8bec3f09 | 33 | Source2: stap-server.tmpfiles |
8f034825 | 34 | Patch0: %{name}-dyninst.patch |
ef8f36a5 JB |
35 | Patch1: %{name}-systemd.patch |
36 | Patch2: %{name}-rpm5-support.patch | |
ff9bc29b | 37 | URL: http://sourceware.org/systemtap/ |
8bec3f09 | 38 | BuildRequires: autoconf >= 2.63 |
60a0430a | 39 | BuildRequires: automake |
099db71a | 40 | BuildRequires: avahi-devel |
8bec3f09 | 41 | BuildRequires: boost-devel |
1651fd5a | 42 | %{?with_crash:BuildRequires: crash-devel} |
8bec3f09 | 43 | BuildRequires: docbook-dtd412-xml |
c15371b4 | 44 | %{?with_dyninst:BuildRequires: dyninst-devel >= 8.0} |
8bec3f09 | 45 | BuildRequires: elfutils-devel >= 0.148 |
67274bfd | 46 | BuildRequires: elfutils-debuginfod-devel >= 0.148 |
e75a4152 JB |
47 | BuildRequires: gettext-devel >= 0.19.4 |
48 | BuildRequires: gettext-tools >= 0.19.4 | |
a29198fa | 49 | BuildRequires: glib2-devel >= 2.0 |
07f4762f | 50 | BuildRequires: json-c-devel >= 0.12 |
e4485057 | 51 | %{?with_java:%buildrequires_jdk} |
c15371b4 JB |
52 | %if %{with dyninst} || %{with java} |
53 | BuildRequires: libselinux-devel | |
54 | %endif | |
07f4762f | 55 | BuildRequires: libstdc++-devel >= 6:4.5 |
e7f20467 JB |
56 | BuildRequires: libvirt-devel >= 1.0.2 |
57 | BuildRequires: libxml2-devel >= 2.0 | |
aa39e90e | 58 | BuildRequires: mysql-devel |
97c167ee | 59 | BuildRequires: ncurses-devel |
7cbb091d | 60 | BuildRequires: ncurses-ext-devel |
8bec3f09 | 61 | BuildRequires: nss-devel >= 3 |
7af1a693 | 62 | BuildRequires: pkgconfig |
07f4762f JB |
63 | %if %{with python2} |
64 | BuildRequires: python-devel >= 1:2.6 | |
65 | BuildRequires: python-setuptools | |
66 | %endif | |
67 | %if %{with python3} | |
68 | BuildRequires: python3-devel >= 1:3.2 | |
69 | BuildRequires: python3-setuptools | |
70 | %endif | |
97c167ee | 71 | BuildRequires: readline-devel |
bc044f75 | 72 | BuildRequires: rpm-devel |
97c167ee | 73 | %{?with_java:BuildRequires: rpm-javaprov} |
fa83958d | 74 | BuildRequires: rpm-pythonprov |
60f1f91f | 75 | BuildRequires: rpmbuild(macros) >= 2.021 |
07f4762f | 76 | BuildRequires: sqlite3-devel >= 3.7 |
8bec3f09 JB |
77 | BuildRequires: xmlto |
78 | %if %{with doc} | |
79 | BuildRequires: latex2html | |
80 | %{?with_publican:BuildRequires: publican} | |
81 | BuildRequires: texlive-dvips | |
82 | BuildRequires: texlive-fonts-bitstream | |
83 | BuildRequires: texlive-fonts-type1-bitstream | |
099db71a | 84 | BuildRequires: texlive-latex |
7af1a693 ER |
85 | BuildRequires: texlive-latex-psnfss |
86 | BuildRequires: texlive-xetex | |
8bec3f09 JB |
87 | %endif |
88 | # let base mean client+local development package | |
89 | Requires: %{name}-client = %{version}-%{release} | |
90 | Requires: %{name}-devel = %{version}-%{release} | |
aa39e90e AM |
91 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
92 | ||
93 | %description | |
94 | SystemTap is an instrumentation system for systems running Linux 2.6. | |
95 | Developers can write instrumentation to collect data on the operation | |
8bec3f09 JB |
96 | of the system. The base systemtap package provides the components |
97 | needed to locally develop and execute systemtap script. | |
aa39e90e | 98 | |
3bf8b266 JR |
99 | %description -l pl.UTF-8 |
100 | SystemTap to system oprzyrządowania dla systemów opartych na Linuksie | |
101 | 2.6. Programiści mogą pisać narzędzia do zbierania danych dotyczących | |
8bec3f09 JB |
102 | operacji w systemie. Główny pakiet dostarcza komponenty niezbędne do |
103 | lokalnego tworzenia i wykonywania skryptów systemtap. | |
099db71a AM |
104 | |
105 | %package runtime | |
106 | Summary: Programmable system-wide instrumentation system - runtime | |
8bec3f09 JB |
107 | Summary(pl.UTF-8): Programowalny systemowy system oprzyrządowania - środowisko uruchomieniowe |
108 | Group: Applications/System | |
07f4762f | 109 | Requires: json-c >= 0.12 |
099db71a AM |
110 | |
111 | %description runtime | |
112 | SystemTap runtime contains the components needed to execute a | |
113 | systemtap script that was already compiled into a module using a local | |
114 | or remote systemtap-devel installation. | |
115 | ||
8bec3f09 JB |
116 | %description runtime -l pl.UTF-8 |
117 | Środowisko uruchomieniowe SystemTap zawiera komponenty niezbędne do | |
118 | uruchomienia skryptu systemtap, który został już wkompilowany do | |
119 | modułu przy użyciu lokalnej lub zdalnej instalacji systemtap-devel. | |
120 | ||
121 | %package runtime-java | |
122 | Summary: SystemTap Java runtime support | |
123 | Summary(pl.UTF-8): Obsługa Javy dla środowiska uruchomieniowego SystemTap | |
124 | Group: Libraries | |
125 | Requires: %{name}-runtime = %{version}-%{release} | |
8bec3f09 JB |
126 | Requires: byteman > 2.0 |
127 | ||
128 | %description runtime-java | |
129 | This package includes support files needed to run systemtap scripts | |
130 | that probe Java processes running on the OpenJDK 1.6 and OpenJDK 1.7 | |
131 | runtimes using Byteman. | |
132 | ||
133 | %description runtime-java -l pl.UTF-8 | |
134 | Ten pakiet zawiera pliki niezbędne do uruchamiania skryptów systemtap | |
07f4762f JB |
135 | sondujących procesy Javy działające w środowiskach OpenJDK 1.6 i |
136 | OpenJDK 1.7 przy użyciu Bytemana. | |
137 | ||
138 | %package runtime-python2 | |
139 | Summary: SystemTap Python 2 Runtime Support | |
140 | Summary(pl.UTF-8): Obsługa Pythona 2 dla środowiska uruchomieniowego SystemTap | |
141 | Group: Development/Tools | |
142 | Requires: %{name}-runtime = %{version}-%{release} | |
143 | Requires: python-modules >= 1:2.6 | |
144 | ||
145 | %description runtime-python2 | |
146 | This package includes support files needed to run systemtap scripts | |
147 | that probe Python 2 processes. | |
148 | ||
149 | %description runtime-python2 -l pl.UTF-8 | |
150 | Ten pakiet zawiera pliki niezbędne do uruchamiania skryptów systemtap | |
151 | sondujących procesy Pythona 2. | |
152 | ||
153 | %package runtime-python3 | |
154 | Summary: SystemTap Python 3 Runtime Support | |
155 | Summary(pl.UTF-8): Obsługa Pythona 3 dla środowiska uruchomieniowego SystemTap | |
156 | Group: Development/Tools | |
157 | Requires: %{name}-runtime = %{version}-%{release} | |
158 | Requires: python3-modules >= 1:3.2 | |
159 | ||
160 | %description runtime-python3 | |
161 | This package includes support files needed to run systemtap scripts | |
162 | that probe Python 3 processes. | |
163 | ||
164 | %description runtime-python3 -l pl.UTF-8 | |
165 | Ten pakiet zawiera pliki niezbędne do uruchamiania skryptów systemtap | |
166 | sondujących procesy Pythona 3. | |
8bec3f09 | 167 | |
099db71a AM |
168 | %package client |
169 | Summary: Programmable system-wide instrumentation system - client | |
8bec3f09 JB |
170 | Summary(pl.UTF-8): Programowalny systemowy system oprzyrządowania - klient |
171 | Group: Applications/System | |
172 | Requires: %{name}-runtime = %{version}-%{release} | |
099db71a AM |
173 | Requires: coreutils |
174 | Requires: grep | |
e7f20467 | 175 | Requires: libvirt >= 1.0.2 |
099db71a AM |
176 | Requires: openssh-clients |
177 | Requires: sed | |
099db71a AM |
178 | Requires: unzip |
179 | Requires: zip | |
180 | ||
181 | %description client | |
8bec3f09 JB |
182 | This package provides the components needed to develop systemtap |
183 | scripts and compile them using a local systemtap-devel or a remote | |
184 | systemtap-server installation, then run them using a local or remote | |
185 | systemtap-runtime. It includes script samples and documentation, and a | |
186 | copy of the tapset library for reference. | |
099db71a | 187 | |
8bec3f09 JB |
188 | %description client -l pl.UTF-8 |
189 | Ten pakiet dostarcza komponenty niezbędne do tworzenia skryptów | |
190 | systemtap i kompilowania ich przy użyciu lokalnej instalacji | |
191 | systemtap-devel lub zdalnej instalacji systemtap-server, a następnie | |
192 | uruchamiania ich przy użyciu lokalnej lub zdalnej instalacji | |
193 | systemtap-runtime. Zawiera przykłady skryptów oraz dokumentację, a | |
194 | także kopię biblioteki tapset. | |
195 | ||
ef8f36a5 JB |
196 | %package exporter |
197 | Summary: Systemtap-Prometheus interoperation mechanism | |
198 | Summary(pl.UTF-8): Mechanizm współpracy Systemtap-Prometheus | |
199 | Group: Applications/System | |
200 | Requires: %{name}-runtime = %{version}-%{release} | |
201 | ||
202 | %description exporter | |
203 | This package includes files for a systemd service that manages | |
204 | systemtap sessions and relays Prometheus metrics from the sessions to | |
205 | remote requesters on demand. | |
206 | ||
207 | %description exporter -l pl.UTF-8 | |
208 | Ten pakiet zawiera pliki usługi systemd zarządzającej sesjami | |
209 | systemtap i przekazującej na żądanie metryki Prometheusa z sesji do | |
210 | zdalnych klientów. | |
211 | ||
8bec3f09 JB |
212 | %package devel |
213 | Summary: Programmable system-wide instrumentation system - development headers, tools | |
214 | Summary(pl.UTF-8): Programowalny systemowy system oprzyrządowania - pliki nagłówkowe, narzędzia | |
215 | Group: Development/Tools | |
216 | Requires: %{name}-client = %{version}-%{release} | |
217 | Requires: gcc | |
218 | Requires: kernel-module-build | |
219 | Requires: make | |
220 | ||
221 | %description devel | |
222 | This package provides the components needed to compile a systemtap | |
223 | script from source form into executable (.ko) forms. It may be | |
224 | installed on a self-contained developer workstation (along with the | |
225 | systemtap-client and systemtap-runtime packages), or on a dedicated | |
226 | remote server (alongside the systemtap-server package). It includes a | |
227 | copy of the standard tapset library and the runtime library C files. | |
228 | ||
229 | %description devel -l pl.UTF-8 | |
230 | Ten pakiet dostarcza komponenty niezbędne do kompilowania skryptów | |
231 | systemtap z postaci źródłowej do wykonywalnej (.ko). Może być | |
232 | zainstalowany na samodzielnej stacji roboczej programisty (wraz z | |
233 | pakietami systemtap-client i systemtap-runtime) lub dedykowanym | |
234 | zdalnym serwerze (wraz z pakietem systemtap-server). Zawiera kopię | |
235 | standardowej biblioteki tapset oraz pliki biblioteki uruchomieniowej | |
236 | C. | |
099db71a AM |
237 | |
238 | %package initscript | |
8bec3f09 JB |
239 | Summary: SystemTap Initscripts |
240 | Summary(pl.UTF-8): Skrypty startowe SystemTap | |
099db71a | 241 | Group: Base |
8bec3f09 JB |
242 | Requires(post,preun): /sbin/chkconfig |
243 | Requires: %{name} = %{version}-%{release} | |
244 | Requires: rc-scripts | |
099db71a AM |
245 | |
246 | %description initscript | |
8bec3f09 | 247 | SysVinit scripts to launch selected systemtap scripts at system |
099db71a AM |
248 | startup. |
249 | ||
8bec3f09 JB |
250 | %description initscript -l pl.UTF-8 |
251 | Skrypty SysVinit do uruchamiania wybranych skryptów systemtap w | |
252 | trakcie startu systemu. | |
253 | ||
254 | %package server | |
255 | Summary: Instrumentation System Server | |
256 | Summary(pl.UTF-8): Serwer systemu oprzyrządowania | |
257 | Group: Applications/System | |
258 | Requires(post,preun): /sbin/chkconfig | |
259 | Requires: %{name}-devel = %{version}-%{release} | |
260 | Requires: /bin/mktemp | |
261 | Requires: unzip | |
262 | Requires: zip | |
263 | ||
264 | %description server | |
265 | This is the remote script compilation server component of systemtap. | |
266 | It announces itself to nearby clients with avahi (if available), and | |
267 | compiles systemtap scripts to kernel objects on their demand. | |
268 | ||
269 | %description server -l pl.UTF-8 | |
270 | Ten pakiet zawiera komponent serwera do zdalnej kompilacji skryptów | |
271 | systemtap. Rozgłasza się pobliskim klientom przy użyciu avahi (jeśli | |
272 | jest dostępny) i na żądanie kompiluje skrypty systemtap do obiektów | |
273 | jądra. | |
274 | ||
099db71a AM |
275 | %package sdt-devel |
276 | Summary: Static probe support tools | |
8bec3f09 JB |
277 | Summary(pl.UTF-8): Narzędzia do obsługi sond statycznych |
278 | License: GPL v2+ and Public Domain | |
099db71a | 279 | Group: Development/Libraries |
54ada4b8 JP |
280 | Requires: python3-modules >= 1:3.2 |
281 | Suggests: python3-pyparsing | |
099db71a AM |
282 | |
283 | %description sdt-devel | |
284 | This package includes the <sys/sdt.h> header file used for static | |
285 | instrumentation compiled into userspace programs and libraries, along | |
286 | with the optional dtrace-compatibility preprocessor to process related | |
287 | .d files into tracing-macro-laden .h headers. | |
288 | ||
8bec3f09 JB |
289 | %description sdt-devel -l pl.UTF-8 |
290 | Ten pakiet zawiera plik nagłówkowy <sys/sdt.h> służący do | |
291 | wkompilowywania statycznego oprzyrządowania do programów i bibliotek | |
292 | przestrzeni użytkownika, wraz z opcjonalnym preprocesorem zgodności z | |
293 | dtrace, który przetwarza pliki .d na pliki nagłówkowe .h z makrami | |
294 | śledzącymi. | |
295 | ||
a575733c JB |
296 | %package doc |
297 | Summary: SystemTap guides and tutorials | |
298 | Summary(pl.UTF-8): Przewodniki i dokumentacja wprowadzająca do SystemTap | |
299 | Group: Documentation | |
300 | ||
301 | %description doc | |
302 | SystemTap guides and tutorials. | |
303 | ||
304 | %description doc -l pl.UTF-8 | |
305 | Przewodniki i dokumentacja wprowadzająca do SystemTap. | |
306 | ||
aa39e90e | 307 | %prep |
459a2a3b | 308 | %setup -q |
8f034825 | 309 | %patch0 -p1 |
ef8f36a5 JB |
310 | %patch1 -p1 |
311 | %{?with_rpm5:%patch2 -p1} | |
3d0924cd | 312 | |
fe297aaf JR |
313 | %{__sed} -E -i -e '1s,#!\s*/usr/bin/python(\s|$),#!%{__python}\1,' \ |
314 | testsuite/systemtap.examples/general/pyexample.py | |
315 | ||
316 | find testsuite/systemtap.examples/ -name '*.stp' -print0 | xargs -0 \ | |
317 | %{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+stap(\s|$),#!%{_bindir}/stap\1,' | |
318 | ||
aa39e90e | 319 | %build |
e7f20467 | 320 | %{__gettextize} |
99214564 | 321 | %{__aclocal} -I m4 |
459a2a3b | 322 | %{__autoconf} |
323 | %{__autoheader} | |
324 | %{__automake} | |
325 | %configure \ | |
6d4da90e | 326 | CXXFLAGS="%{rpmcxxflags} -Wno-dangling-pointer" \ |
24046c33 JP |
327 | %{?with_java:have_javac="%{java_home}/bin/javac"} \ |
328 | %{?with_java:have_jar="%{java_home}/bin/jar"} \ | |
099db71a | 329 | --disable-silent-rules \ |
1651fd5a | 330 | %{?with_crash:--enable-crash} \ |
8bec3f09 | 331 | --enable-docs%{!?with_doc:=no} \ |
099db71a | 332 | --enable-pie \ |
8bec3f09 | 333 | --enable-server \ |
099db71a | 334 | --enable-sqlite \ |
c15371b4 | 335 | --with-dyninst%{!?with_dyninst:=no} \ |
11d61deb JP |
336 | --with-java=%{?with_java:%{java_home}}%{!?with_java:no} \ |
337 | %{!?with_python2:--without-python2-probes} \ | |
338 | %{!?with_python3:--without-python3-probes} | |
339 | ||
24046c33 JP |
340 | %{__make} \ |
341 | %{?with_java:JAVAC="%{java_home}/bin/javac"} \ | |
342 | %{?with_java:JAR="%{java_home}/bin/jar"} | |
aa39e90e AM |
343 | |
344 | %install | |
345 | rm -rf $RPM_BUILD_ROOT | |
8bec3f09 JB |
346 | install -d $RPM_BUILD_ROOT{/var/{cache,run}/%{name},%{systemdtmpfilesdir},%{systemdunitdir}} \ |
347 | $RPM_BUILD_ROOT{%{_sysconfdir}/stap-server/conf.d,/etc/{sysconfig,logrotate.d,rc.d/init.d}} \ | |
bc044f75 | 348 | $RPM_BUILD_ROOT/var/log/stap-server |
aa39e90e | 349 | |
43d6c0ff | 350 | %{__make} install \ |
aa39e90e AM |
351 | DESTDIR=$RPM_BUILD_ROOT |
352 | ||
8bec3f09 JB |
353 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/systemtap.conf |
354 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/stap-server.conf | |
355 | ||
356 | # not installed by make | |
7a86387a | 357 | install -p stap-prep $RPM_BUILD_ROOT%{_bindir}/stap-prep |
aa39e90e | 358 | |
7a86387a ER |
359 | install -p initscript/systemtap $RPM_BUILD_ROOT/etc/rc.d/init.d |
360 | cp -p initscript/config.systemtap $RPM_BUILD_ROOT%{_sysconfdir}/systemtap/config | |
bc044f75 | 361 | |
7a86387a ER |
362 | install -p initscript/stap-server $RPM_BUILD_ROOT/etc/rc.d/init.d |
363 | cp -p initscript/config.stap-server $RPM_BUILD_ROOT/etc/sysconfig/stap-server | |
364 | cp -p initscript/logrotate.stap-server $RPM_BUILD_ROOT/etc/logrotate.d/stap-server | |
365 | cp -p stap-server.service $RPM_BUILD_ROOT%{systemdunitdir} | |
8bec3f09 JB |
366 | |
367 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/systemtap/{conf.d,script.d} | |
368 | install -d $RPM_BUILD_ROOT/var/lib/stap-server/.systemtap | |
369 | install -d $RPM_BUILD_ROOT/var/log/stap-server | |
370 | ||
d621331a | 371 | %if %{with doc} |
8bec3f09 | 372 | %{__mv} $RPM_BUILD_ROOT%{_docdir}/systemtap docs-installed |
d621331a | 373 | %endif |
bc044f75 | 374 | |
07f4762f JB |
375 | %if %{with python2} |
376 | %py_postclean | |
377 | %endif | |
378 | ||
099db71a AM |
379 | %find_lang %{name} |
380 | ||
a3bbe4b0 | 381 | %clean |
382 | rm -rf $RPM_BUILD_ROOT | |
383 | ||
aa39e90e AM |
384 | %files |
385 | %defattr(644,root,root,755) | |
8bec3f09 JB |
386 | |
387 | %files runtime -f %{name}.lang | |
388 | %defattr(644,root,root,755) | |
389 | %doc AUTHORS NEWS README* | |
839ed024 | 390 | %attr(755,root,root) %{_bindir}/stap-merge |
391 | %attr(755,root,root) %{_bindir}/stap-report | |
3d0924cd | 392 | %attr(755,root,root) %{_bindir}/stapbpf |
c15371b4 | 393 | %{?with_dyninst:%attr(755,root,root) %{_bindir}/stapdyn} |
839f235b | 394 | %attr(755,root,root) %{_bindir}/stapsh |
8bec3f09 JB |
395 | # XXX: %attr(4754,root,stapusr) staprun ? |
396 | %attr(755,root,root) %{_bindir}/staprun | |
8ed2489b | 397 | %dir %{_libexecdir}/%{name} |
15d50650 JR |
398 | %attr(755,root,root) %{_libexecdir}/%{name}/stap-authorize-cert |
399 | %attr(755,root,root) %{_libexecdir}/%{name}/stapio | |
8ed2489b | 400 | %if %{with crash} |
a29198fa | 401 | %if "%{_libdir}" != "%{_libexecdir}" |
8ed2489b | 402 | %dir %{_libdir}/%{name} |
a29198fa | 403 | %endif |
8ed2489b JR |
404 | %attr(755,root,root) %{_libdir}/%{name}/staplog.so |
405 | %endif | |
839f235b | 406 | %{_mandir}/man1/stap-merge.1* |
311fc893 | 407 | %{_mandir}/man1/stap-report.1* |
e75a4152 | 408 | %{_mandir}/man1/stapref.1* |
8bec3f09 JB |
409 | %{_mandir}/man3/stapex.3stap* |
410 | %{_mandir}/man3/stapfuncs.3stap* | |
411 | %{_mandir}/man3/stapprobes.3stap* | |
412 | %{_mandir}/man3/stapvars.3stap* | |
52ae841a JB |
413 | %if %{with doc} |
414 | %{_mandir}/man3/function::*.3stap* | |
e75a4152 | 415 | %{_mandir}/man3/macro::*.3stap* |
52ae841a JB |
416 | %{_mandir}/man3/probe::*.3stap* |
417 | %{_mandir}/man3/tapset::*.3stap* | |
418 | %endif | |
8bec3f09 | 419 | %{_mandir}/man7/error::*.7stap* |
bc044f75 | 420 | %{_mandir}/man7/stappaths.7* |
8f034825 | 421 | %{_mandir}/man7/warning::buildid.7stap* |
8bec3f09 | 422 | %{_mandir}/man7/warning::debuginfo.7stap* |
8f034825 | 423 | %{_mandir}/man7/warning::pass5.7stap* |
eae4d4c2 | 424 | %{_mandir}/man7/warning::symbols.7stap* |
3d0924cd | 425 | %{_mandir}/man8/stapbpf.8* |
311fc893 | 426 | %{?with_dyninst:%{_mandir}/man8/stapdyn.8*} |
839f235b | 427 | %{_mandir}/man8/staprun.8* |
311fc893 | 428 | %{_mandir}/man8/stapsh.8* |
97c167ee JB |
429 | %lang(cs) %{_mandir}/cs/man1/stap-merge.1* |
430 | %lang(cs) %{_mandir}/cs/man1/stap-report.1* | |
431 | %lang(cs) %{_mandir}/cs/man1/stapref.1* | |
432 | %lang(cs) %{_mandir}/cs/man3/stapex.3stap* | |
433 | %lang(cs) %{_mandir}/cs/man3/stapfuncs.3stap* | |
434 | %lang(cs) %{_mandir}/cs/man3/stapprobes.3stap* | |
435 | %lang(cs) %{_mandir}/cs/man3/stapvars.3stap* | |
436 | %lang(cs) %{_mandir}/cs/man7/error::*.7stap* | |
437 | %lang(cs) %{_mandir}/cs/man7/stappaths.7* | |
8f034825 | 438 | %lang(cs) %{_mandir}/cs/man7/warning::buildid.7stap* |
97c167ee JB |
439 | %lang(cs) %{_mandir}/cs/man7/warning::debuginfo.7stap* |
440 | %lang(cs) %{_mandir}/cs/man7/warning::symbols.7stap* | |
441 | %lang(cs) %{_mandir}/cs/man8/stapsh.8* | |
442 | %lang(cs) %{_mandir}/cs/man8/systemtap.8* | |
099db71a | 443 | |
8bec3f09 JB |
444 | %if %{with java} |
445 | %files runtime-java | |
446 | %defattr(644,root,root,755) | |
15d50650 | 447 | %attr(755,root,root) %{_libexecdir}/%{name}/stapbm |
8f034825 | 448 | %attr(755,root,root) %{_libexecdir}/%{name}/libHelperSDT.so |
15d50650 | 449 | %{_libexecdir}/%{name}/HelperSDT.jar |
8bec3f09 JB |
450 | %endif |
451 | ||
07f4762f JB |
452 | %if %{with python2} |
453 | %files runtime-python2 | |
454 | %defattr(644,root,root,755) | |
455 | %dir %{py_sitedir}/HelperSDT | |
456 | %attr(755,root,root) %{py_sitedir}/HelperSDT/_HelperSDT.so | |
457 | %{py_sitedir}/HelperSDT/*.py[co] | |
458 | %{py_sitedir}/HelperSDT-0.1.0-py*.egg-info | |
459 | %endif | |
460 | ||
461 | %if %{with python3} | |
462 | %files runtime-python3 | |
463 | %defattr(644,root,root,755) | |
464 | %dir %{py3_sitedir}/HelperSDT | |
465 | %attr(755,root,root) %{py3_sitedir}/HelperSDT/_HelperSDT.cpython-*.so | |
466 | %{py3_sitedir}/HelperSDT/*.py | |
467 | %{py3_sitedir}/HelperSDT/__pycache__ | |
468 | %{py3_sitedir}/HelperSDT-0.1.0-py*.egg-info | |
469 | %endif | |
470 | ||
8bec3f09 JB |
471 | %files client |
472 | %defattr(644,root,root,755) | |
8bec3f09 JB |
473 | %attr(755,root,root) %{_bindir}/stap |
474 | %attr(755,root,root) %{_bindir}/stap-prep | |
3d813eaf | 475 | %attr(755,root,root) %{_bindir}/stapvirt |
8bec3f09 | 476 | %dir %{_datadir}/%{name} |
07f4762f | 477 | %{_datadir}/%{name}/examples |
8bec3f09 JB |
478 | %{_datadir}/%{name}/tapset |
479 | %{_mandir}/man1/stap.1* | |
480 | %{_mandir}/man1/stap-prep.1* | |
3d813eaf | 481 | %{_mandir}/man1/stapvirt.1* |
97c167ee JB |
482 | %lang(cs) %{_mandir}/cs/man1/stap.1* |
483 | %lang(cs) %{_mandir}/cs/man1/stap-prep.1* | |
484 | %lang(cs) %{_mandir}/cs/man1/stapvirt.1* | |
8bec3f09 | 485 | |
ef8f36a5 JB |
486 | %files exporter |
487 | %defattr(644,root,root,755) | |
8f034825 JB |
488 | %attr(755,root,root) %{_sbindir}/stap-exporter |
489 | %{_sysconfdir}/stap-exporter | |
490 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/stap-exporter | |
491 | %{systemdunitdir}/stap-exporter.service | |
492 | %{_mandir}/man8/stap-exporter.8* | |
493 | ||
8bec3f09 JB |
494 | %files devel |
495 | %defattr(644,root,root,755) | |
8f034825 | 496 | %attr(755,root,root) %{_bindir}/stap-profile-annotate |
8bec3f09 | 497 | %{_datadir}/%{name}/runtime |
07f4762f | 498 | %if %{with python2} || %{with python3} |
a29198fa JB |
499 | %dir %{_libexecdir}/%{name} |
500 | %dir %{_libexecdir}/%{name}/python | |
07f4762f JB |
501 | %attr(755,root,root) %{_libexecdir}/systemtap/python/stap-resolve-module-function.py |
502 | %endif | |
8bec3f09 JB |
503 | |
504 | %files initscript | |
505 | %defattr(644,root,root,755) | |
8bec3f09 JB |
506 | %attr(754,root,root) /etc/rc.d/init.d/systemtap |
507 | %dir %{_sysconfdir}/systemtap | |
508 | %dir %{_sysconfdir}/systemtap/conf.d | |
509 | %dir %{_sysconfdir}/systemtap/script.d | |
510 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/systemtap/config | |
511 | %{systemdtmpfilesdir}/systemtap.conf | |
512 | %dir /var/cache/%{name} | |
513 | %dir /var/run/%{name} | |
514 | ||
515 | %files server | |
516 | %defattr(644,root,root,755) | |
517 | %attr(755,root,root) %{_bindir}/stap-server | |
15d50650 JR |
518 | %attr(755,root,root) %{_libexecdir}/%{name}/stap-env |
519 | %attr(755,root,root) %{_libexecdir}/%{name}/stap-gen-cert | |
520 | %attr(755,root,root) %{_libexecdir}/%{name}/stap-serverd | |
521 | %attr(755,root,root) %{_libexecdir}/%{name}/stap-sign-module | |
522 | %attr(755,root,root) %{_libexecdir}/%{name}/stap-start-server | |
523 | %attr(755,root,root) %{_libexecdir}/%{name}/stap-stop-server | |
8bec3f09 JB |
524 | %dir %{_sysconfdir}/stap-server |
525 | %dir %{_sysconfdir}/stap-server/conf.d | |
526 | %attr(754,root,root) /etc/rc.d/init.d/stap-server | |
527 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/stap-server | |
528 | %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/stap-server | |
529 | %{systemdunitdir}/stap-server.service | |
530 | %{systemdtmpfilesdir}/stap-server.conf | |
531 | # TODO: create user/group | |
532 | #%attr(750,stap-server,stap-server) %dir /var/lib/stap-server | |
533 | #%attr(700,stap-server,stap-server) %dir /var/lib/stap-server/.systemtap | |
534 | #%attr(755,stap-server,stap-server) %dir /var/log/stap-server | |
535 | #%attr(755,stap-server,stap-server) %dir /var/run/stap-server | |
536 | %{_mandir}/man8/stap-server.8* | |
8f034825 | 537 | %{_mandir}/man8/systemtap-service.8* |
97c167ee | 538 | %lang(cs) %{_mandir}/cs/man8/stap-server.8* |
8bec3f09 JB |
539 | |
540 | %files sdt-devel | |
099db71a AM |
541 | %defattr(644,root,root,755) |
542 | %attr(755,root,root) %{_bindir}/dtrace | |
543 | %{_includedir}/sys/sdt.h | |
544 | %{_includedir}/sys/sdt-config.h | |
545 | %{_mandir}/man1/dtrace.1* | |
97c167ee | 546 | %lang(cs) %{_mandir}/cs/man1/dtrace.1* |
a575733c | 547 | |
97c167ee | 548 | %if %{with doc} |
a575733c JB |
549 | %files doc |
550 | %defattr(644,root,root,755) | |
97c167ee | 551 | %doc doc/{langref,tutorial}.pdf doc/beginners/SystemTap_Beginners_Guide.pdf docs-installed/tapsets.pdf |
a575733c | 552 | %endif |