1
0
forked from perl/perl-Workflow
Files
perl-Workflow/perl-Workflow.spec

124 lines
3.7 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-Workflow (Version 1.34)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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
%bcond_with opt
%bcond_with pod
Name: perl-Workflow
%define cpan_name Workflow
Summary: Simple, flexible system to implement workflows
Version: 1.34
Release: 1
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
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl(Module::Build)
%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}
BuildRequires: perl(Test::Pod::Coverage) >= 1.04
BuildRequires: perl(Test::Pod) >= 1.14
%endif
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Test::More) >= 0.41
#
BuildRequires: perl(Carp)
BuildRequires: perl(Class::Accessor) >= 0.18
BuildRequires: perl(Class::Factory) >= 1
BuildRequires: perl(Class::Observable) >= 1.04
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(DateTime) >= 0.15
BuildRequires: perl(DateTime::Format::Strptime) >= 1
BuildRequires: perl(DBD::Mock) >= 0.1
BuildRequires: perl(DBI)
BuildRequires: perl(Exception::Class) >= 1.1
BuildRequires: perl(File::Slurp)
BuildRequires: perl(List::MoreUtils)
BuildRequires: perl(Log::Dispatch) >= 2
BuildRequires: perl(Log::Log4perl) >= 0.34
BuildRequires: perl(XML::Simple) >= 2
#
%{perl_requires}
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
%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.
Authors:
--------
Chris Winters <chris@cwinters.com>
Jonas B. Nielsen <jonasbn@cpan.org>
%prep
%setup -q -n %{cpan_name}-%{version}
%build
%{__perl} Build.PL installdirs=vendor
./Build
%check
%if %{with pod}
TEST_POD=1 ./Build test
%else
./Build test
%endif
%install
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
%perl_gen_filelist
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files -f %{name}.files
%defattr(-,root,root,-)
%doc Changes doc eg README struct TODO
%changelog