8
0
Files
perl-Nagios-Plugin/perl-Nagios-Plugin.spec

81 lines
2.3 KiB
RPMSpec
Raw Normal View History

#
# 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.
%define cpan_name Nagios-Plugin
Name: perl-%cpan_name
Summary: The Perl interpreter
Version: 0.35
Release: 1
Group: Development/Languages/Perl
License: Artistic License; GPL v2 or later
Url: http://www.perl.org/
Provides: %cpan_name = %{version}-%{release}
%perl_requires
Requires: perl-Class-Accessor
Requires: perl-Config-Tiny
Requires: perl-Math-Calc-Units
Requires: perl-Params-Validate
BuildRequires: perl perl-macros
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
%description
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.
Authors:
--------
Larry Wall, Louis J. LaBash, Jr. <llabash@siue.edu>
%prep
%setup -q -n %cpan_name-%{version}
%build
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
make %{?jobs:-j%jobs}
%if 0%{?suse_version} >= 1010
%check
make test
%endif
%install
%perl_make_install
%perl_process_packlist
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc Changes MANIFEST README
%doc %{_mandir}/man?/*
%{perl_vendorlib}/Nagios
%{perl_vendorarch}/auto/Nagios
%changelog