From 1074f79d6acf34a1f0185db1ef9dae2f69d5c6cc Mon Sep 17 00:00:00 2001 From: roland Date: Mon, 17 Jul 2006 09:01:11 +0000 Subject: 2006-07-17 Roland McGrath * configure.ac, systemtap.spec.in: Require elfutils-0.122. * configure: Regenerated. * systemtap.spec.in (Release): Use %{?dist}. --- systemtap.spec.in | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) (limited to 'systemtap.spec.in') diff --git a/systemtap.spec.in b/systemtap.spec.in index 57af8ffc..47cb7dfb 100644 --- a/systemtap.spec.in +++ b/systemtap.spec.in @@ -1,10 +1,32 @@ -# Yo! DO NOT CHANGE THE FOLLOWING LINE. +# Release number for rpm build. Stays at 1 for new PACKAGE_VERSION increases. +%define release 1 +# Version number of oldest elfutils release that works with systemtap. +%define elfutils_version 0.122 + +# Set bundled_elfutils to 0 on systems that have %{elfutils_version} or newer. +%if 0%{?fedora} +%define bundled_elfutils 1 +%if "%fedora" >= "6" +%define bundled_elfutils 0 +%endif +%endif + +%if 0%{?rhel} %define bundled_elfutils 1 -%define elfutils_version 0.121 +%if "%rhel" >= "5" +%define bundled_elfutils 0 +%endif +%endif + +%ifndef bundled_elfutils +# Yo! DO NOT TOUCH THE FOLLOWING LINE. +# You can use rpmbuild --define "bundled_elfutils 0" for a build of your own. +%define bundled_elfutils 1 +%endif Name: systemtap Version: @VERSION@ -Release: 1 +Release: %{release}%{?dist} Summary: Instrumentation System Group: Development/System License: GPL -- cgit