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