Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
>
nagios-check_updates
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 2
[-]
[+]
Changed
check_updates.spec
@@ -1,7 +1,7 @@ %define version 1.1.2 %define release 0 %define pname check_updates -%define _prefix /usr/lib/nagios/plugins/contrib +%define _plugindir /usr/lib/nagios/plugins Summary: A Nagios plugin to check if RedHat or Fedora system is up-to-date Name: nagios-plugins-check_updates @@ -22,15 +22,14 @@ %setup -q -n %{pname}-%{version} %build -%__perl Makefile.PL \ - INSTALLSCRIPT=%{buildroot}%{_prefix}/lib/nagios/plugins \ - INSTALLSITEMAN3DIR=%{buildroot}/usr/share/man/man3 \ - INSTALLSITESCRIPT=%{buildroot}%{_prefix}/lib/nagios/plugins \ - INSTALLBIN=%{buildroot}%{_prefix}/lib/nagios/plugins +%__perl Makefile.PL INSTALLSCRIPT=%{_plugindir} \ + INSTALLSITEMAN3DIR=%{_mandir}/man3 \ + INSTALLSITESCRIPT=%{_plugindir} %__make %install -%__make install +%__make DESTDIR=%{buildroot} install +rm -rf %{buildroot}%{_prefix}/lib/perl5 %clean rm -rf $RPM_BUILD_ROOT @@ -38,8 +37,8 @@ %files %defattr(-, root, root, 0644) %doc AUTHORS Changes NEWS README INSTALL TODO COPYING VERSION -%attr(0755, root, root) %{_prefix}/lib/nagios/plugins/%{name} -%attr(0755, root, root) /usr/share/man/man3/%{name}.3pm.gz +%attr(0755, root, root) %{_plugindir}/%{pname} +%attr(0755, root, root) %{_mandir}/man3/%{pname}.3pm* %changelog * Mon Nov 17 2008 Carsten Schoene <cs@linux-administrator.com>