2 # TODO: - enable server
4 # - more configure options
7 Summary: Instrumentation System
8 Summary(pl.UTF-8): System oprzyrządowania
14 Source0: http://sources.redhat.com/systemtap/ftp/releases/%{name}-%{version}.tar.gz
15 # Source0-md5: 5b7ab0ae0efc520f0b19f9dbf11977c9
16 Source1: systemtap.tmpfiles
17 Patch0: %{name}-configure.patch
18 Patch1: %{name}-build.patch
19 Patch2: %{name}-rpm5-support.patch
20 Patch3: %{name}-no-Werror.patch
21 URL: http://sourceware.org/systemtap/
22 BuildRequires: autoconf
23 BuildRequires: automake
25 BuildRequires: avahi-devel
26 BuildRequires: elfutils-devel
27 BuildRequires: glib2-devel
28 BuildRequires: mysql-devel
29 BuildRequires: nss-devel
30 BuildRequires: sqlite3-devel
31 BuildRequires: texlive-latex
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 SystemTap is an instrumentation system for systems running Linux 2.6.
36 Developers can write instrumentation to collect data on the operation
39 %description -l pl.UTF-8
40 SystemTap to system oprzyrządowania dla systemów opartych na Linuksie
41 2.6. Programiści mogą pisać narzędzia do zbierania danych dotyczących
45 Summary: Instrumentation System Server
47 Group: Applications/System
48 URL: http://sourceware.org/systemtap/
50 Requires: systemtap-devel = %{version}-%{release}
53 Requires(post): /sbin/chkconfig
54 Requires(preun): /sbin/chkconfig
57 This is the remote script compilation server component of systemtap.
58 It announces itself to nearby clients with avahi (if available), and
59 compiles systemtap scripts to kernel objects on their demand.
63 Summary: Programmable system-wide instrumentation system - development headers, tools
65 Group: Development/Libraries
66 URL: http://sourceware.org/systemtap/
68 Requires: linux-libc-headers
72 This package contains the components needed to compile a systemtap
73 script from source form into executable (.ko) forms. It may be
74 installed on a self-contained developer workstation (along with the
75 systemtap-client and systemtap-runtime packages), or on a dedicated
76 remote server (alongside the systemtap-server package). It includes a
77 copy of the standard tapset library and the runtime library C files.
80 Summary: Programmable system-wide instrumentation system - runtime
83 URL: http://sourceware.org/systemtap/
86 SystemTap runtime contains the components needed to execute a
87 systemtap script that was already compiled into a module using a local
88 or remote systemtap-devel installation.
91 Summary: Programmable system-wide instrumentation system - client
94 URL: http://sourceware.org/systemtap/
97 Requires: openssh-clients
99 Requires: systemtap-runtime = %{version}-%{release}
104 This package contains/requires the components needed to develop
105 systemtap scripts, and compile them using a local systemtap-devel or a
106 remote systemtap-server installation, then run them using a local or
107 remote systemtap-runtime. It includes script samples and
108 documentation, and a copy of the tapset library for reference.
112 Summary: Systemtap Initscripts
115 URL: http://sourceware.org/systemtap/
116 Requires: systemtap = %{version}-%{release}
117 Requires(post): /sbin/chkconfig
118 Requires(preun): /sbin/chkconfig
119 Requires(preun): rc-scripts
120 Requires(postun): rc-scripts
122 %description initscript
123 Sysvinit scripts to launch selected systemtap scripts at system
127 Summary: Static probe support tools
128 License: GPLv2+ and Public Domain
129 Group: Development/Libraries
130 URL: http://sourceware.org/systemtap/
132 %description sdt-devel
133 This package includes the <sys/sdt.h> header file used for static
134 instrumentation compiled into userspace programs and libraries, along
135 with the optional dtrace-compatibility preprocessor to process related
136 .d files into tracing-macro-laden .h headers.
157 --disable-silent-rules \
160 --%{?with_doc:en}%{!?with_doc:dis}able-docs \
165 rm -rf $RPM_BUILD_ROOT
166 install -d $RPM_BUILD_ROOT{/var/cache/%{name},%{systemdtmpfilesdir}}
169 DESTDIR=$RPM_BUILD_ROOT
171 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/stap-server.conf
176 rm -rf $RPM_BUILD_ROOT
179 %defattr(644,root,root,755)
180 %doc AUTHORS HACKING NEWS README*
182 %attr(755,root,root) %{_bindir}/stap
183 %attr(755,root,root) %{_bindir}/stap-merge
184 %attr(755,root,root) %{_bindir}/stap-report
185 %attr(755,root,root) %{_bindir}/staprun
186 %attr(755,root,root) %{_bindir}/stapsh
188 %{_libexecdir}/%{name}
189 %dir /var/cache/%{name}
190 %{_mandir}/man1/stap.1*
191 %{_mandir}/man1/stap-merge.1*
194 %{_mandir}/man8/staprun.8*
196 %files sdt-devel -f %{name}.lang
197 %defattr(644,root,root,755)
198 %attr(755,root,root) %{_bindir}/dtrace
199 %{_includedir}/sys/sdt.h
200 %{_includedir}/sys/sdt-config.h
201 %{_mandir}/man1/dtrace.1*