]> git.pld-linux.org Git - packages/systemtap.git/blame - systemtap.spec
- updated files a bit
[packages/systemtap.git] / systemtap.spec
CommitLineData
87230ea0 1#
2# TODO: - enable server
3# - BRs
4# - more configure options
5#
099db71a 6%bcond_with doc
aa39e90e 7Summary: Instrumentation System
7ad1ccd0 8Summary(pl.UTF-8): System oprzyrządowania
aa39e90e 9Name: systemtap
099db71a
AM
10Version: 1.8
11Release: 0.1
839ed024 12License: GPL v2+
aa39e90e 13Group: Base
43d6c0ff 14Source0: http://sources.redhat.com/systemtap/ftp/releases/%{name}-%{version}.tar.gz
099db71a 15# Source0-md5: 5b7ab0ae0efc520f0b19f9dbf11977c9
31ca9d34 16Source1: systemtap.tmpfiles
459a2a3b 17Patch0: %{name}-configure.patch
099db71a 18Patch1: %{name}-build.patch
6fbeb569 19Patch2: %{name}-rpm5-support.patch
31ca9d34 20Patch3: %{name}-no-Werror.patch
ff9bc29b 21URL: http://sourceware.org/systemtap/
60a0430a
JB
22BuildRequires: autoconf
23BuildRequires: automake
099db71a
AM
24BuildRequires: xmlto
25BuildRequires: avahi-devel
aa39e90e
AM
26BuildRequires: elfutils-devel
27BuildRequires: glib2-devel
28BuildRequires: mysql-devel
099db71a
AM
29BuildRequires: nss-devel
30BuildRequires: sqlite3-devel
31BuildRequires: texlive-latex
aa39e90e
AM
32BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34%description
35SystemTap is an instrumentation system for systems running Linux 2.6.
36Developers can write instrumentation to collect data on the operation
37of the system.
38
3bf8b266
JR
39%description -l pl.UTF-8
40SystemTap to system oprzyrządowania dla systemów opartych na Linuksie
412.6. Programiści mogą pisać narzędzia do zbierania danych dotyczących
ff9bc29b
JB
42operacji w systemie.
43
099db71a
AM
44%package server
45Summary: Instrumentation System Server
46License: GPL v2+
47Group: Applications/System
48URL: http://sourceware.org/systemtap/
49Requires: /bin/mktemp
50Requires: systemtap-devel = %{version}-%{release}
51Requires: unzip
52Requires: zip
53Requires(post): /sbin/chkconfig
54Requires(preun): /sbin/chkconfig
55
56%description server
57This is the remote script compilation server component of systemtap.
58It announces itself to nearby clients with avahi (if available), and
59compiles systemtap scripts to kernel objects on their demand.
60
61
62%package devel
63Summary: Programmable system-wide instrumentation system - development headers, tools
64License: GPL v2+
65Group: Development/Libraries
66URL: http://sourceware.org/systemtap/
67Requires: gcc
68Requires: linux-libc-headers
69Requires: make
70
71%description devel
72This package contains the components needed to compile a systemtap
73script from source form into executable (.ko) forms. It may be
74installed on a self-contained developer workstation (along with the
75systemtap-client and systemtap-runtime packages), or on a dedicated
76remote server (alongside the systemtap-server package). It includes a
77copy of the standard tapset library and the runtime library C files.
78
79%package runtime
80Summary: Programmable system-wide instrumentation system - runtime
81License: GPL v2+
82Group: Base
83URL: http://sourceware.org/systemtap/
84
85%description runtime
86SystemTap runtime contains the components needed to execute a
87systemtap script that was already compiled into a module using a local
88or remote systemtap-devel installation.
89
90%package client
91Summary: Programmable system-wide instrumentation system - client
92License: GPL v2+
93Group: Base
94URL: http://sourceware.org/systemtap/
95Requires: coreutils
96Requires: grep
97Requires: openssh-clients
98Requires: sed
99Requires: systemtap-runtime = %{version}-%{release}
100Requires: unzip
101Requires: zip
102
103%description client
104This package contains/requires the components needed to develop
105systemtap scripts, and compile them using a local systemtap-devel or a
106remote systemtap-server installation, then run them using a local or
107remote systemtap-runtime. It includes script samples and
108documentation, and a copy of the tapset library for reference.
109
110
111%package initscript
112Summary: Systemtap Initscripts
113License: GPL v2+
114Group: Base
115URL: http://sourceware.org/systemtap/
116Requires: systemtap = %{version}-%{release}
117Requires(post): /sbin/chkconfig
118Requires(preun): /sbin/chkconfig
119Requires(preun): rc-scripts
120Requires(postun): rc-scripts
121
122%description initscript
123Sysvinit scripts to launch selected systemtap scripts at system
124startup.
125
126%package sdt-devel
127Summary: Static probe support tools
128License: GPLv2+ and Public Domain
129Group: Development/Libraries
130URL: http://sourceware.org/systemtap/
131
132%description sdt-devel
133This package includes the <sys/sdt.h> header file used for static
134instrumentation compiled into userspace programs and libraries, along
135with the optional dtrace-compatibility preprocessor to process related
136.d files into tracing-macro-laden .h headers.
137
aa39e90e 138%prep
459a2a3b 139%setup -q
140%patch0 -p1
099db71a 141%patch1 -p1
6fbeb569 142%patch2 -p1
31ca9d34 143%patch3 -p1
26f73914 144
aa39e90e 145%build
459a2a3b 146%{__aclocal}
147%{__autoconf}
148%{__autoheader}
149%{__automake}
31ca9d34
JR
150cd runtime/staprun
151%{__aclocal}
152%{__autoconf}
153%{__autoheader}
154%{__automake}
155cd -
459a2a3b 156%configure \
099db71a
AM
157 --disable-silent-rules \
158 --enable-pie \
159 --enable-sqlite \
160 --%{?with_doc:en}%{!?with_doc:dis}able-docs \
161 --enable-server
aa39e90e
AM
162%{__make}
163
164%install
165rm -rf $RPM_BUILD_ROOT
31ca9d34 166install -d $RPM_BUILD_ROOT{/var/cache/%{name},%{systemdtmpfilesdir}}
aa39e90e 167
43d6c0ff 168%{__make} install \
aa39e90e
AM
169 DESTDIR=$RPM_BUILD_ROOT
170
31ca9d34 171cp -p %{SOURCE1} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/stap-server.conf
aa39e90e 172
099db71a
AM
173%find_lang %{name}
174
a3bbe4b0 175%clean
176rm -rf $RPM_BUILD_ROOT
177
aa39e90e
AM
178%files
179%defattr(644,root,root,755)
839ed024 180%doc AUTHORS HACKING NEWS README*
43d6c0ff 181%doc %{_docdir}
46b51978 182%attr(755,root,root) %{_bindir}/stap
839ed024 183%attr(755,root,root) %{_bindir}/stap-merge
184%attr(755,root,root) %{_bindir}/stap-report
46b51978 185%attr(755,root,root) %{_bindir}/staprun
839f235b 186%attr(755,root,root) %{_bindir}/stapsh
43d6c0ff 187%{_datadir}/%{name}
188%{_libexecdir}/%{name}
189%dir /var/cache/%{name}
839f235b
JR
190%{_mandir}/man1/stap.1*
191%{_mandir}/man1/stap-merge.1*
192%{_mandir}/man3/*.3*
193%{_mandir}/man7/*.7*
194%{_mandir}/man8/staprun.8*
099db71a
AM
195
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*
This page took 0.106442 seconds and 4 git commands to generate.