2008-12-04 12:32:18 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Nagios-Plugin
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2008-05-19 15:02:12 +00:00
|
|
|
|
2008-12-04 12:32:18 +00:00
|
|
|
%define cpan_name Nagios-Plugin
|
|
|
|
Name: perl-%cpan_name
|
|
|
|
Summary: The Perl interpreter
|
|
|
|
Version: 0.28
|
|
|
|
Release: 1
|
|
|
|
Group: Development/Languages/Perl
|
|
|
|
License: Artistic License; GPL v2 or later
|
|
|
|
Url: http://www.perl.org/
|
|
|
|
Provides: %cpan_name = %{version}-%{release}
|
|
|
|
Requires: perl = %{perl_version}
|
|
|
|
Requires: perl-Class-Accessor
|
|
|
|
Requires: perl-Config-Tiny
|
|
|
|
Requires: perl-Math-Calc-Units
|
|
|
|
Requires: perl-Params-Validate
|
2010-12-05 13:03:51 +00:00
|
|
|
BuildRequires: perl perl-macros
|
2008-12-04 12:32:18 +00:00
|
|
|
BuildRequires: perl-Class-Accessor
|
|
|
|
BuildRequires: perl-Config-Tiny
|
|
|
|
BuildRequires: perl-Math-Calc-Units
|
|
|
|
BuildRequires: perl-Params-Validate
|
|
|
|
Source: %cpan_name-%{version}.tar.bz2
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2008-05-19 15:02:12 +00:00
|
|
|
|
|
|
|
%description
|
2008-12-04 12:32:18 +00:00
|
|
|
perl - Practical Extraction and Report Language
|
|
|
|
|
|
|
|
Perl is optimized for scanning arbitrary text files, extracting
|
|
|
|
information from those text files, and printing reports based on that
|
|
|
|
information. It is also good for many system management tasks. Perl is
|
|
|
|
intended to be practical (easy to use, efficient, and complete) rather
|
|
|
|
than beautiful (tiny, elegant, and minimal).
|
|
|
|
|
|
|
|
Some of the modules available on CPAN can be found in the "perl"
|
|
|
|
series.
|
2008-12-04 12:31:40 +00:00
|
|
|
|
|
|
|
|
2008-05-19 15:02:12 +00:00
|
|
|
|
2008-12-04 12:32:18 +00:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Larry Wall, Louis J. LaBash, Jr. <llabash@siue.edu>
|
2008-05-19 15:02:12 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %cpan_name-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
2008-12-04 12:31:40 +00:00
|
|
|
make %{?jobs:-j%jobs}
|
|
|
|
|
2008-05-19 15:02:12 +00:00
|
|
|
%if 0%{?suse_version} >= 1010
|
2008-12-04 12:31:40 +00:00
|
|
|
%check
|
2008-05-19 15:02:12 +00:00
|
|
|
make test
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%install
|
2008-12-04 12:31:40 +00:00
|
|
|
%perl_make_install
|
2008-05-19 15:02:12 +00:00
|
|
|
%perl_process_packlist
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2008-12-04 12:31:40 +00:00
|
|
|
%doc Changes MANIFEST README
|
2008-05-19 15:02:12 +00:00
|
|
|
%doc %{_mandir}/man?/*
|
|
|
|
%{perl_vendorlib}/Nagios
|
|
|
|
%{perl_vendorarch}/auto/Nagios
|
|
|
|
|
2008-12-04 12:31:40 +00:00
|
|
|
%changelog
|