SPECS: nagios-plugin-check_lexprn.spec - unify, noarch

glen glen at pld-linux.org
Thu Mar 13 17:44:22 CET 2008


Author: glen                         Date: Thu Mar 13 16:44:22 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- unify, noarch

---- Files affected:
SPECS:
   nagios-plugin-check_lexprn.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SPECS/nagios-plugin-check_lexprn.spec
diff -u SPECS/nagios-plugin-check_lexprn.spec:1.1 SPECS/nagios-plugin-check_lexprn.spec:1.2
--- SPECS/nagios-plugin-check_lexprn.spec:1.1	Thu Mar 13 17:02:56 2008
+++ SPECS/nagios-plugin-check_lexprn.spec	Thu Mar 13 17:44:16 2008
@@ -1,5 +1,7 @@
 # $Revision$, $Date$
-%define		namescript check_lexprn
+# TODO
+# - provide default checkcommand config
+%define		plugin check_lexprn
 %include	/usr/lib/rpm/macros.perl
 Summary:	Nagios Plugin for checking the status of Lexmark printers
 Summary(pl.UTF-8):	Wtyczka Nagiosa do sprawdzania stanu drukarek Lexmark
@@ -8,14 +10,16 @@
 Release:	1
 License:	GPL
 Group:		Networking
-Source0:	http://www.universalnet.at/projects/check_lexprn/%{namescript}-%{version}.tar.gz
+Source0:	http://www.universalnet.at/projects/check_lexprn/%{plugin}-%{version}.tar.gz
 # Source0-md5:	b2234770a61360957a2520f6c7e39bd3
 URL:		http://www.universalnet.at/
 BuildRequires:	rpm-perlprov >= 4.1-13
 Requires:	nagios-core
+Requires:	nagios-plugins-libs
+BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define		_plugindir	%{_libdir}/nagios/plugins
+%define		_plugindir	%{_prefix}/lib/nagios/plugins
 %define		_sysconfdir	/etc/nagios/plugins
 
 %description
@@ -23,16 +27,16 @@
 of Lexmark printers.
 
 %description -l pl.UTF-8
-check_lexprn to wtyczka Nagiosa do monitorowania stanu drukarek Lexmark.
+check_lexprn to wtyczka Nagiosa do monitorowania stanu drukarek
+Lexmark.
 
 %prep
-%setup -q -n %{namescript}
+%setup -q -n %{plugin}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_plugindir}
-
-install %{namescript} $RPM_BUILD_ROOT%{_plugindir}/
+install %{plugin} $RPM_BUILD_ROOT%{_plugindir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -40,7 +44,7 @@
 %files
 %defattr(644,root,root,755)
 %doc INSTALL.TXT
-%attr(755,root,root) %{_plugindir}/*
+%attr(755,root,root) %{_plugindir}/%{plugin}
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -48,6 +52,8 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2008-03-13 16:44:16  glen
+- unify, noarch
+
 Revision 1.1  2008-03-13 16:02:56  baggins
 - initial revision
-
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/nagios-plugin-check_lexprn.spec?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list