1 |
slords |
1.4 |
# $Id: nagios-plugins-generic.spec,v 1.3 2008/04/02 15:03:55 slords Exp $ |
2 |
slords |
1.3 |
# Authority: mweinber |
3 |
|
|
# Name: Michael Weinberger |
4 |
|
|
|
5 |
slords |
1.1 |
Summary: Nagios plugin check_generic |
6 |
|
|
%define name nagios-plugins-generic |
7 |
|
|
Name: %{name} |
8 |
|
|
%define version 1.0.0 |
9 |
slords |
1.2 |
%define release 0 |
10 |
slords |
1.1 |
Version: %{version} |
11 |
slords |
1.2 |
Release: %{release}%{?dist} |
12 |
slords |
1.1 |
License: GPL |
13 |
|
|
Group: Applications/System |
14 |
|
|
URL: http://www.my-plugin.de/wiki/doku.php |
15 |
|
|
Source: %{name}-%{version}.tar.gz |
16 |
|
|
BuildRoot: /var/tmp/%{name}-buildroot/ |
17 |
|
|
BuildArch: noarch |
18 |
|
|
Requires: nagios |
19 |
|
|
AutoReq: no |
20 |
|
|
|
21 |
|
|
%changelog |
22 |
|
|
* Thu Nov 1 2007 Michael Weinberger <mweinber@neddix.de> |
23 |
|
|
- Initial release |
24 |
|
|
|
25 |
|
|
%description |
26 |
|
|
http://www.my-plugin.de/wiki/doku.php/projects:check_generic:start |
27 |
slords |
1.2 |
|
28 |
slords |
1.1 |
%prep |
29 |
|
|
%setup -q -n %{name}-%{version} |
30 |
|
|
|
31 |
|
|
%build |
32 |
|
|
|
33 |
|
|
%install |
34 |
|
|
rm -rf $RPM_BUILD_ROOT |
35 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
36 |
|
|
rm -f %{name}-%{version}-filelist |
37 |
|
|
find $RPM_BUILD_ROOT -depth -type f -print |\ |
38 |
|
|
sed -e "s@^$RPM_BUILD_ROOT@@g" \ |
39 |
|
|
-e "s@^/usr/lib/nagios/plugins/@%attr(0550,nagios,root) &@"\ |
40 |
|
|
>> %{name}-%{version}-filelist |
41 |
|
|
find $RPM_BUILD_ROOT -depth -type l -print |\ |
42 |
|
|
sed "s@^$RPM_BUILD_ROOT@@g" >> %{name}-%{version}-filelist |
43 |
|
|
|
44 |
|
|
%clean |
45 |
|
|
rm -rf $RPM_BUILD_ROOT |
46 |
|
|
|
47 |
|
|
%files -f %{name}-%{version}-filelist |
48 |
|
|
%defattr(-,root,root) |