File perl-App-SuperviseMe.spec of Package perl-App-SuperviseMe
#
# spec file for package perl-App-SuperviseMe
#
# Copyright (c) 2016 SUSE LINUX 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-App-SuperviseMe
Version: 0.004
Release: 0
%define cpan_name App-SuperviseMe
Summary: Very Simple Command Superviser
License: Artistic-2.0
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/App-SuperviseMe/
Source0: http://www.cpan.org/authors/id/M/ME/MELO/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(AnyEvent)
BuildRequires: perl(IO::String)
BuildRequires: perl(Test::Deep)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More) >= 0.98
Requires: perl(AnyEvent)
%{perl_requires}
%description
This module implements a multi-process supervisor.
It takes a list of commands to execute and starts each one, and then
monitors their execution. If one of the program dies, the supervisor will
restart it after a small 1 second pause.
You can send SIGTERM to the supervisor process to kill all childs and exit.
You can also send SIGINT (Ctrl-C on your terminal) to restart the
processes. If a second SIGINT is received and no child process is currently
running, the supervisor will exit. This allows you to tap Ctrl- C twice in
quick succession in a terminal window to terminate the supervisor and all
child processes
%prep
%setup -q -n %{cpan_name}-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes LICENSE README
%changelog