79 lines
2.6 KiB
RPMSpec
79 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package perl-Wx-Perl-ProcessStream
|
|
#
|
|
# 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 Wx-Perl-ProcessStream
|
|
Name: perl-Wx-Perl-ProcessStream
|
|
Version: 0.320.0
|
|
Release: 0
|
|
# 0.32 -> normalize -> 0.320.0
|
|
%define cpan_version 0.32
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
Summary: Access IO of external processes via events
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/M/MD/MDOOTSON/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source1: cpanspec.yml
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(Wx) >= 0.5
|
|
Requires: perl(Wx) >= 0.5
|
|
Provides: perl(Wx::Perl::ProcessStream) = %{version}
|
|
Provides: perl(Wx::Perl::ProcessStream::ProcEvtHandler)
|
|
Provides: perl(Wx::Perl::ProcessStream::Process)
|
|
Provides: perl(Wx::Perl::ProcessStream::ProcessEvent)
|
|
Provides: perl(Wx::Perl::ProcessStream::ProcessHandler)
|
|
%undefine __perllib_provides
|
|
%{perl_requires}
|
|
|
|
%description
|
|
This module provides the STDOUT, STDERR and exit codes of asynchronously
|
|
running processes via events. It may be used for long running or blocking
|
|
processes that provide periodic updates on state via STDOUT. Simple IPC is
|
|
possible via STDIN.
|
|
|
|
Do not use this module simply to collect the output of another process. For
|
|
that, it is much simpler to do:
|
|
|
|
my ($status, $output) = Wx::ExecuteStdout( 'perl -e"print qq($_\n) for(@INC);"' );
|
|
|
|
%prep
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
|
|
|
%build
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
%make_build
|
|
|
|
%check
|
|
# Sorry the can't pass without
|
|
# X-windows.. So make them go away.. they pass ;)
|
|
#%check
|
|
#make test
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
%perl_gen_filelist
|
|
|
|
%files -f %{name}.files
|
|
%doc Changes example README
|
|
|
|
%changelog
|