Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
devel:languages:perl:CPAN-D
perl-DBIx-Class-MooseColumns
perl-DBIx-Class-MooseColumns.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-DBIx-Class-MooseColumns.spec of Package perl-DBIx-Class-MooseColumns
# # spec file for package perl-DBIx-Class-MooseColumns # # Copyright (c) 2019 SUSE LINUX 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 https://bugs.opensuse.org/ # Name: perl-DBIx-Class-MooseColumns Version: 0.22 Release: 0 %define cpan_name DBIx-Class-MooseColumns Summary: Lets you write DBIC add_column() definitions as attribute options License: Artistic-1.0 OR GPL-1.0-or-later Group: Development/Libraries/Perl Url: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/M/ME/MENDEL/%{cpan_name}-%{version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(IO::All) >= 0.41 BuildRequires: perl(Moose) >= 1.19 BuildRequires: perl(MooseX::NonMoose) >= 0.17 BuildRequires: perl(Path::Class) >= 0.16 BuildRequires: perl(Test::Aggregate) >= 0.363 BuildRequires: perl(Test::DBIx::Class) >= 0.10 BuildRequires: perl(Test::Deep) >= 0.103 BuildRequires: perl(Test::Differences) >= 0.4801 BuildRequires: perl(Test::More) >= 0.92 BuildRequires: perl(Test::Most) >= 0.21 BuildRequires: perl(namespace::autoclean) >= 0.09 Requires: perl(Moose) >= 1.19 Requires: perl(namespace::autoclean) >= 0.09 %{perl_requires} %description This module allows you to put the arguments to DBIx::Class::ResultSource/add_column right into your attribute definitions and will automatically call it when it finds an 'add_column' attribute option. It also replaces the DBIx::Class-generated accessor methods (these are Class::Accessor::Grouped-generated accessor methods under the hood) with the Moose-generated accessor methods so that you can use more of the wonderful powers of Moose (eg. type constraints, triggers, ...). _Note:_ '__PACKAGE__->table(...)' must go *before* the 'has' stanzas (the DBIx::Class::ResultSource/table is magic and does much more than setting the table name, thus the '__PACKAGE__->add_column(...)' calls that the 'has' triggers won't work before that). _Note:_ '__PACKAGE__->set_primary_key(...)' and '__PACKAGE__->add_unique_constraint(...)' calls must go *after* the 'has' stanzas (since they depend on the referred columns being registered via '__PACKAGE__->add_column(...)' and that call is done when the 'has' runs). %prep %setup -q -n %{cpan_name}-%{version} %build PERL_USE_UNSAFE_INC=1 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 README %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor