3 %bcond_without autodeps # don't BR packages needed only for resolving deps
5 Summary: Nagios XML Engine
6 Summary(pl.UTF-8): Silnik XML dla Nagiosa
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
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
26 Requires(triggerpostun): sed >= 4.0
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 %define _sysconfdir /etc/nxe
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.
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.
47 find . -type f -print0 | xargs -0 sed -i -e 's,\r$,,'
52 rm -rf $RPM_BUILD_ROOT
53 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir}}
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}
60 rm -rf $RPM_BUILD_ROOT
63 %defattr(644,root,root,755)
64 %doc USAGE.txt nxe_sample.xsl
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