diff --git a/.cvsignore b/.cvsignore index 0d51935..96a8a35 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -systemtap-0.8.tar.gz +systemtap-0.9.tar.gz diff --git a/sources b/sources index 4fe0e1e..b0054d1 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -e8806e03090f6bff4501df2e5e239717 systemtap-0.8.tar.gz +d4fff2b34d730be78236ebd1758979f6 systemtap-0.9.tar.gz diff --git a/systemtap.spec b/systemtap.spec index c8c6b03..8bf3f21 100644 --- a/systemtap.spec +++ b/systemtap.spec @@ -1,5 +1,5 @@ %{!?release: %define release 1} -%{!?with_sqllite: %define with_sqlite 1} +%{!?with_sqlite: %define with_sqlite 1} %{!?with_docs: %define with_docs 1} %{!?with_crash: %define with_crash 0} %{!?with_bundled_elfutils: %define with_bundled_elfutils 0} @@ -7,7 +7,7 @@ Name: systemtap # for version, see also configure.ac -Version: 0.8 +Version: 0.9 Release: %{release}%{?dist} Summary: Instrumentation System Group: Development/System @@ -20,16 +20,17 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: kernel >= 2.6.9-11 %if %{with_sqlite} BuildRequires: sqlite-devel -Requires: sqlite %endif %if %{with_crash} BuildRequires: crash-devel zlib-devel %endif -# Requires: kernel-devel -# or is that kernel-smp-devel? kernel-hugemem-devel? +# Alternate kernel packages kernel-PAE-devel et al have a virtual +# provide for kernel-devel, so this requirement does the right thing. +Requires: kernel-devel Requires: gcc make # Suggest: kernel-debuginfo Requires: systemtap-runtime = %{version}-%{release} +BuildRequires: nss-devel %if %{with_bundled_elfutils} Source1: elfutils-%{elfutils_version}.tar.gz @@ -44,6 +45,10 @@ Requires: crash %if %{with_docs} BuildRequires: /usr/bin/latex /usr/bin/dvips /usr/bin/ps2pdf latex2html +# On F10, xmlto's pdf support was broken off into a sub-package, +# called 'xmlto-tex'. To avoid a specific F10 BuildReq, we'll do a +# file-based buildreq on '/usr/share/xmlto/format/fo/pdf'. +BuildRequires: xmlto /usr/share/xmlto/format/fo/pdf %endif %description @@ -81,7 +86,7 @@ Group: Development/System License: GPLv2+ URL: http://sourceware.org/systemtap/ Requires: systemtap-runtime = %{version}-%{release} -Requires: avahi avahi-tools nc mktemp +Requires: avahi avahi-tools nss nss-tools mktemp %description client SystemTap client is the client component of an instrumentation @@ -94,13 +99,33 @@ Group: Development/System License: GPLv2+ URL: http://sourceware.org/systemtap/ Requires: systemtap -Requires: avahi avahi-tools nc net-tools mktemp +Requires: avahi avahi-tools nss nss-tools mktemp %description server SystemTap server is the server component of an instrumentation system for systems running Linux 2.6. Developers can write instrumentation to collect data on the operation of the system. +%package sdt-devel +Summary: Static probe support tools +Group: Development/System +License: GPLv2+ +URL: http://sourceware.org/systemtap/ +Requires: systemtap + +%description sdt-devel +Support tools to allow applications to use static probes. + +%package initscript +Summary: Systemtap Initscript +Group: Development/System +License: GPLv2+ +URL: http://sourceware.org/systemtap/ +Requires: systemtap-runtime, initscripts + +%description initscript +Initscript for Systemtap scripts. + %prep %setup -q %{?setup_elfutils} @@ -185,8 +210,18 @@ cp -rp testsuite $RPM_BUILD_ROOT%{_datadir}/systemtap # %doc directive. mkdir docs.installed mv $RPM_BUILD_ROOT%{_datadir}/doc/systemtap/*.pdf docs.installed/ +#mv $RPM_BUILD_ROOT%{_datadir}/doc/systemtap/tapsets docs.installed/ %endif +mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/init.d/ +install -m 755 initscript/systemtap $RPM_BUILD_ROOT%{_sysconfdir}/init.d/ +mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/systemtap +mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/systemtap/conf.d +mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/systemtap/script.d +install -m 644 initscript/config $RPM_BUILD_ROOT%{_sysconfdir}/systemtap +mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/cache/systemtap +mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/systemtap + %clean rm -rf ${RPM_BUILD_ROOT} @@ -195,12 +230,22 @@ getent group stapdev >/dev/null || groupadd -r stapdev getent group stapusr >/dev/null || groupadd -r stapusr exit 0 +%post initscript +chkconfig --add systemtap +exit 0 + +%preun initscript +chkconfig --del systemtap +exit 0 + + %files %defattr(-,root,root) %doc README AUTHORS NEWS COPYING examples %if %{with_docs} %doc docs.installed/*.pdf +#%doc docs.installed/tapsets %endif %{_bindir}/stap @@ -240,6 +285,8 @@ exit 0 %{_bindir}/stap-client %{_bindir}/stap-find-servers %{_bindir}/stap-find-or-start-server +%{_bindir}/stap-add-server-cert +%{_bindir}/stap-client-connect %{_mandir}/man8/stap-server.8* %files server @@ -248,9 +295,31 @@ exit 0 %{_bindir}/stap-serverd %{_bindir}/stap-start-server %{_bindir}/stap-stop-server +%{_bindir}/stap-gen-server-cert +%{_bindir}/stap-server-connect %{_mandir}/man8/stap-server.8* +%files sdt-devel +%defattr(-,root,root) +%{_bindir}/dtrace +%{_includedir}/sys/sdt.h + +%files initscript +%defattr(-,root,root) +%{_sysconfdir}/init.d/systemtap +%dir %{_sysconfdir}/systemtap +%dir %{_sysconfdir}/systemtap/conf.d +%dir %{_sysconfdir}/systemtap/script.d +%config(noreplace) %{_sysconfdir}/systemtap/config +%dir %{_localstatedir}/cache/systemtap +%dir %{_localstatedir}/run/systemtap +%doc initscript/README.initscript + + %changelog +* Tue Feb 17 2009 Frank Ch. Eigler - 0.9-1 +- Upstream release. + * Thu Nov 13 2008 Frank Ch. Eigler - 0.8-1 - Upstream release.