%define pkg_name Safe-World %define pkg_version 0.14 %define rpm_pkg_version 0.14 %define rpm_pkg_release 3.n0i.9 Summary: Create multiple virtual instances of a Perl interpreter Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} Group: Development/Libraries License: Artistic URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: http://www.cpan.org/authors/id/G/GM/GMPASSOS/%{pkg_name}-%{pkg_version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: reb00t-rpmdevtools BuildRequires: perl(ExtUtils::MakeMaker) %{!?_without_test:BuildRequires: perl(Test)} %{!?_without_test:BuildRequires: perl(Hash::NoRef) >= 0.03} %{!?_without_test:BuildRequires: perl(Safe::Hole) >= 0.08} Requires: perl(Hash::NoRef) >= 0.03 Requires: perl(Safe::Hole) >= 0.08 %description With Safe::World you can create multiple virtual instances/compartments of a Perl interpreter, that will work/run without touch the other instances/compartments and mantaining the main interpreter normal. Actually each Each instance (WORLD object), is a Safe compartment (Safe::World::Compartment) with all the resources of a normal Perl interpreter implemented (IO, @INC, %%INC, Dynaloader::, etc...). But what happens inside each World doesn't change the environment outside of it or other Worlds. Each instance (WORLD object) has their own STDOUT, STDERR and STDIN handlers, also has a fake HEADOUT output (when the argument "headout" is pas t) for the headers implemented inside the STDOUT. So, you can use this to redirect the outputs of the WORLD object to a FILEHANDLER, SCALAR or a SUB. %prep %setup -q -n %{pkg_name}-%{pkg_version} %{fix_eol} %build %{perl_build} %{!?_without_test:%{__make} test} %install %{__rm} -rf $RPM_BUILD_ROOT %{perl_install} %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{perl_files} %doc Changes README %changelog * Tue May 22 2007 Marius Feraru - 0.14-3.n0i.9 - spec file (re)created using N0i::CPAN::RPMizer v1.14.7 - rebuild on perl 5.8.8 * Sat Jul 30 2005 Marius Feraru 0.14-2.n0i.8 - spec file (re)created using N0i::CPAN::RPMizer/0.1 - rebuild on perl 5.8.7 * Sun Mar 20 2005 Marius Feraru 0:0.14-1.n0i.7 - automatic rebuild (perl 5.8.6) * Sun Dec 05 2004 Marius Feraru 0:0.14-1.n0i.6 - version 0.14 * Wed May 05 2004 Marius Feraru 0:0.11-1.n0i.5 - spec file (re?)created using N0i::CPAN::RPMizer/2004050401 - rebuild (perl 5.8.4) * Sun Feb 22 2004 Marius FERARU 0:0.11-1.n0i.4 - version 0.11 * Thu Jan 29 2004 Marius FERARU 0:0.10-0.n0i.3 - version 0.10 * Fri Jan 23 2004 Marius FERARU 0:0.09-0.n0i.2 - version 0.09 * Thu Jan 01 2004 Marius FERARU 0:0.08-0.n0i.1 - version 0.08 - spec file (re?)created using N0i::CPAN::RPMizer/2003102001