8
0
Files
perl-DBIx-Class/perl-DBIx-Class.spec

142 lines
5.7 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package perl-DBIx-Class
#
# Copyright (c) 2025 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.
Accepting request 815918 from devel:languages:perl:autoupdate - updated to 0.082842 see /usr/share/doc/packages/perl-DBIx-Class/Changes 0.082842 2020-06-16 20:10 (UTC) * New Features - An on_connect rebase_sqlmaker call allowing experimentation with non-core SQL generators on a per-$schema-instance basis https://is.gd/DBIC_rebase_sqlmaker - Automatically detect and use multi-column IN on recent versions of libsqlite: ... WHERE ( foo, bar ) IN ( SELECT foo, bar FROM ... ) * Fixes - Fix silent failure to retrieve a primary key (RT#80283) or worse: returning an incorrect value (RT#115381) in case a rdbms-side autoinc column is declared as PK with the is_auto_increment attribute unset - Fix overly-aggressive condition unrolling, corrupting custom ops with array arguments (RT#132390) - Fix docs on how to properly use Moo(se) in ResultSet's, and fix a corner case of ->count not functioning properly when the old recipe was being used (GH#105) - Fix incorrect ::Storage->_ping() behavior under Sybase (RT#114214) - Work around breakage in Hash::Merge by soft-requiring Clone as part of the replicated subsystem (RT#124321) * Misc - DBIC_TRACE_PROFILE=... now uses a ::Storage::Statistics subclass DBIx::Class::Storage::Debug::PrettyTrace which properly ships as a part of this distrinbution - Switch out SQL::Abstract dependency with a slower moving dist - Remove Data::Page dependency by inlining its entirety into the core DBIx::Class::ResultSet::Pager (RT#130686) OBS-URL: https://build.opensuse.org/request/show/815918 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-DBIx-Class?expand=0&rev=32
2020-06-22 08:49:16 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define cpan_name DBIx-Class
Name: perl-DBIx-Class
Version: 0.082844
Release: 0
Accepting request 815918 from devel:languages:perl:autoupdate - updated to 0.082842 see /usr/share/doc/packages/perl-DBIx-Class/Changes 0.082842 2020-06-16 20:10 (UTC) * New Features - An on_connect rebase_sqlmaker call allowing experimentation with non-core SQL generators on a per-$schema-instance basis https://is.gd/DBIC_rebase_sqlmaker - Automatically detect and use multi-column IN on recent versions of libsqlite: ... WHERE ( foo, bar ) IN ( SELECT foo, bar FROM ... ) * Fixes - Fix silent failure to retrieve a primary key (RT#80283) or worse: returning an incorrect value (RT#115381) in case a rdbms-side autoinc column is declared as PK with the is_auto_increment attribute unset - Fix overly-aggressive condition unrolling, corrupting custom ops with array arguments (RT#132390) - Fix docs on how to properly use Moo(se) in ResultSet's, and fix a corner case of ->count not functioning properly when the old recipe was being used (GH#105) - Fix incorrect ::Storage->_ping() behavior under Sybase (RT#114214) - Work around breakage in Hash::Merge by soft-requiring Clone as part of the replicated subsystem (RT#124321) * Misc - DBIC_TRACE_PROFILE=... now uses a ::Storage::Statistics subclass DBIx::Class::Storage::Debug::PrettyTrace which properly ships as a part of this distrinbution - Switch out SQL::Abstract dependency with a slower moving dist - Remove Data::Page dependency by inlining its entirety into the core DBIx::Class::ResultSet::Pager (RT#130686) OBS-URL: https://build.opensuse.org/request/show/815918 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-DBIx-Class?expand=0&rev=32
2020-06-22 08:49:16 +00:00
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Extensible and flexible object <-> relational mapper
Accepting request 815918 from devel:languages:perl:autoupdate - updated to 0.082842 see /usr/share/doc/packages/perl-DBIx-Class/Changes 0.082842 2020-06-16 20:10 (UTC) * New Features - An on_connect rebase_sqlmaker call allowing experimentation with non-core SQL generators on a per-$schema-instance basis https://is.gd/DBIC_rebase_sqlmaker - Automatically detect and use multi-column IN on recent versions of libsqlite: ... WHERE ( foo, bar ) IN ( SELECT foo, bar FROM ... ) * Fixes - Fix silent failure to retrieve a primary key (RT#80283) or worse: returning an incorrect value (RT#115381) in case a rdbms-side autoinc column is declared as PK with the is_auto_increment attribute unset - Fix overly-aggressive condition unrolling, corrupting custom ops with array arguments (RT#132390) - Fix docs on how to properly use Moo(se) in ResultSet's, and fix a corner case of ->count not functioning properly when the old recipe was being used (GH#105) - Fix incorrect ::Storage->_ping() behavior under Sybase (RT#114214) - Work around breakage in Hash::Merge by soft-requiring Clone as part of the replicated subsystem (RT#124321) * Misc - DBIC_TRACE_PROFILE=... now uses a ::Storage::Statistics subclass DBIx::Class::Storage::Debug::PrettyTrace which properly ships as a part of this distrinbution - Switch out SQL::Abstract dependency with a slower moving dist - Remove Data::Page dependency by inlining its entirety into the core DBIx::Class::ResultSet::Pager (RT#130686) OBS-URL: https://build.opensuse.org/request/show/815918 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-DBIx-Class?expand=0&rev=32
2020-06-22 08:49:16 +00:00
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/R/RI/RIBASUSHI/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
2025-08-12 18:13:21 +02:00
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Class::Accessor::Grouped) >= 0.10012
BuildRequires: perl(Class::C3::Componentised) >= 1.0009
BuildRequires: perl(Class::Inspector) >= 1.24
BuildRequires: perl(Config::Any) >= 0.20
BuildRequires: perl(Context::Preserve) >= 0.01
BuildRequires: perl(DBD::SQLite) >= 1.29
BuildRequires: perl(DBI) >= 1.57
BuildRequires: perl(Data::Dumper::Concise) >= 2.020
BuildRequires: perl(Devel::GlobalDestruction) >= 0.09
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.59
BuildRequires: perl(File::Temp) >= 0.22
BuildRequires: perl(Hash::Merge) >= 0.12
BuildRequires: perl(MRO::Compat) >= 0.12
BuildRequires: perl(Module::Find) >= 0.07
BuildRequires: perl(Moo) >= 2.000
BuildRequires: perl(Package::Stash) >= 0.28
BuildRequires: perl(Path::Class) >= 0.18
Accepting request 815918 from devel:languages:perl:autoupdate - updated to 0.082842 see /usr/share/doc/packages/perl-DBIx-Class/Changes 0.082842 2020-06-16 20:10 (UTC) * New Features - An on_connect rebase_sqlmaker call allowing experimentation with non-core SQL generators on a per-$schema-instance basis https://is.gd/DBIC_rebase_sqlmaker - Automatically detect and use multi-column IN on recent versions of libsqlite: ... WHERE ( foo, bar ) IN ( SELECT foo, bar FROM ... ) * Fixes - Fix silent failure to retrieve a primary key (RT#80283) or worse: returning an incorrect value (RT#115381) in case a rdbms-side autoinc column is declared as PK with the is_auto_increment attribute unset - Fix overly-aggressive condition unrolling, corrupting custom ops with array arguments (RT#132390) - Fix docs on how to properly use Moo(se) in ResultSet's, and fix a corner case of ->count not functioning properly when the old recipe was being used (GH#105) - Fix incorrect ::Storage->_ping() behavior under Sybase (RT#114214) - Work around breakage in Hash::Merge by soft-requiring Clone as part of the replicated subsystem (RT#124321) * Misc - DBIC_TRACE_PROFILE=... now uses a ::Storage::Statistics subclass DBIx::Class::Storage::Debug::PrettyTrace which properly ships as a part of this distrinbution - Switch out SQL::Abstract dependency with a slower moving dist - Remove Data::Page dependency by inlining its entirety into the core DBIx::Class::ResultSet::Pager (RT#130686) OBS-URL: https://build.opensuse.org/request/show/815918 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-DBIx-Class?expand=0&rev=32
2020-06-22 08:49:16 +00:00
BuildRequires: perl(SQL::Abstract::Classic) >= 1.91
BuildRequires: perl(Scope::Guard) >= 0.03
BuildRequires: perl(Sub::Name) >= 0.04
BuildRequires: perl(Test::Deep) >= 0.101
BuildRequires: perl(Test::Exception) >= 0.31
BuildRequires: perl(Test::More) >= 0.94
BuildRequires: perl(Test::Warn) >= 0.21
BuildRequires: perl(Text::Balanced) >= 2.00
BuildRequires: perl(Try::Tiny) >= 0.07
BuildRequires: perl(namespace::clean) >= 0.24
Requires: perl(Class::Accessor::Grouped) >= 0.10012
Requires: perl(Class::C3::Componentised) >= 1.0009
Requires: perl(Class::Inspector) >= 1.24
Requires: perl(Config::Any) >= 0.20
Requires: perl(Context::Preserve) >= 0.01
Requires: perl(DBI) >= 1.57
Requires: perl(Data::Dumper::Concise) >= 2.020
Requires: perl(Devel::GlobalDestruction) >= 0.09
Requires: perl(Hash::Merge) >= 0.12
Requires: perl(MRO::Compat) >= 0.12
Requires: perl(Module::Find) >= 0.07
Requires: perl(Moo) >= 2.000
Requires: perl(Path::Class) >= 0.18
Accepting request 815918 from devel:languages:perl:autoupdate - updated to 0.082842 see /usr/share/doc/packages/perl-DBIx-Class/Changes 0.082842 2020-06-16 20:10 (UTC) * New Features - An on_connect rebase_sqlmaker call allowing experimentation with non-core SQL generators on a per-$schema-instance basis https://is.gd/DBIC_rebase_sqlmaker - Automatically detect and use multi-column IN on recent versions of libsqlite: ... WHERE ( foo, bar ) IN ( SELECT foo, bar FROM ... ) * Fixes - Fix silent failure to retrieve a primary key (RT#80283) or worse: returning an incorrect value (RT#115381) in case a rdbms-side autoinc column is declared as PK with the is_auto_increment attribute unset - Fix overly-aggressive condition unrolling, corrupting custom ops with array arguments (RT#132390) - Fix docs on how to properly use Moo(se) in ResultSet's, and fix a corner case of ->count not functioning properly when the old recipe was being used (GH#105) - Fix incorrect ::Storage->_ping() behavior under Sybase (RT#114214) - Work around breakage in Hash::Merge by soft-requiring Clone as part of the replicated subsystem (RT#124321) * Misc - DBIC_TRACE_PROFILE=... now uses a ::Storage::Statistics subclass DBIx::Class::Storage::Debug::PrettyTrace which properly ships as a part of this distrinbution - Switch out SQL::Abstract dependency with a slower moving dist - Remove Data::Page dependency by inlining its entirety into the core DBIx::Class::ResultSet::Pager (RT#130686) OBS-URL: https://build.opensuse.org/request/show/815918 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-DBIx-Class?expand=0&rev=32
2020-06-22 08:49:16 +00:00
Requires: perl(SQL::Abstract::Classic) >= 1.91
Requires: perl(Scope::Guard) >= 0.03
Requires: perl(Sub::Name) >= 0.04
Requires: perl(Text::Balanced) >= 2.00
Requires: perl(Try::Tiny) >= 0.07
Requires: perl(namespace::clean) >= 0.24
%{perl_requires}
# MANUAL BEGIN
# workaround a spurious test failure in "skipped" t/cdbi/mk_group_accessors.t
BuildRequires: perl(Class::DBI)
# MANUAL END
%description
This is an SQL to OO mapper with an object API inspired by Class::DBI (with
a compatibility layer as a springboard for porting) and a resultset API
that allows abstract encapsulation of database operations. It aims to make
representing queries in your code as perl-ish as possible while still
providing access to as many of the capabilities of the database as
possible, including retrieving related records from multiple tables in a
single query, 'JOIN', 'LEFT JOIN', 'COUNT', 'DISTINCT', 'GROUP BY', 'ORDER
BY' and 'HAVING' support.
DBIx::Class can handle multi-column primary and foreign keys, complex
queries and database-level paging, and does its best to only query the
database in order to return something you've directly asked for. If a
resultset is used as an iterator it only fetches rows off the statement
handle as requested in order to minimise memory usage. It has
auto-increment support for SQLite, MySQL, PostgreSQL, Oracle, SQL Server
and DB2 and is known to be used in production on at least the first four,
and is fork- and thread-safe out of the box (although your DBD may not be).
This project is still under rapid development, so large new features may be
marked *experimental* - such APIs are still usable but may have edge bugs.
Failing test cases are _always_ welcome and point releases are put out
rapidly as bugs are found and fixed.
We do our best to maintain full backwards compatibility for published APIs,
since DBIx::Class is used in production in many organisations, and even
backwards incompatible changes to non-published APIs will be fixed if
they're reported and doing so doesn't cost the codebase anything.
The test suite is quite substantial, and several developer releases are
generally made to CPAN before the branch for the next release is merged
back to trunk for a major release.
%prep
%autosetup -n %{cpan_name}-%{version} -p1
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
# MANUAL BEGIN
sed -i -e 's/use inc::Module::Install/use lib q[.];\nuse inc::Module::Install/' Makefile.PL
# MANUAL END
%build
Accepting request 815918 from devel:languages:perl:autoupdate - updated to 0.082842 see /usr/share/doc/packages/perl-DBIx-Class/Changes 0.082842 2020-06-16 20:10 (UTC) * New Features - An on_connect rebase_sqlmaker call allowing experimentation with non-core SQL generators on a per-$schema-instance basis https://is.gd/DBIC_rebase_sqlmaker - Automatically detect and use multi-column IN on recent versions of libsqlite: ... WHERE ( foo, bar ) IN ( SELECT foo, bar FROM ... ) * Fixes - Fix silent failure to retrieve a primary key (RT#80283) or worse: returning an incorrect value (RT#115381) in case a rdbms-side autoinc column is declared as PK with the is_auto_increment attribute unset - Fix overly-aggressive condition unrolling, corrupting custom ops with array arguments (RT#132390) - Fix docs on how to properly use Moo(se) in ResultSet's, and fix a corner case of ->count not functioning properly when the old recipe was being used (GH#105) - Fix incorrect ::Storage->_ping() behavior under Sybase (RT#114214) - Work around breakage in Hash::Merge by soft-requiring Clone as part of the replicated subsystem (RT#124321) * Misc - DBIC_TRACE_PROFILE=... now uses a ::Storage::Statistics subclass DBIx::Class::Storage::Debug::PrettyTrace which properly ships as a part of this distrinbution - Switch out SQL::Abstract dependency with a slower moving dist - Remove Data::Page dependency by inlining its entirety into the core DBIx::Class::ResultSet::Pager (RT#130686) OBS-URL: https://build.opensuse.org/request/show/815918 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-DBIx-Class?expand=0&rev=32
2020-06-22 08:49:16 +00:00
PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
Accepting request 815918 from devel:languages:perl:autoupdate - updated to 0.082842 see /usr/share/doc/packages/perl-DBIx-Class/Changes 0.082842 2020-06-16 20:10 (UTC) * New Features - An on_connect rebase_sqlmaker call allowing experimentation with non-core SQL generators on a per-$schema-instance basis https://is.gd/DBIC_rebase_sqlmaker - Automatically detect and use multi-column IN on recent versions of libsqlite: ... WHERE ( foo, bar ) IN ( SELECT foo, bar FROM ... ) * Fixes - Fix silent failure to retrieve a primary key (RT#80283) or worse: returning an incorrect value (RT#115381) in case a rdbms-side autoinc column is declared as PK with the is_auto_increment attribute unset - Fix overly-aggressive condition unrolling, corrupting custom ops with array arguments (RT#132390) - Fix docs on how to properly use Moo(se) in ResultSet's, and fix a corner case of ->count not functioning properly when the old recipe was being used (GH#105) - Fix incorrect ::Storage->_ping() behavior under Sybase (RT#114214) - Work around breakage in Hash::Merge by soft-requiring Clone as part of the replicated subsystem (RT#124321) * Misc - DBIC_TRACE_PROFILE=... now uses a ::Storage::Statistics subclass DBIx::Class::Storage::Debug::PrettyTrace which properly ships as a part of this distrinbution - Switch out SQL::Abstract dependency with a slower moving dist - Remove Data::Page dependency by inlining its entirety into the core DBIx::Class::ResultSet::Pager (RT#130686) OBS-URL: https://build.opensuse.org/request/show/815918 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-DBIx-Class?expand=0&rev=32
2020-06-22 08:49:16 +00:00
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc AUTHORS Changes examples README
%license LICENSE
%changelog