From 465e8fbf73bb49586db7876785dc14067b55e42d Mon Sep 17 00:00:00 2001 From: fche Date: Thu, 28 Feb 2008 04:21:15 +0000 Subject: PR5697 part 2: tutorial/langref configury 2008-02-27 Frank Ch. Eigler PR5697 * configure.ac (enable-docs): Implement. * systemtap.spec.in: Add optional docs build/install/prereqs. * Makefile.am (SUBDIRS): Add doc. * Makefile.in, configure: Regenerated. --- systemtap.spec.in | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'systemtap.spec.in') 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/* -- cgit