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