87 lines
3.0 KiB
RPMSpec
87 lines
3.0 KiB
RPMSpec
#
|
|
# spec file for package perl-Event-ExecFlow
|
|
#
|
|
# 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 Event-ExecFlow
|
|
Name: perl-Event-ExecFlow
|
|
Version: 0.640.0
|
|
Release: 0
|
|
# 0.64 -> normalize -> 0.640.0
|
|
%define cpan_version 0.64
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
Summary: High level API for event-based execution flow control
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/J/JR/JRED/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(AnyEvent) >= 0.4
|
|
BuildRequires: perl(Locale::TextDomain)
|
|
Requires: perl(AnyEvent) >= 0.4
|
|
Requires: perl(Locale::TextDomain)
|
|
Provides: perl(AnyEvent::Impl::Event::Glib)
|
|
Provides: perl(Event::ExecFlow) = %{version}
|
|
Provides: perl(Event::ExecFlow::Callbacks)
|
|
Provides: perl(Event::ExecFlow::Frontend)
|
|
Provides: perl(Event::ExecFlow::Frontend::Term)
|
|
Provides: perl(Event::ExecFlow::Job)
|
|
Provides: perl(Event::ExecFlow::Job::Code)
|
|
Provides: perl(Event::ExecFlow::Job::Command)
|
|
Provides: perl(Event::ExecFlow::Job::Group)
|
|
Provides: perl(Event::ExecFlow::Scheduler)
|
|
Provides: perl(Event::ExecFlow::Scheduler::SimpleMax)
|
|
%undefine __perllib_provides
|
|
%{perl_requires}
|
|
|
|
%description
|
|
Event::ExecFlow offers a high level API to declare jobs, which mainly
|
|
execute external commands, parse their output to get progress or other
|
|
status information, triggers actions when the command has been finished
|
|
etc. Such jobs can be chained together in a recursive fashion to fulfill
|
|
rather complex tasks which consist of many jobs.
|
|
|
|
Additionally it defines an extensible API for communication with the
|
|
frontend application, which may be a written using Gtk2, Tk or Qt or is a
|
|
simple text console program.
|
|
|
|
In case of Gtk2 a custom widget for displaying an Event::ExecFlow job plan,
|
|
including progress updates, is shipped with the Gtk2::Ex::FormFactory
|
|
package.
|
|
|
|
%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
|
|
make test
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
%perl_gen_filelist
|
|
|
|
%files -f %{name}.files
|
|
%doc Changes README
|
|
|
|
%changelog
|