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