# # spec file for package perl-IPC-Exe # # Copyright (c) 2024 SUSE LLC # # 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 https://bugs.opensuse.org/ # %define cpan_name IPC-Exe Name: perl-IPC-Exe Version: 2.2.1 Release: 0 %define cpan_version 2.002001 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Execute processes or Perl subroutines & string them via IPC. Think shell pipes URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/G/GL/GLAI/%{cpan_name}-%{cpan_version}.tar.gz Source100: README.md BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros Provides: perl(IPC::Exe) = %{version} %undefine __perllib_provides %{perl_requires} %description This module was written to provide a secure and highly flexible way to execute external programs with an intuitive syntax. In addition, more info is returned with each string of executions, such as the list of PIDs and '$?' of the last external pipe process (see RETURN VALUES). Execution uses 'exec' command, and the shell is *never* invoked. The two exported subroutines perform all the heavy lifting of forking and executing processes. In particular, 'exe( )' implements the 'KID_TO_READ' version of http://perldoc.perl.org/perlipc.html#Safe-Pipe-Opens while 'bg( )' implements the double-fork technique illustrated at http://perldoc.perl.org/perlfaq8.html#How-do-I-start-a-process-in-the-background? %prep %autosetup -n %{cpan_name}-%{cpan_version} %build perl Makefile.PL INSTALLDIRS=vendor %make_build %check make test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %files -f %{name}.files %doc Changes examples README %license LICENSE %changelog