File lnxhc.spec of Package lnxhc

#
# spec file for package lnxhc
#
# 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.
#


Name:           lnxhc
Version:        1.0
Release:        1
License:        EPL-1.0
Summary:        Linux Health Checker framework and base health checks
Url:            http://lnxhc.sourceforge.net/
%if 0%{?suse_version}
Group:          System/Monitoring
%else
Group:          Applications/System
%endif
Source0:        http://downloads.sourceforge.net/lnxhc/lnxhc-%{version}.tar.gz
BuildRequires:  perl-XML-Parser
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

Requires:       bash
Requires:       perl
Requires:       perl(Carp)
Requires:       perl(Cwd)
Requires:       perl(Data::Dumper)
Requires:       perl(Digest::MD5)
Requires:       perl(Exporter)
Requires:       perl(File::Basename)
Requires:       perl(File::Spec::Functions)
Requires:       perl(File::Temp)
Requires:       perl(File::stat)
Requires:       perl(FindBin)
Requires:       perl(Getopt::Long)
Requires:       perl(MIME::Base64)
Requires:       perl(Pod::Usage)
Requires:       perl(Storable)
Requires:       perl(Sys::Hostname)
Requires:       perl(Time::HiRes)
Requires:       perl(XML::Parser)

%description
The Linux Health Checker is a command line tool for Linux. Its purpose is to
identify potential problems before they impact your system’s availability or
cause outages. It collects and compares the active Linux settings and system
status for a system with the values provided by health-check authors or defined
by you. It produces output in the form of detailed messages, which provide
information about potential problems and the suggested actions to take.

The Linux Health Checker will run on any Linux platform which meets the
software requirements. It can be easily extended by writing new health check
plug-ins. Note that the initial set of health checks that comes with the lnxhc
package focuses on Linux running on IBM's System z mainframes and is by no
means meant to be exhaustive.

The Linux Health Checker is an open source project sponsored by IBM. It is
released under the Eclipse Public License v1.0

%prep
%setup -q -n lnxhc-%{version}
sed -i "s|/usr/local/lib/lnxhc|%{_prefix}/lib/lnxhc|g" Makefile

%build
%{__make} %{?_smp_mflags}

%install
%makeinstall

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/lnxhcrc
%doc CONTRIBUTING CONTRIBUTORS epl-v10.html
%dir %{_prefix}/lib/lnxhc/
%{_bindir}/*
%{_prefix}/lib/lnxhc/*
%{_mandir}/man1/*
%{_mandir}/man5/*
%{_mandir}/man7/*

%changelog
openSUSE Build Service is sponsored by