diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2008-07-09 22:44:13 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2008-07-09 22:44:13 -0400 |
commit | a00cc8c70d20f2f3429590b629d272c8db65b40f (patch) | |
tree | 6a90966d1a715c48db4ac35b891c46ef654f272f /systemtap.spec.in | |
parent | df00639dbe262b8919bdf625f30d80e5b9b96346 (diff) | |
parent | 51a3785482396c9f653e3e7647945bfc24f7b160 (diff) | |
download | systemtap-steved-a00cc8c70d20f2f3429590b629d272c8db65b40f.tar.gz systemtap-steved-a00cc8c70d20f2f3429590b629d272c8db65b40f.tar.xz systemtap-steved-a00cc8c70d20f2f3429590b629d272c8db65b40f.zip |
Merge commit 'origin/master' into pr6429-comp-unwindsyms
* commit 'origin/master':
fix shutdown race condition for scripts that might exit during begin probes
Fix PR 6732: Add runtime/autoconf-real-parent.c check for task_struct field.
clarify dejagnu test case name for empty-struct changes
add changelog entries for last two changes
Add test suite for declaration resolution
Fix semantic error: empty struct
Add hack to support git 1.6 in git_version.sh
Sync latest fix for git_version.sh from RadeonHD's tree
Slightly cleanup code of translate.cxx
PR2111: add general blurbage to stapprobes.5 on syscalls tapset
Use `uname -rvm` for checking system compatibility. Generate
Add section to stapex manual page on how installed examples are documented.
Install examples, demos and samples.
Install tutorial and langref manuals.
Diffstat (limited to 'systemtap.spec.in')
-rw-r--r-- | systemtap.spec.in | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/systemtap.spec.in b/systemtap.spec.in index e663b15a..1fdd65a4 100644 --- a/systemtap.spec.in +++ b/systemtap.spec.in @@ -130,16 +130,19 @@ cd .. %configure %{?elfutils_config} %{sqlite_config} %{crash_config} %{docs_config} make %{?_smp_mflags} +%install +rm -rf ${RPM_BUILD_ROOT} +make DESTDIR=$RPM_BUILD_ROOT install + +# We want the examples in the special doc dir, not the generoc doc install dir. +mv $RPM_BUILD_ROOT%{_datadir}/doc/systemtap/examples examples + # Fix paths in the example & testsuite scripts find examples testsuite -type f -name '*.stp' -print0 | xargs -0 sed -i -r -e '1s@^#!.+stap@#!%{_bindir}/stap@' # To avoid perl dependency, make perl sample script non-executable chmod -x examples/samples/kmalloc-top -%install -rm -rf ${RPM_BUILD_ROOT} -make DESTDIR=$RPM_BUILD_ROOT install - # Because "make install" may install staprun with mode 04111, the # post-processing programs rpmbuild runs won't be able to read it. # So, we change permissions so that they can read it. We'll set the @@ -148,8 +151,12 @@ chmod 755 $RPM_BUILD_ROOT%{_bindir}/staprun # Copy over the testsuite cp -rp testsuite $RPM_BUILD_ROOT%{_datadir}/systemtap -mkdir $RPM_BUILD_ROOT%{_datadir}/%{name}/src -cp -rp examples $RPM_BUILD_ROOT%{_datadir}/%{name}/src + +#%if %{with_docs} +# We want the manuals in the special doc dir, not the generic doc install dir. +mkdir docs.installed +mv $RPM_BUILD_ROOT%{_datadir}/doc/systemtap/*.pdf docs.installed/ +#%endif %clean rm -rf ${RPM_BUILD_ROOT} @@ -164,8 +171,7 @@ exit 0 %doc README AUTHORS NEWS COPYING examples %if %{with_docs} -%doc doc/tutorial.pdf -%doc doc/langref.pdf +%doc docs.installed/*.pdf %endif %{_bindir}/stap @@ -196,7 +202,6 @@ exit 0 %files testsuite %defattr(-,root,root) -%{_datadir}/%{name}/src %{_datadir}/%{name}/testsuite |