File perl-Proc-Fork.spec of Package perl-Proc-Fork

#
# spec file for package perl-Proc-Fork
#
# 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/
#

# norootforbuild


Name:           perl-Proc-Fork
Version:        0.71
Release:        6
AutoReqProv:    on
Group:          Development/Libraries/Perl
License:        Artistic-1.0 or GPL-1.0+
Url:            http://search.cpan.org/~aristotle/Proc-Fork-0.61/lib/Proc/Fork.pm
Summary:        A Perl Module Proc::Fork - Simple, intuitive interface to the fork() system call
Source:         Proc-Fork-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
Requires:       perl-Exporter-Tidy
BuildRequires:  perl-Exporter-Tidy
BuildRequires:  perl-macros

%description
This module provides an intuitive, Perl-ish way to write forking
programs by letting you use blocks to illustrate which code section
executes in which fork. The code for the parent, child, retry handler
and error handler are grouped together in a "fork block". The clauses
may appear in any order, but they must be consecutive (without any
other statements in between).



Authors:
--------
     Aristotle Pagaltzis, <pagaltzis@gmx.de>

%prep
%setup -n Proc-Fork-%{version}

%build
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS"
make %{?_smp_mflags}

%check
make test

%install
%perl_make_install
%perl_process_packlist

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README
%doc %{_mandir}/man?/*
%{perl_vendorlib}/Proc/Fork.pm
%{perl_vendorlib}/Proc/
%{perl_vendorarch}/auto/Proc/Fork
%{perl_vendorarch}/auto/Proc/

%changelog