summaryrefslogtreecommitdiffstats
path: root/systemtap.spec.in
diff options
context:
space:
mode:
Diffstat (limited to 'systemtap.spec.in')
-rw-r--r--systemtap.spec.in19
1 files changed, 18 insertions, 1 deletions
diff --git a/systemtap.spec.in b/systemtap.spec.in
index 7d0579f2..caaf7e9e 100644
--- a/systemtap.spec.in
+++ b/systemtap.spec.in
@@ -5,6 +5,7 @@
# Default options (suitable for fedora)
%define with_sqlite 1
+%define with_docs 1
%define with_crash 0
%define with_bundled_elfutils 0
@@ -51,6 +52,10 @@ BuildRequires: elfutils-devel >= %{elfutils_version}
Requires: crash
%endif
+%if %{with_docs}
+BuildRequires: /usr/bin/latex /usr/bin/dvips /usr/bin/ps2pdf latex2html
+%endif
+
%description
SystemTap is an instrumentation system for systems running Linux 2.6.
Developers can write instrumentation to collect data on the operation
@@ -124,7 +129,15 @@ cd ..
%define crash_config --disable-crash
%endif
-%configure %{?elfutils_config} %{sqlite_config} %{crash_config}
+%if %{with_docs}
+%define docs_config --enable-docs
+%else
+%define docs_config --disable-docs
+%endif
+
+
+
+%configure %{?elfutils_config} %{sqlite_config} %{crash_config} %{docs_config}
make %{?_smp_mflags}
# Fix paths in the example & testsuite scripts
@@ -160,6 +173,10 @@ exit 0
%defattr(-,root,root)
%doc README AUTHORS NEWS COPYING examples
+%if %{with_docs}
+%doc doc/tutorial.pdf
+%doc doc/langref.pdf
+%endif
%{_bindir}/stap
%{_mandir}/man1/*