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