131 lines
4.2 KiB
RPMSpec
131 lines
4.2 KiB
RPMSpec
![]() |
#
|
||
|
# spec file for package perl-Monitor-Simple
|
||
|
#
|
||
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||
|
#
|
||
|
# 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.
|
||
|
|
||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||
|
#
|
||
|
|
||
|
|
||
|
|
||
|
Name: perl-Monitor-Simple
|
||
|
Version: 0.2.1
|
||
|
Release: 0
|
||
|
Summary: Perl Module for Simple Monitoring of Applications and Services
|
||
|
Source: http://search.cpan.org/CPAN/authors/id/T/TU/TULSOFT/Monitor-Simple-%{version}.tar.gz
|
||
|
Url: http://search.cpan.org/dist/Monitor-Simple
|
||
|
Group: Development/Libraries/Perl
|
||
|
License: GNU General Public License version 2 or later or Artistic (GPLv2+ or Artistic)
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
|
%{perl_requires}
|
||
|
BuildRequires: perl-macros
|
||
|
BuildRequires: make
|
||
|
BuildRequires: perl(Test::More)
|
||
|
BuildRequires: perl(FindBin)
|
||
|
BuildRequires: perl(File::Slurp)
|
||
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
|
||
|
BuildRequires: perl(Parallel::ForkManager)
|
||
|
BuildRequires: perl(Pod::Usage)
|
||
|
BuildRequires: perl(IO::CaptureOutput)
|
||
|
BuildRequires: perl(File::Spec)
|
||
|
BuildRequires: perl(Fcntl)
|
||
|
BuildRequires: perl(XML::Simple)
|
||
|
BuildRequires: perl(Getopt::Long) >= 2.38
|
||
|
BuildRequires: perl(warnings)
|
||
|
BuildRequires: perl(Data::Dumper)
|
||
|
BuildRequires: perl(Time::HiRes)
|
||
|
BuildRequires: perl(constant)
|
||
|
BuildRequires: perl(Carp)
|
||
|
BuildRequires: perl(strict)
|
||
|
BuildRequires: perl(LWP::UserAgent)
|
||
|
BuildRequires: perl(File::Temp)
|
||
|
BuildRequires: perl(File::Basename)
|
||
|
BuildRequires: perl(Log::Log4perl)
|
||
|
Requires: perl(Parallel::ForkManager)
|
||
|
Requires: perl(Pod::Usage)
|
||
|
Requires: perl(IO::CaptureOutput)
|
||
|
Requires: perl(File::Spec)
|
||
|
Requires: perl(Fcntl)
|
||
|
Requires: perl(XML::Simple)
|
||
|
Requires: perl(Getopt::Long) >= 2.38
|
||
|
Requires: perl(warnings)
|
||
|
Requires: perl(Data::Dumper)
|
||
|
Requires: perl(Time::HiRes)
|
||
|
Requires: perl(constant)
|
||
|
Requires: perl(Carp)
|
||
|
Requires: perl(strict)
|
||
|
Requires: perl(LWP::UserAgent)
|
||
|
Requires: perl(File::Temp)
|
||
|
Requires: perl(File::Basename)
|
||
|
Requires: perl(Log::Log4perl)
|
||
|
%if 0%{?suse_version} >= 1120
|
||
|
BuildArch: noarch
|
||
|
%endif
|
||
|
Recommends: smonitor = %{version}-%{release}
|
||
|
|
||
|
%description
|
||
|
The Monitor::Simple allows simple monitoring of applications and services
|
||
|
of your IT infrastructure. There are many such tools, some of them very
|
||
|
complex and sophisticated. For example, one widely used is *Nagios*
|
||
|
(<http://www.nagios.org/>). The Monitor::Simple does not aim, as its
|
||
|
name indicates, for all features provided by those tools. It allows,
|
||
|
however, to check whether your applications and services are running
|
||
|
correctly. Its simple command-line interface can be used in cron jobs and
|
||
|
reports can be viewed as a single HTML or text page.
|
||
|
|
||
|
%package -n smonitor
|
||
|
Summary: Simple Monitoring of Applications and Services
|
||
|
Group: System/Monitoring
|
||
|
Requires: %{name} = %{version}-%{release}
|
||
|
|
||
|
%description -n smonitor
|
||
|
smonitor allows simple monitoring of applications and services of your IT
|
||
|
infrastructure.
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n "Monitor-Simple-%{version}"
|
||
|
%__sed -i '/^auto_install/d' Makefile.PL
|
||
|
|
||
|
%build
|
||
|
%__perl Makefile.PL PREFIX="%{_prefix}"
|
||
|
%__make %{?_smp_flags}
|
||
|
|
||
|
%install
|
||
|
%perl_make_install
|
||
|
%perl_process_packlist
|
||
|
|
||
|
# currently disabled, unstable tests:
|
||
|
%if 0
|
||
|
|
||
|
%check
|
||
|
%__make test
|
||
|
%endif
|
||
|
|
||
|
%clean
|
||
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%doc LICENSE README
|
||
|
%dir %{perl_vendorlib}/Monitor
|
||
|
%{perl_vendorlib}/Monitor/Simple.pm
|
||
|
%{perl_vendorlib}/Monitor/Simple
|
||
|
%doc %{perl_man3dir}/Monitor::Simple.%{perl_man3ext}%{ext_man}
|
||
|
%doc %{perl_man3dir}/Monitor::Simple::*.%{perl_man3ext}%{ext_man}
|
||
|
|
||
|
%files -n smonitor
|
||
|
%defattr(-,root,root)
|
||
|
%{_bindir}/smonitor
|
||
|
%doc %{_mandir}/man1/smonitor.1*
|
||
|
|
||
|
%changelog
|