From c1a6298c17820edb57784c85a9d219d68a2448d6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 13 Sep 2011 05:47:43 +0000 Subject: [PATCH] - include cvs rev in package version Changed files: nagios-plugin-check_raid.spec -> 1.27 --- nagios-plugin-check_raid.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/nagios-plugin-check_raid.spec b/nagios-plugin-check_raid.spec index c26dd30..c117b7b 100644 --- a/nagios-plugin-check_raid.spec +++ b/nagios-plugin-check_raid.spec @@ -3,8 +3,8 @@ %define plugin check_raid Summary: Nagios plugin to check current server's RAID status Name: nagios-plugin-%{plugin} -Version: 2.1 -Release: 13 +Version: 2.1.1.97 +Release: 1 License: GPL v2 Group: Networking Source0: %{plugin} @@ -44,11 +44,14 @@ Supports: %setup -qcT cp -p %{SOURCE0} %{plugin} +rev=$(awk '/Id: check_raid/{print $4}' check_raid) +test %{version} = 2.1.$rev + %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{plugindir}} install -p %{plugin} $RPM_BUILD_ROOT%{plugindir}/%{plugin} -cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{plugin}.cfg +cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{plugin}.cfg %clean rm -rf $RPM_BUILD_ROOT -- 2.44.0