]> git.pld-linux.org Git - packages/nagios-plugin-check_rbl.git/blobdiff - nagios-plugin-check_rbl.spec
- fix killing of $VERSION; rel 2
[packages/nagios-plugin-check_rbl.git] / nagios-plugin-check_rbl.spec
index 0bc60bc903c80c4212eaea70037e9b202c5262d8..a317ad638a3ca6f1f2ae55ad6f9140957ecbe731 100644 (file)
@@ -4,27 +4,27 @@
 
 %include       /usr/lib/rpm/macros.perl
 %define                plugin  check_rbl
-Summary:       check_rbl is a Nagios plugin to check if an SMTP server is blacklisted
+Summary:       Nagios plugin to check if an server is blacklisted in RBL servers
 Name:          nagios-plugin-%{plugin}
-Version:       1.1.0
-Release:       0.7
+Version:       1.2.0
+Release:       2
 License:       GPL
 Group:         Networking
 Source0:       https://trac.id.ethz.ch/projects/nagios_plugins/downloads/%{plugin}-%{version}.tar.gz
-# Source0-md5: 724cd353d48df3f4e9a98743146cfd0f
+# Source0-md5: 630902d9d7b644a0ab6537030ec40f12
 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)
 
@@ -34,18 +34,14 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %define                plugindir       %{_prefix}/lib/nagios/plugins
 
 %description
-check_rbl is a Nagios plugin to check if an SMTP server is blacklisted
+Nagios plugin to check if an server is blacklisted in RBL servers.
 
 %prep
 %setup -q -n %{plugin}-%{version}
-%patch0 -p1
 
+# https://trac.id.ethz.ch/projects/nagios_plugins/ticket/68
 %{__sed} -i -e '
-# no need for debug dependency
-/use Data::Dumper;/d
-
-# not needed, so kill to avoid extra dep
-/use version;/d
+s/use version;\s*//
 ' %{plugin}
 
 %build
@@ -78,4 +74,4 @@ rm -rf $RPM_BUILD_ROOT
 %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*
+%{_mandir}/man1/check_rbl.1*
This page took 0.050544 seconds and 4 git commands to generate.