]> git.pld-linux.org Git - packages/nagios-plugin-check_rbl.git/blobdiff - nagios-plugin-check_rbl.spec
- release 1
[packages/nagios-plugin-check_rbl.git] / nagios-plugin-check_rbl.spec
index a875656b50a037710692b6d4d0a520e8eff1075f..92b2901aa8bfa30d90e336230b49b9c7a82f301f 100644 (file)
@@ -7,22 +7,25 @@
 Summary:       check_rbl is a Nagios plugin to check if an SMTP server is blacklisted
 Name:          nagios-plugin-%{plugin}
 Version:       1.1.0
-Release:       0.4
+Release:       1
 License:       GPL
 Group:         Networking
-Source0:       http://www.id.ethz.ch/people/allid_list/corti/%{plugin}-%{version}.tar.gz
+Source0:       https://trac.id.ethz.ch/projects/nagios_plugins/downloads/%{plugin}-%{version}.tar.gz
 # Source0-md5: 724cd353d48df3f4e9a98743146cfd0f
 Source1:       %{plugin}.cfg
+Source2:       %{plugin}.ini
+Patch0:                verbose-reporting.patch
 URL:           https://trac.id.ethz.ch/projects/nagios_plugins/wiki/check_rbl
+BuildRequires: perl-ExtUtils-MakeMaker >= 6.42
+BuildRequires: rpm-perlprov >= 4.1-13
 BuildRequires: sed >= 4.0
-Requires:      nagios-common
 %if %{with tests}
 BuildRequires: perl-Nagios-Plugin
 BuildRequires: perl-Net-DNS
 BuildRequires: perl-Parallel-Iterator
 BuildRequires: perl-Readonly
 %endif
-BuildRequires: rpm-perlprov >= 4.1-13
+Requires:      nagios-common
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -36,6 +39,7 @@ check_rbl is a Nagios plugin to check if an SMTP server is blacklisted
 
 %prep
 %setup -q -n %{plugin}-%{version}
+%patch0 -p1
 
 %{__sed} -i -e '
 # no need for debug dependency
@@ -60,6 +64,7 @@ rm -rf $RPM_BUILD_ROOT
 
 install -d $RPM_BUILD_ROOT%{_sysconfdir}
 cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{plugin}.cfg
+cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/%{plugin}.ini
 
 rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
 rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/check_rbl/.packlist
@@ -72,5 +77,6 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc AUTHORS Changes NEWS README INSTALL TODO VERSION
 %attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{plugin}.cfg
+%attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{plugin}.ini
 %attr(755,root,root) %{plugindir}/%{plugin}
 %{_mandir}/man3/*.3pm*
This page took 0.097625 seconds and 4 git commands to generate.