summaryrefslogtreecommitdiffstats
path: root/systemtap.spec.in
diff options
context:
space:
mode:
authorfche <fche>2008-02-28 04:21:15 +0000
committerfche <fche>2008-02-28 04:21:15 +0000
commit465e8fbf73bb49586db7876785dc14067b55e42d (patch)
tree8d369e7b46855c5df61b10c53d7f0a02830cd20b /systemtap.spec.in
parent872a4b73dc80fd865d61f17911b84494e1f820d9 (diff)
downloadsystemtap-steved-465e8fbf73bb49586db7876785dc14067b55e42d.tar.gz
systemtap-steved-465e8fbf73bb49586db7876785dc14067b55e42d.tar.xz
systemtap-steved-465e8fbf73bb49586db7876785dc14067b55e42d.zip
PR5697 part 2: tutorial/langref configury
2008-02-27 Frank Ch. Eigler <fche@elastic.org> PR5697 * configure.ac (enable-docs): Implement. * systemtap.spec.in: Add optional docs build/install/prereqs. * Makefile.am (SUBDIRS): Add doc. * Makefile.in, configure: Regenerated.
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/*