2009-07-14 11:41:13 +00:00
|
|
|
#
|
2010-08-07 17:56:17 +00:00
|
|
|
# spec file for package perl-Workflow (Version 1.34)
|
|
|
|
|
#
|
|
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2009-07-14 11:41:13 +00:00
|
|
|
#
|
|
|
|
|
# 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
|
|
|
|
|
|
2010-08-07 17:56:17 +00:00
|
|
|
%bcond_with opt
|
|
|
|
|
%bcond_with pod
|
2009-07-14 11:41:13 +00:00
|
|
|
|
|
|
|
|
Name: perl-Workflow
|
2010-08-07 17:56:17 +00:00
|
|
|
%define cpan_name Workflow
|
2009-07-14 12:32:53 +00:00
|
|
|
Summary: Simple, flexible system to implement workflows
|
2010-08-07 17:56:17 +00:00
|
|
|
Version: 1.34
|
2009-07-14 11:41:13 +00:00
|
|
|
Release: 1
|
2010-08-07 17:56:17 +00:00
|
|
|
License: GPL+ or Artistic
|
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
|
Url: http://search.cpan.org/dist/Workflow/
|
|
|
|
|
#Source: http://www.cpan.org/modules/by-module/Workflow/Workflow-%{version}.tar.gz
|
|
|
|
|
Source: %{cpan_name}-%{version}.tar.bz2
|
|
|
|
|
BuildArch: noarch
|
2009-07-14 11:41:13 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
BuildRequires: perl
|
|
|
|
|
BuildRequires: perl(Module::Build)
|
2010-08-07 17:56:17 +00:00
|
|
|
%if 0%{?suse_version} < 1120
|
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
|
%endif
|
|
|
|
|
%if %{with opt}
|
|
|
|
|
BuildRequires: perl(DBD::SQLite)
|
|
|
|
|
BuildRequires: perl(Data::UUID)
|
|
|
|
|
BuildRequires: perl(SPOPS)
|
|
|
|
|
%endif
|
|
|
|
|
%if %{with pod}
|
2009-07-14 11:41:13 +00:00
|
|
|
BuildRequires: perl(Test::Pod::Coverage) >= 1.04
|
|
|
|
|
BuildRequires: perl(Test::Pod) >= 1.14
|
2010-08-07 17:56:17 +00:00
|
|
|
%endif
|
|
|
|
|
BuildRequires: perl(Test::Exception)
|
|
|
|
|
BuildRequires: perl(Test::More) >= 0.41
|
|
|
|
|
#
|
|
|
|
|
BuildRequires: perl(Carp)
|
2009-07-14 11:41:13 +00:00
|
|
|
BuildRequires: perl(Class::Accessor) >= 0.18
|
2010-08-07 17:56:17 +00:00
|
|
|
BuildRequires: perl(Class::Factory) >= 1
|
2009-07-14 11:41:13 +00:00
|
|
|
BuildRequires: perl(Class::Observable) >= 1.04
|
|
|
|
|
BuildRequires: perl(Data::Dumper)
|
|
|
|
|
BuildRequires: perl(DateTime) >= 0.15
|
2010-08-07 17:56:17 +00:00
|
|
|
BuildRequires: perl(DateTime::Format::Strptime) >= 1
|
|
|
|
|
BuildRequires: perl(DBD::Mock) >= 0.1
|
2009-07-14 11:41:13 +00:00
|
|
|
BuildRequires: perl(DBI)
|
2010-08-07 17:56:17 +00:00
|
|
|
BuildRequires: perl(Exception::Class) >= 1.1
|
2009-07-14 11:41:13 +00:00
|
|
|
BuildRequires: perl(File::Slurp)
|
2010-08-07 17:56:17 +00:00
|
|
|
BuildRequires: perl(List::MoreUtils)
|
|
|
|
|
BuildRequires: perl(Log::Dispatch) >= 2
|
2009-07-14 11:41:13 +00:00
|
|
|
BuildRequires: perl(Log::Log4perl) >= 0.34
|
2010-08-07 17:56:17 +00:00
|
|
|
BuildRequires: perl(XML::Simple) >= 2
|
2009-07-14 11:41:13 +00:00
|
|
|
#
|
2010-12-01 13:57:18 +00:00
|
|
|
%{perl_requires}
|
2010-08-07 17:56:17 +00:00
|
|
|
Requires: perl(Carp)
|
|
|
|
|
Requires: perl(Class::Accessor) >= 0.18
|
|
|
|
|
Requires: perl(Class::Factory) >= 1
|
|
|
|
|
Requires: perl(Class::Observable) >= 1.04
|
|
|
|
|
Requires: perl(Data::Dumper)
|
|
|
|
|
Requires: perl(DateTime) >= 0.15
|
|
|
|
|
Requires: perl(DateTime::Format::Strptime) >= 1
|
|
|
|
|
Requires: perl(DBI)
|
|
|
|
|
Requires: perl(Exception::Class) >= 1.1
|
|
|
|
|
Requires: perl(File::Slurp)
|
|
|
|
|
Requires: perl(Log::Dispatch) >= 2
|
|
|
|
|
Requires: perl(Log::Log4perl) >= 0.34
|
|
|
|
|
Requires: perl(XML::Simple) >= 2
|
2009-07-14 11:41:13 +00:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
The 'Workflow' Perl module implements a standalone workflow system. It
|
|
|
|
|
aims to be simple but flexible and therefore powerful. Each piece of
|
|
|
|
|
the workflow system has a direct and easily stated job, and hopefully
|
|
|
|
|
you`ll find that you can put the pieces together to create very useful
|
|
|
|
|
systems.
|
|
|
|
|
|
|
|
|
|
Read 'perldoc Workflow' for a more detailed introduction, sample usage,
|
|
|
|
|
interactions with your applications, and more.
|
|
|
|
|
|
2010-08-07 17:56:17 +00:00
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
Chris Winters <chris@cwinters.com>
|
|
|
|
|
Jonas B. Nielsen <jonasbn@cpan.org>
|
2009-07-14 11:41:13 +00:00
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
2010-08-07 17:56:17 +00:00
|
|
|
%{__perl} Build.PL installdirs=vendor
|
|
|
|
|
./Build
|
2009-07-14 11:41:13 +00:00
|
|
|
|
|
|
|
|
%check
|
2010-08-07 17:56:17 +00:00
|
|
|
%if %{with pod}
|
|
|
|
|
TEST_POD=1 ./Build test
|
|
|
|
|
%else
|
|
|
|
|
./Build test
|
|
|
|
|
%endif
|
2009-07-14 11:41:13 +00:00
|
|
|
|
|
|
|
|
%install
|
2010-08-07 17:56:17 +00:00
|
|
|
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
|
2009-07-14 11:41:13 +00:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
2010-08-07 17:56:17 +00:00
|
|
|
|
2009-07-14 11:41:13 +00:00
|
|
|
%files -f %{name}.files
|
2010-08-07 17:56:17 +00:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%doc Changes doc eg README struct TODO
|
2009-07-14 11:41:13 +00:00
|
|
|
|
|
|
|
|
%changelog
|