LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File perl-DBICx-Modeler-Generator.spec of Package perl-DBICx-Modeler-Generator (Project devel:languages:perl:CPAN-D)

#
# spec file for package perl-DBICx-Modeler-Generator
#
# Copyright (c) 2012 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/
#


Name:           perl-DBICx-Modeler-Generator
Version:        0.02
Release:        0
%define cpan_name DBICx-Modeler-Generator
Summary:        Dynamic definition of a DBIx::Class::Schema and a DBICx::Modeler
License:        Artistic-1.0 or GPL-1.0+
Group:          Development/Libraries/Perl
Url:            http://search.cpan.org/dist/DBICx-Modeler-Generator/
Source:         http://www.cpan.org/authors/id/M/MO/MORIYA/%{cpan_name}-%{version}.tar.gz
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Class::Unload)
BuildRequires:  perl(DBICx::Modeler) >= 0.005
BuildRequires:  perl(DBIx::Class::Schema::Loader)
BuildRequires:  perl(File::Find::Rule)
BuildRequires:  perl(List::MoreUtils)
BuildRequires:  perl(Module::Load)
BuildRequires:  perl(Moose) >= 0.89_01
BuildRequires:  perl(MooseX::Types::Path::Class)
BuildRequires:  perl(Orochi)
BuildRequires:  perl(Text::MicroTemplate::Extended)
BuildRequires:  perl(namespace::clean) >= 0.08
#BuildRequires: perl(Algorithm::C3)
#BuildRequires: perl(Class::C3)
#BuildRequires: perl(Class::C3::next)
#BuildRequires: perl(DBI)
#BuildRequires: perl(DBICx::Modeler::Generator::ClassLike)
#BuildRequires: perl(DBICx::Modeler::Generator::CLI)
#BuildRequires: perl(DBICx::Modeler::Generator::Driver::Base)
#BuildRequires: perl(DBICx::Modeler::Generator::DriverLike)
#BuildRequires: perl(DBICx::Modeler::Generator::Driver::MySQL)
#BuildRequires: perl(DBICx::Modeler::Generator::ModelLike)
#BuildRequires: perl(DBICx::Modeler::Generator::PathLike)
#BuildRequires: perl(DBICx::Modeler::Generator::SchemaLike)
#BuildRequires: perl(DBICx::Modeler::Generator::TreeLike)
#BuildRequires: perl(DBICx::Modeler::Model)
#BuildRequires: perl(Image::Size)
#BuildRequires: perl(inc::Module::Install) >= 0.95
#BuildRequires: perl(JSON)
#BuildRequires: perl(LWP::Simple)
#BuildRequires: perl(Module::Build)
#BuildRequires: perl(Module::Install::Base)
#BuildRequires: perl(Moose::Role)
#BuildRequires: perl(MooseX::Getopt)
#BuildRequires: perl(MooseX::Orochi)
#BuildRequires: perl(MooseX::SimpleConfig)
#BuildRequires: perl(mro)
#BuildRequires: perl(MRO::Compat)
#BuildRequires: perl(MyApp::Schema)
#BuildRequires: perl(Parse::CPAN::Meta)
#BuildRequires: perl(Path::Class)
#BuildRequires: perl(Sub::Uplevel) >= 0.12
#BuildRequires: perl(Test::Class::MethodInfo)
#BuildRequires: perl(Test::DBICx::Modeler::Generator)
#BuildRequires: perl(Test::DBICx::Modeler::Generator::CLI)
#BuildRequires: perl(Test::DBICx::Modeler::Generator::CLI::MySQL)
#BuildRequires: perl(Test::DBICx::Modeler::Generator::CLI::SQLite)
#BuildRequires: perl(Test::DBICx::Modeler::Generator::Manual)
#BuildRequires: perl(Test::DBICx::Modeler::Generator::Manual::MySQL)
#BuildRequires: perl(Test::DBICx::Modeler::Generator::Manual::SQLite)
#BuildRequires: perl(Test::DBICx::Modeler::Generator::MySQL)
#BuildRequires: perl(Test::DBICx::Modeler::Generator::SQLite)
#BuildRequires: perl(Test::DBICx::Modeler::Generator::Supplement)
#BuildRequires: perl(Test::Moose)
#BuildRequires: perl(Test::Requires)
#BuildRequires: perl(Test::Warn)
#BuildRequires: perl(Tree::DAG_Node)
#BuildRequires: perl(YAML::Tiny)
Requires:       perl(Class::Unload)
Requires:       perl(DBICx::Modeler) >= 0.005
Requires:       perl(DBIx::Class::Schema::Loader)
Requires:       perl(File::Find::Rule)
Requires:       perl(List::MoreUtils)
Requires:       perl(Module::Load)
Requires:       perl(Moose) >= 0.89_01
Requires:       perl(MooseX::Types::Path::Class)
Requires:       perl(namespace::clean) >= 0.08
Requires:       perl(Orochi)
Requires:       perl(Text::MicroTemplate::Extended)
Recommends:     perl(DBD::mysql)
Recommends:     perl(DBD::SQLite) >= 1.26_06
Recommends:     perl(MooseX::Getopt)
Recommends:     perl(MooseX::SimpleConfig)
%{perl_requires}

%description
An enterprise application requires consideration of better architecture.
Especially, a modeling greatly influences maintainability of the
application.

So, I recommend that to separate schemata and models with DBICx::Modeler.
This smart module provides a Moose-based model layer over DBIx::Class.

However, we must define a lot of model modules to receive the benefits of
the separation. It is a too tiresome job.

Therefore, let us automate tedious common definition with this
'DBICx::Modeler::Generator' module which provides features below:

* *

  Dynamic deployment of database

* *

  Dynamic generation of DBIx::Class schema modules

* *

  Dynamic generation of DBICx::Modeler model modules

As well, this 'DBICx::Modeler::Generator' module can also be used as a
simple automation wrapper only dynamic generation of schema modules with
DBIx::Class::Schema::Loadler.

%prep
%setup -q -n %{cpan_name}-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}

%check
%{__make} test

%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist

%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes examples LICENSE README

%changelog