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