diff options
author | Dave Brolley <brolley@redhat.com> | 2009-05-27 11:45:29 -0400 |
---|---|---|
committer | Dave Brolley <brolley@redhat.com> | 2009-05-27 11:45:29 -0400 |
commit | 99587ed126351da39b002a1363703b2f7749a49c (patch) | |
tree | 4a986213076e7f46881c9ea52723d36cce45f398 /systemtap.spec | |
parent | 422be92440f596bea6b933965072916c480ea22b (diff) | |
parent | 2ed04863c3426f94932d4a4e4b5d6c7b84e49dfd (diff) | |
download | systemtap-steved-99587ed126351da39b002a1363703b2f7749a49c.tar.gz systemtap-steved-99587ed126351da39b002a1363703b2f7749a49c.tar.xz systemtap-steved-99587ed126351da39b002a1363703b2f7749a49c.zip |
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Diffstat (limited to 'systemtap.spec')
-rw-r--r-- | systemtap.spec | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/systemtap.spec b/systemtap.spec index 3bce0325..fab9c41c 100644 --- a/systemtap.spec +++ b/systemtap.spec @@ -1,6 +1,7 @@ %{!?with_sqlite: %define with_sqlite 1} %{!?with_docs: %define with_docs 1} %{!?with_crash: %define with_crash 0} +%{!?with_rpm: %define with_rpm 1} %{!?with_bundled_elfutils: %define with_bundled_elfutils 0} %{!?elfutils_version: %define elfutils_version 0.127} %{!?pie_supported: %define pie_supported 1} @@ -25,6 +26,9 @@ BuildRequires: sqlite-devel %if %{with_crash} BuildRequires: crash-devel zlib-devel %endif +%if %{with_rpm} +BuildRequires: rpm-devel glibc-headers +%endif # 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 @@ -172,6 +176,13 @@ cd .. %define crash_config --disable-crash %endif +# Enable/disable the code to find and suggest needed rpms +%if %{with_rpm} +%define rpm_config --with-rpm +%else +%define rpm_config --without-rpm +%endif + %if %{with_docs} %define docs_config --enable-docs %else @@ -192,7 +203,7 @@ cd .. %endif -%configure %{?elfutils_config} %{sqlite_config} %{crash_config} %{docs_config} %{pie_config} %{grapher_config} +%configure %{?elfutils_config} %{sqlite_config} %{crash_config} %{docs_config} %{pie_config} %{grapher_config} %{rpm_config} make %{?_smp_mflags} %install |