]> git.pld-linux.org Git - SPECS.git/blob - nagios-nxe.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / nagios-nxe.spec
1 #
2 # Conditional build:
3 %bcond_without  autodeps        # don't BR packages needed only for resolving deps
4 #
5 Summary:        Nagios XML Engine
6 Summary(pl.UTF-8):      Silnik XML dla Nagiosa
7 Name:           nagios-nxe
8 Version:        1.0
9 Release:        0.2
10 License:        GPL v2
11 Group:          Applications
12 Source0:        http://dl.sourceforge.net/nxe/NXEv1r0.tar.gz
13 # Source0-md5:  01b0747367fe96f0f302d90da29b1e3b
14 Patch0:         %{name}-2.0.patch
15 Patch1:         %{name}-config.patch
16 URL:            http://nxe.sourceforge.net/
17 BuildRequires:  rpm-perlprov >= 4.1-13
18 %if %{with autodeps}
19 BuildRequires:  perl(Sys::Hostname)
20 BuildRequires:  perl-CGI
21 BuildRequires:  perl-Frontier-RPC
22 BuildRequires:  perl-XML-Parser
23 BuildRequires:  perl-XML-Writer-String
24 BuildRequires:  perl-XML-XSLT-Wrapper
25 %endif
26 Requires(triggerpostun):        sed >= 4.0
27 BuildArch:      noarch
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %define         _sysconfdir     /etc/nxe
31
32 %description
33 The Nagios XML Engine (NXE for short) is an Open Source XML processing
34 layer for the Nagios scheduling & monitoring platform. NXE provides an
35 XML interface for the most critical aspects of managing and reporting
36 on your Nagios infrastructure via XML.
37
38 %description -l pl.UTF-8
39 NXE (Nagios XML Engine) to warstwa przetwarzania XML dla platformy
40 szeregującej i monitorującej Nagios. NXE udostępnia interfejs XML do
41 najbardziej krytycznych aspektów zarządzania i raportowania z
42 infrastruktury Nagiosa.
43
44 %prep
45 %setup -qc
46 # undos the source
47 find . -type f -print0 | xargs -0 sed -i -e 's,\r$,,'
48 %patch0
49 %patch1
50
51 %install
52 rm -rf $RPM_BUILD_ROOT
53 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir}}
54
55 install nxe.pl $RPM_BUILD_ROOT%{_bindir}/nxe
56 install nxe_client.pl $RPM_BUILD_ROOT%{_bindir}/nxe_client
57 cp -a nxe.dtd nxe.config $RPM_BUILD_ROOT%{_sysconfdir}
58
59 %clean
60 rm -rf $RPM_BUILD_ROOT
61
62 %files
63 %defattr(644,root,root,755)
64 %doc USAGE.txt nxe_sample.xsl
65 %dir %{_sysconfdir}
66 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nxe.config
67 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nxe.dtd
68 %attr(755,root,root) %{_bindir}/nxe
69 %attr(755,root,root) %{_bindir}/nxe_client
This page took 0.136222 seconds and 3 git commands to generate.