]> git.pld-linux.org Git - packages/systemtap.git/blame - systemtap.spec
make sure python3 is preferred for dtrace
[packages/systemtap.git] / systemtap.spec
CommitLineData
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 23Summary: Instrumentation System
7ad1ccd0 24Summary(pl.UTF-8): System oprzyrządowania
aa39e90e 25Name: systemtap
7560dceb 26Version: 4.9
54ada4b8 27Release: 2
839ed024 28License: GPL v2+
aa39e90e 29Group: Base
fcc0f9e6 30Source0: ftp://sourceware.org/pub/systemtap/releases/%{name}-%{version}.tar.gz
7560dceb 31# Source0-md5: 32734fa4c4e240f5345fba244de1034c
7a86387a 32Source1: %{name}.tmpfiles
8bec3f09 33Source2: stap-server.tmpfiles
8f034825 34Patch0: %{name}-dyninst.patch
ef8f36a5
JB
35Patch1: %{name}-systemd.patch
36Patch2: %{name}-rpm5-support.patch
ff9bc29b 37URL: http://sourceware.org/systemtap/
8bec3f09 38BuildRequires: autoconf >= 2.63
60a0430a 39BuildRequires: automake
099db71a 40BuildRequires: avahi-devel
8bec3f09 41BuildRequires: boost-devel
1651fd5a 42%{?with_crash:BuildRequires: crash-devel}
8bec3f09 43BuildRequires: docbook-dtd412-xml
c15371b4 44%{?with_dyninst:BuildRequires: dyninst-devel >= 8.0}
8bec3f09 45BuildRequires: elfutils-devel >= 0.148
67274bfd 46BuildRequires: elfutils-debuginfod-devel >= 0.148
e75a4152
JB
47BuildRequires: gettext-devel >= 0.19.4
48BuildRequires: gettext-tools >= 0.19.4
a29198fa 49BuildRequires: glib2-devel >= 2.0
07f4762f 50BuildRequires: json-c-devel >= 0.12
e4485057 51%{?with_java:%buildrequires_jdk}
c15371b4
JB
52%if %{with dyninst} || %{with java}
53BuildRequires: libselinux-devel
54%endif
07f4762f 55BuildRequires: libstdc++-devel >= 6:4.5
e7f20467
JB
56BuildRequires: libvirt-devel >= 1.0.2
57BuildRequires: libxml2-devel >= 2.0
aa39e90e 58BuildRequires: mysql-devel
97c167ee 59BuildRequires: ncurses-devel
7cbb091d 60BuildRequires: ncurses-ext-devel
8bec3f09 61BuildRequires: nss-devel >= 3
7af1a693 62BuildRequires: pkgconfig
07f4762f
JB
63%if %{with python2}
64BuildRequires: python-devel >= 1:2.6
65BuildRequires: python-setuptools
66%endif
2f987b61 67BuildRequires: python3 >= 1:3.2
07f4762f
JB
68%if %{with python3}
69BuildRequires: python3-devel >= 1:3.2
70BuildRequires: python3-setuptools
71%endif
97c167ee 72BuildRequires: readline-devel
bc044f75 73BuildRequires: rpm-devel
97c167ee 74%{?with_java:BuildRequires: rpm-javaprov}
fa83958d 75BuildRequires: rpm-pythonprov
60f1f91f 76BuildRequires: rpmbuild(macros) >= 2.021
07f4762f 77BuildRequires: sqlite3-devel >= 3.7
8bec3f09
JB
78BuildRequires: xmlto
79%if %{with doc}
80BuildRequires: latex2html
81%{?with_publican:BuildRequires: publican}
82BuildRequires: texlive-dvips
83BuildRequires: texlive-fonts-bitstream
84BuildRequires: texlive-fonts-type1-bitstream
099db71a 85BuildRequires: texlive-latex
7af1a693
ER
86BuildRequires: texlive-latex-psnfss
87BuildRequires: texlive-xetex
8bec3f09
JB
88%endif
89# let base mean client+local development package
90Requires: %{name}-client = %{version}-%{release}
91Requires: %{name}-devel = %{version}-%{release}
aa39e90e
AM
92BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
93
94%description
95SystemTap is an instrumentation system for systems running Linux 2.6.
96Developers can write instrumentation to collect data on the operation
8bec3f09
JB
97of the system. The base systemtap package provides the components
98needed to locally develop and execute systemtap script.
aa39e90e 99
3bf8b266
JR
100%description -l pl.UTF-8
101SystemTap to system oprzyrządowania dla systemów opartych na Linuksie
1022.6. Programiści mogą pisać narzędzia do zbierania danych dotyczących
8bec3f09
JB
103operacji w systemie. Główny pakiet dostarcza komponenty niezbędne do
104lokalnego tworzenia i wykonywania skryptów systemtap.
099db71a
AM
105
106%package runtime
107Summary: Programmable system-wide instrumentation system - runtime
8bec3f09
JB
108Summary(pl.UTF-8): Programowalny systemowy system oprzyrządowania - środowisko uruchomieniowe
109Group: Applications/System
07f4762f 110Requires: json-c >= 0.12
099db71a
AM
111
112%description runtime
113SystemTap runtime contains the components needed to execute a
114systemtap script that was already compiled into a module using a local
115or remote systemtap-devel installation.
116
8bec3f09
JB
117%description runtime -l pl.UTF-8
118Środowisko uruchomieniowe SystemTap zawiera komponenty niezbędne do
119uruchomienia skryptu systemtap, który został już wkompilowany do
120modułu przy użyciu lokalnej lub zdalnej instalacji systemtap-devel.
121
122%package runtime-java
123Summary: SystemTap Java runtime support
124Summary(pl.UTF-8): Obsługa Javy dla środowiska uruchomieniowego SystemTap
125Group: Libraries
126Requires: %{name}-runtime = %{version}-%{release}
8bec3f09
JB
127Requires: byteman > 2.0
128
129%description runtime-java
130This package includes support files needed to run systemtap scripts
131that probe Java processes running on the OpenJDK 1.6 and OpenJDK 1.7
132runtimes using Byteman.
133
134%description runtime-java -l pl.UTF-8
135Ten pakiet zawiera pliki niezbędne do uruchamiania skryptów systemtap
07f4762f
JB
136sondujących procesy Javy działające w środowiskach OpenJDK 1.6 i
137OpenJDK 1.7 przy użyciu Bytemana.
138
139%package runtime-python2
140Summary: SystemTap Python 2 Runtime Support
141Summary(pl.UTF-8): Obsługa Pythona 2 dla środowiska uruchomieniowego SystemTap
142Group: Development/Tools
143Requires: %{name}-runtime = %{version}-%{release}
144Requires: python-modules >= 1:2.6
145
146%description runtime-python2
147This package includes support files needed to run systemtap scripts
148that probe Python 2 processes.
149
150%description runtime-python2 -l pl.UTF-8
151Ten pakiet zawiera pliki niezbędne do uruchamiania skryptów systemtap
152sondujących procesy Pythona 2.
153
154%package runtime-python3
155Summary: SystemTap Python 3 Runtime Support
156Summary(pl.UTF-8): Obsługa Pythona 3 dla środowiska uruchomieniowego SystemTap
157Group: Development/Tools
158Requires: %{name}-runtime = %{version}-%{release}
159Requires: python3-modules >= 1:3.2
160
161%description runtime-python3
162This package includes support files needed to run systemtap scripts
163that probe Python 3 processes.
164
165%description runtime-python3 -l pl.UTF-8
166Ten pakiet zawiera pliki niezbędne do uruchamiania skryptów systemtap
167sondujących procesy Pythona 3.
8bec3f09 168
099db71a
AM
169%package client
170Summary: Programmable system-wide instrumentation system - client
8bec3f09
JB
171Summary(pl.UTF-8): Programowalny systemowy system oprzyrządowania - klient
172Group: Applications/System
173Requires: %{name}-runtime = %{version}-%{release}
099db71a
AM
174Requires: coreutils
175Requires: grep
e7f20467 176Requires: libvirt >= 1.0.2
099db71a
AM
177Requires: openssh-clients
178Requires: sed
099db71a
AM
179Requires: unzip
180Requires: zip
181
182%description client
8bec3f09
JB
183This package provides the components needed to develop systemtap
184scripts and compile them using a local systemtap-devel or a remote
185systemtap-server installation, then run them using a local or remote
186systemtap-runtime. It includes script samples and documentation, and a
187copy of the tapset library for reference.
099db71a 188
8bec3f09
JB
189%description client -l pl.UTF-8
190Ten pakiet dostarcza komponenty niezbędne do tworzenia skryptów
191systemtap i kompilowania ich przy użyciu lokalnej instalacji
192systemtap-devel lub zdalnej instalacji systemtap-server, a następnie
193uruchamiania ich przy użyciu lokalnej lub zdalnej instalacji
194systemtap-runtime. Zawiera przykłady skryptów oraz dokumentację, a
195także kopię biblioteki tapset.
196
ef8f36a5
JB
197%package exporter
198Summary: Systemtap-Prometheus interoperation mechanism
199Summary(pl.UTF-8): Mechanizm współpracy Systemtap-Prometheus
200Group: Applications/System
201Requires: %{name}-runtime = %{version}-%{release}
202
203%description exporter
204This package includes files for a systemd service that manages
205systemtap sessions and relays Prometheus metrics from the sessions to
206remote requesters on demand.
207
208%description exporter -l pl.UTF-8
209Ten pakiet zawiera pliki usługi systemd zarządzającej sesjami
210systemtap i przekazującej na żądanie metryki Prometheusa z sesji do
211zdalnych klientów.
212
8bec3f09
JB
213%package devel
214Summary: Programmable system-wide instrumentation system - development headers, tools
215Summary(pl.UTF-8): Programowalny systemowy system oprzyrządowania - pliki nagłówkowe, narzędzia
216Group: Development/Tools
217Requires: %{name}-client = %{version}-%{release}
218Requires: gcc
219Requires: kernel-module-build
220Requires: make
221
222%description devel
223This package provides the components needed to compile a systemtap
224script from source form into executable (.ko) forms. It may be
225installed on a self-contained developer workstation (along with the
226systemtap-client and systemtap-runtime packages), or on a dedicated
227remote server (alongside the systemtap-server package). It includes a
228copy of the standard tapset library and the runtime library C files.
229
230%description devel -l pl.UTF-8
231Ten pakiet dostarcza komponenty niezbędne do kompilowania skryptów
232systemtap z postaci źródłowej do wykonywalnej (.ko). Może być
233zainstalowany na samodzielnej stacji roboczej programisty (wraz z
234pakietami systemtap-client i systemtap-runtime) lub dedykowanym
235zdalnym serwerze (wraz z pakietem systemtap-server). Zawiera kopię
236standardowej biblioteki tapset oraz pliki biblioteki uruchomieniowej
237C.
099db71a
AM
238
239%package initscript
8bec3f09
JB
240Summary: SystemTap Initscripts
241Summary(pl.UTF-8): Skrypty startowe SystemTap
099db71a 242Group: Base
8bec3f09
JB
243Requires(post,preun): /sbin/chkconfig
244Requires: %{name} = %{version}-%{release}
245Requires: rc-scripts
099db71a
AM
246
247%description initscript
8bec3f09 248SysVinit scripts to launch selected systemtap scripts at system
099db71a
AM
249startup.
250
8bec3f09
JB
251%description initscript -l pl.UTF-8
252Skrypty SysVinit do uruchamiania wybranych skryptów systemtap w
253trakcie startu systemu.
254
255%package server
256Summary: Instrumentation System Server
257Summary(pl.UTF-8): Serwer systemu oprzyrządowania
258Group: Applications/System
259Requires(post,preun): /sbin/chkconfig
260Requires: %{name}-devel = %{version}-%{release}
261Requires: /bin/mktemp
262Requires: unzip
263Requires: zip
264
265%description server
266This is the remote script compilation server component of systemtap.
267It announces itself to nearby clients with avahi (if available), and
268compiles systemtap scripts to kernel objects on their demand.
269
270%description server -l pl.UTF-8
271Ten pakiet zawiera komponent serwera do zdalnej kompilacji skryptów
272systemtap. Rozgłasza się pobliskim klientom przy użyciu avahi (jeśli
273jest dostępny) i na żądanie kompiluje skrypty systemtap do obiektów
274jądra.
275
099db71a
AM
276%package sdt-devel
277Summary: Static probe support tools
8bec3f09
JB
278Summary(pl.UTF-8): Narzędzia do obsługi sond statycznych
279License: GPL v2+ and Public Domain
099db71a 280Group: Development/Libraries
54ada4b8
JP
281Requires: python3-modules >= 1:3.2
282Suggests: python3-pyparsing
099db71a
AM
283
284%description sdt-devel
285This package includes the <sys/sdt.h> header file used for static
286instrumentation compiled into userspace programs and libraries, along
287with 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
291Ten pakiet zawiera plik nagłówkowy <sys/sdt.h> służący do
292wkompilowywania statycznego oprzyrządowania do programów i bibliotek
293przestrzeni użytkownika, wraz z opcjonalnym preprocesorem zgodności z
294dtrace, który przetwarza pliki .d na pliki nagłówkowe .h z makrami
295śledzącymi.
296
a575733c
JB
297%package doc
298Summary: SystemTap guides and tutorials
299Summary(pl.UTF-8): Przewodniki i dokumentacja wprowadzająca do SystemTap
300Group: Documentation
301
302%description doc
303SystemTap guides and tutorials.
304
305%description doc -l pl.UTF-8
306Przewodniki 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
317find 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
347rm -rf $RPM_BUILD_ROOT
8bec3f09
JB
348install -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
355cp -p %{SOURCE1} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/systemtap.conf
356cp -p %{SOURCE2} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/stap-server.conf
357
358# not installed by make
7a86387a 359install -p stap-prep $RPM_BUILD_ROOT%{_bindir}/stap-prep
aa39e90e 360
7a86387a
ER
361install -p initscript/systemtap $RPM_BUILD_ROOT/etc/rc.d/init.d
362cp -p initscript/config.systemtap $RPM_BUILD_ROOT%{_sysconfdir}/systemtap/config
bc044f75 363
7a86387a
ER
364install -p initscript/stap-server $RPM_BUILD_ROOT/etc/rc.d/init.d
365cp -p initscript/config.stap-server $RPM_BUILD_ROOT/etc/sysconfig/stap-server
366cp -p initscript/logrotate.stap-server $RPM_BUILD_ROOT/etc/logrotate.d/stap-server
367cp -p stap-server.service $RPM_BUILD_ROOT%{systemdunitdir}
8bec3f09
JB
368
369install -d $RPM_BUILD_ROOT%{_sysconfdir}/systemtap/{conf.d,script.d}
370install -d $RPM_BUILD_ROOT/var/lib/stap-server/.systemtap
371install -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
384rm -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
This page took 0.47639 seconds and 4 git commands to generate.