]> git.pld-linux.org Git - packages/nagios-alert-jabber.git/blame - nagios-alert-jabber.spec
- rel 9; actually use -c path
[packages/nagios-alert-jabber.git] / nagios-alert-jabber.spec
CommitLineData
3144b7ee 1Summary: Program to send (Nagios) alerts via jabber
d22ed022 2Summary(pl.UTF-8): Program do wysyłania alarmów (Nagiosa) przez jabbera
3144b7ee 3Name: nagios-alert-jabber
a79c5045 4Version: 1.2
458fe103 5Release: 10
3144b7ee
ER
6License: GPL
7Group: Networking
8Source0: nagios-jabber.alert
ccf64c97 9Requires: cyrus-sasl-plain
4024051d 10Requires: nagios-common
ccf64c97 11Requires: python-M2Crypto
3144b7ee
ER
12Requires: python-pyxmpp
13BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
4cc3adb3
ER
15%define _sysconfdir /etc/nagios
16
3144b7ee
ER
17%description
18nagios-jabber.alert is a program to send Nagios (or other)
19notifications over jabber protocol.
20
a3b35eb5
JR
21%description -l pl.UTF-8
22nagios-jabber.alert to program do wysyłania powiadomień Nagiosa (lub
be4c64b3
JB
23innych) po protokole jabber.
24
3144b7ee
ER
25%prep
26%setup -q -c -T
27install %{SOURCE0} .
4cc3adb3
ER
28cat <<'EOF' > jabber-notify.ini
29; jabber id and password for jabber-notify script
30[jabber_id@example.org]
31jid = jid@example.org
32password = PASSWORD
33EOF
3144b7ee
ER
34
35%install
36rm -rf $RPM_BUILD_ROOT
4cc3adb3
ER
37install -d $RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir}}
38install nagios-jabber.alert $RPM_BUILD_ROOT%{_sbindir}/nagios-notify-jabber
39cp -a jabber-notify.ini $RPM_BUILD_ROOT%{_sysconfdir}
3144b7ee
ER
40
41%clean
42rm -rf $RPM_BUILD_ROOT
43
44%files
45%defattr(644,root,root,755)
4024051d 46%attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/jabber-notify.ini
4cc3adb3 47%attr(755,root,root) %{_sbindir}/nagios-notify-jabber
This page took 0.090667 seconds and 4 git commands to generate.