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