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