Author: glen Date: Thu Apr 6 23:33:47 2006 GMT Module: SPECS Tag: HEAD ---- Log message: - add 2.0 patch - more packaging
---- Files affected: SPECS: nagios-nxe.spec (1.1 -> 1.2) ---- Diffs: ================================================================ Index: SPECS/nagios-nxe.spec diff -u SPECS/nagios-nxe.spec:1.1 SPECS/nagios-nxe.spec:1.2 --- SPECS/nagios-nxe.spec:1.1 Fri Apr 7 00:45:24 2006 +++ SPECS/nagios-nxe.spec Fri Apr 7 01:33:42 2006 @@ -1,4 +1,7 @@ # $Revision$, $Date$ +# +# Conditional build: +%bcond_without autodeps # don't BR packages needed only for resolving deps %include /usr/lib/rpm/macros.perl Summary: Nagios XML Engine Name: nagios-nxe @@ -8,11 +11,24 @@ Group: Applications Source0: http://dl.sourceforge.net/nxe/NXEv1r0.tar.gz # Source0-md5: 01b0747367fe96f0f302d90da29b1e3b +Patch0: %{name}-2.0.patch +Patch1: %{name}-config.patch URL: http://nxe.sourceforge.net/ BuildRequires: rpm-perlprov >= 4.1-13 +%if %{with autodeps} +BuildRequires: perl(Sys::Hostname) +BuildRequires: perl-CGI +BuildRequires: perl-Frontier-RPC +BuildRequires: perl-XML-Parser +BuildRequires: perl-XML-Writer-String +BuildRequires: perl-XML-XSLT-Wrapper +%endif + Requires(triggerpostun): sed >= 4.0 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) +%define _sysconfdir /etc/nxe + %description The Nagios XML Engine (NXE for short) is an Open Source XML processing layer for the Nagios scheduling & monitoring platform. NXE provides an @@ -23,21 +39,28 @@ %setup -qc # undos the source find . -type f -print0 | xargs -0 sed -i -e 's,\r$,,' +%patch0 +%patch1 %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT%{_bindir} +install -d $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir}} -install nxe.pl nxe_client.pl $RPM_BUILD_ROOT%{_bindir} +install nxe.pl $RPM_BUILD_ROOT%{_bindir}/nxe +install nxe_client.pl $RPM_BUILD_ROOT%{_bindir}/nxe_client +cp -a nxe.dtd nxe.config $RPM_BUILD_ROOT%{_sysconfdir} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%doc USAGE.txt -%attr(755,root,root) %{_bindir}/nxe.pl -%attr(755,root,root) %{_bindir}/nxe_client.pl +%doc USAGE.txt nxe_sample.xsl +%dir %{_sysconfdir} +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nxe.config +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nxe.dtd +%attr(755,root,root) %{_bindir}/nxe +%attr(755,root,root) %{_bindir}/nxe_client %define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) %changelog @@ -45,6 +68,9 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.2 2006/04/06 23:33:42 glen +- add 2.0 patch +- more packaging + Revision 1.1 2006/04/06 22:45:24 glen - new, NFY - ================================================================ ---- CVS-web: http://cvs.pld-linux.org/SPECS/nagios-nxe.spec?r1=1.1&r2=1.2&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
