From 4fa4c27639fa0244d8782b5b4cbb760b4eb0a389 Mon Sep 17 00:00:00 2001 From: ensc Date: Jun 08 2005 16:16:07 +0000 Subject: - added 'BuildRequires: which' - do not use dietlibc on non-i386 archs running FC3 --- diff --git a/ip-sentinel.spec b/ip-sentinel.spec index 88bf43d..89378e0 100644 --- a/ip-sentinel.spec +++ b/ip-sentinel.spec @@ -18,6 +18,7 @@ ## This package understands the following switches: ## --without dietlibc ... disable usage of dietlibc +## --with dietlibc ... enforce dietlibc usage on archs not supporting it ## --without minit ... disable creation of 'minit' subpackage ## --with fedora ... enable fedora.us specific parts ## --define username\ name ... set the name of the user running the daemon @@ -42,12 +43,18 @@ %global minitsvcdir %minitdir/services/%name +%global have_dietlibc %(case %_target_cpu in (i*86|athlon) true;; (*) test '%{?dist}' != .fc3;; esac && echo 1 || echo 0) +%if ! %have_dietlibc +%{!?_with_dietlibc:%global _without_dietlibc --without dietlibc} +%endif + + %{!?release_func:%global release_func() %1%{?dist}} Summary: Tool to prevent unauthorized usage of IP addresses Name: ip-sentinel Version: 0.12 -Release: %release_func 2 +Release: %release_func 3 License: GPL Group: System Environment/Daemons URL: http://www.nongnu.org/ip-sentinel/ @@ -55,6 +62,7 @@ Source0: http://savannah.nongnu.org/download/ip-sentinel/%name-%version.tar.bz2 Source1: http://savannah.nongnu.org/download/ip-sentinel/%name-%version.tar.bz2.sig BuildRoot: %_tmppath/%name-%version-%release-buildroot Requires: init(ip-sentinel) +BuildRequires: which %{!?_without_dietlibc:BuildRequires: dietlibc} @@ -191,6 +199,10 @@ test "$1" = 0 || %_initrddir/%service condrestart &>/dev/null %changelog +* Wed Jun 8 2005 Enrico Scholz - 0.12-3 +- added 'BuildRequires: which' +- do not use dietlibc on non-i386 archs running FC3 + * Thu May 19 2005 Enrico Scholz - 0.12-2 - use %%dist instead of %%disttag