Name:           perl-RT-Extension-Nagios
Version:        1.01
Release:        1%{?dist}
Summary:        Merge and resolve Nagios tickets
License:        GPL+
Group:          Development/Libraries
URL:            http://search.cpan.org/dist/RT-Extension-Nagios/
Source0:        http://www.cpan.org/authors/id/A/AL/ALEXMV/RT-Extension-Nagios-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:      noarch
BuildRequires:  perl >= 1:5.8.3
BuildRequires:  perl(inc::Module::Install)
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(RT)
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
Nagios is a powerful monitoring system that enables organizations to
identify and resolve IT infrastructure problems before they affect critical
business processes.

%prep
%setup -q -n RT-Extension-Nagios-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT

make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT

find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;

%{_fixperms} $RPM_BUILD_ROOT/*

# Initial scrips
install -D -m644 etc/initialdata $RPM_BUILD_ROOT%{_sysconfdir}/rt/initialdata.RT-Extension-Nagios

%check
make test

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc Changes README
%{_sysconfdir}/rt/*
%{perl_vendorlib}/*
%{_mandir}/man3/*

%changelog
* Tue Jan 19 2021 Greg Wildman <greg@techno.co.za> 1.01-1
- Specfile autogenerated by cpanspec 1.78.