2011-01-17 15:53:53 +00:00
|
|
|
#
|
2012-01-13 10:29:26 +00:00
|
|
|
# spec file for package perl-DBIx-Class-Schema-Loader
|
2011-01-17 15:53:53 +00:00
|
|
|
#
|
2025-04-14 20:42:23 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2011-01-17 15:53:53 +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.
|
|
|
|
|
2022-12-10 18:13:29 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-01-17 15:53:53 +00:00
|
|
|
#
|
|
|
|
|
2012-01-13 10:29:26 +00:00
|
|
|
|
2022-12-10 18:13:29 +00:00
|
|
|
%define cpan_name DBIx-Class-Schema-Loader
|
2011-01-17 15:53:53 +00:00
|
|
|
Name: perl-DBIx-Class-Schema-Loader
|
2025-04-14 20:42:23 +00:00
|
|
|
Version: 0.07053
|
2012-01-13 10:29:26 +00:00
|
|
|
Release: 0
|
2018-04-04 10:14:10 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2022-12-10 18:13:29 +00:00
|
|
|
Summary: Create a DBIx::Class::Schema based on a database
|
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/V/VE/VEESH/%{cpan_name}-%{version}.tar.gz
|
2015-05-18 05:23:27 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:13:23 +02:00
|
|
|
Source100: README.md
|
2011-04-21 05:22:08 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2011-01-17 15:53:53 +00:00
|
|
|
BuildRequires: perl(Carp::Clan)
|
2014-12-02 10:09:08 +00:00
|
|
|
BuildRequires: perl(Class::Accessor::Grouped) >= 0.10008
|
2011-04-21 05:22:08 +00:00
|
|
|
BuildRequires: perl(Class::C3::Componentised) >= 1.0008
|
2012-06-01 05:18:28 +00:00
|
|
|
BuildRequires: perl(Class::Inspector) >= 1.27
|
2014-12-02 10:09:08 +00:00
|
|
|
BuildRequires: perl(Class::Unload) >= 0.07
|
2025-04-14 20:42:23 +00:00
|
|
|
BuildRequires: perl(DBD::SQLite) >= 1.290
|
2011-04-21 05:22:08 +00:00
|
|
|
BuildRequires: perl(DBIx::Class) >= 0.08127
|
2012-01-13 10:29:26 +00:00
|
|
|
BuildRequires: perl(Data::Dump) >= 1.06
|
2011-01-17 15:53:53 +00:00
|
|
|
BuildRequires: perl(Exporter) >= 5.63
|
2024-03-07 17:18:56 +00:00
|
|
|
BuildRequires: perl(File::Path) >= 2.07
|
2025-04-14 20:42:23 +00:00
|
|
|
BuildRequires: perl(Hash::Merge) >= 0.120
|
2011-01-17 15:53:53 +00:00
|
|
|
BuildRequires: perl(Lingua::EN::Inflect::Number) >= 1.1
|
2014-12-02 10:09:08 +00:00
|
|
|
BuildRequires: perl(Lingua::EN::Inflect::Phrase) >= 0.15
|
|
|
|
BuildRequires: perl(Lingua::EN::Tagger) >= 0.23
|
2015-05-18 05:23:27 +00:00
|
|
|
BuildRequires: perl(List::Util) >= 1.33
|
2012-01-13 10:29:26 +00:00
|
|
|
BuildRequires: perl(MRO::Compat) >= 0.09
|
2014-12-02 10:09:08 +00:00
|
|
|
BuildRequires: perl(Scope::Guard) >= 0.20
|
2022-12-10 18:13:29 +00:00
|
|
|
BuildRequires: perl(String::CamelCase) >= 0.04
|
2012-01-13 10:39:46 +00:00
|
|
|
BuildRequires: perl(String::ToIdentifier::EN) >= 0.05
|
2015-05-18 05:23:27 +00:00
|
|
|
BuildRequires: perl(Sub::Util) >= 1.40
|
2014-12-02 10:09:08 +00:00
|
|
|
BuildRequires: perl(Test::Deep) >= 0.107
|
2025-04-14 20:42:23 +00:00
|
|
|
BuildRequires: perl(Test::Differences) >= 0.600
|
2024-03-07 17:18:56 +00:00
|
|
|
BuildRequires: perl(Test::Exception) >= 0.31
|
2011-04-21 05:22:08 +00:00
|
|
|
BuildRequires: perl(Test::More) >= 0.94
|
2011-01-17 15:53:53 +00:00
|
|
|
BuildRequires: perl(Test::Warn) >= 0.21
|
|
|
|
BuildRequires: perl(Try::Tiny)
|
2018-01-22 21:29:37 +00:00
|
|
|
BuildRequires: perl(curry) >= 1.000000
|
2014-12-02 10:09:08 +00:00
|
|
|
BuildRequires: perl(namespace::clean) >= 0.23
|
2011-01-17 15:53:53 +00:00
|
|
|
Requires: perl(Carp::Clan)
|
2014-12-02 10:09:08 +00:00
|
|
|
Requires: perl(Class::Accessor::Grouped) >= 0.10008
|
2011-04-21 05:22:08 +00:00
|
|
|
Requires: perl(Class::C3::Componentised) >= 1.0008
|
2012-06-01 05:18:28 +00:00
|
|
|
Requires: perl(Class::Inspector) >= 1.27
|
2014-12-02 10:09:08 +00:00
|
|
|
Requires: perl(Class::Unload) >= 0.07
|
2011-04-21 05:22:08 +00:00
|
|
|
Requires: perl(DBIx::Class) >= 0.08127
|
2012-06-01 05:18:28 +00:00
|
|
|
Requires: perl(Data::Dump) >= 1.06
|
2011-01-17 15:53:53 +00:00
|
|
|
Requires: perl(Exporter) >= 5.63
|
2025-04-14 20:42:23 +00:00
|
|
|
Requires: perl(Hash::Merge) >= 0.120
|
2011-01-17 15:53:53 +00:00
|
|
|
Requires: perl(Lingua::EN::Inflect::Number) >= 1.1
|
2014-12-02 10:09:08 +00:00
|
|
|
Requires: perl(Lingua::EN::Inflect::Phrase) >= 0.15
|
|
|
|
Requires: perl(Lingua::EN::Tagger) >= 0.23
|
2015-05-18 05:23:27 +00:00
|
|
|
Requires: perl(List::Util) >= 1.33
|
2011-01-17 15:53:53 +00:00
|
|
|
Requires: perl(MRO::Compat) >= 0.09
|
2014-12-02 10:09:08 +00:00
|
|
|
Requires: perl(Scope::Guard) >= 0.20
|
2022-12-10 18:13:29 +00:00
|
|
|
Requires: perl(String::CamelCase) >= 0.04
|
2012-01-13 10:39:46 +00:00
|
|
|
Requires: perl(String::ToIdentifier::EN) >= 0.05
|
2015-05-18 05:23:27 +00:00
|
|
|
Requires: perl(Sub::Util) >= 1.40
|
2011-01-17 15:53:53 +00:00
|
|
|
Requires: perl(Try::Tiny)
|
2018-01-22 21:29:37 +00:00
|
|
|
Requires: perl(curry) >= 1.000000
|
2014-12-02 10:09:08 +00:00
|
|
|
Requires: perl(namespace::clean) >= 0.23
|
2011-01-17 15:53:53 +00:00
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
2016-01-28 21:13:14 +00:00
|
|
|
DBIx::Class::Schema::Loader automates the definition of a
|
|
|
|
DBIx::Class::Schema by scanning database table definitions and setting up
|
|
|
|
the columns, primary keys, unique constraints and relationships.
|
2011-01-17 15:53:53 +00:00
|
|
|
|
2016-01-28 21:13:14 +00:00
|
|
|
See dbicdump for the 'dbicdump' utility.
|
2011-04-21 05:22:08 +00:00
|
|
|
|
2011-01-17 15:53:53 +00:00
|
|
|
DBIx::Class::Schema::Loader currently supports only the DBI storage type.
|
2016-01-28 21:13:14 +00:00
|
|
|
It has explicit support for DBD::Pg, DBD::mysql, DBD::DB2, DBD::Firebird,
|
|
|
|
DBD::InterBase, DBD::Informix, DBD::SQLAnywhere, DBD::SQLite, DBD::Sybase
|
|
|
|
(for Sybase ASE and MSSSQL), DBD::ODBC (for MSSQL, MSAccess, Firebird and
|
|
|
|
SQL Anywhere) DBD::ADO (for MSSQL and MSAccess) and DBD::Oracle. Other DBI
|
|
|
|
drivers may function to a greater or lesser degree with this loader,
|
|
|
|
depending on how much of the DBI spec they implement, and how standard
|
|
|
|
their implementation is.
|
2011-01-17 15:53:53 +00:00
|
|
|
|
|
|
|
Patches to make other DBDs work correctly welcome.
|
|
|
|
|
2016-01-28 21:13:14 +00:00
|
|
|
See DBIx::Class::Schema::Loader::DBI::Writing for notes on writing your own
|
|
|
|
vendor-specific subclass for an unsupported DBD driver.
|
2011-01-17 15:53:53 +00:00
|
|
|
|
2016-01-28 21:13:14 +00:00
|
|
|
This module requires DBIx::Class 0.08127 or later, and obsoletes the older
|
|
|
|
DBIx::Class::Loader.
|
2011-01-17 15:53:53 +00:00
|
|
|
|
2016-01-28 21:13:14 +00:00
|
|
|
See DBIx::Class::Schema::Loader::Base for available options.
|
2011-01-17 15:53:53 +00:00
|
|
|
|
|
|
|
%prep
|
2025-04-14 20:42:23 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{version} -p1
|
2024-03-07 17:18:56 +00:00
|
|
|
|
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
2011-01-17 15:53:53 +00:00
|
|
|
|
|
|
|
%build
|
2022-12-10 18:13:29 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%make_build
|
2011-01-17 15:53:53 +00:00
|
|
|
|
|
|
|
%check
|
2022-12-10 18:13:29 +00:00
|
|
|
make test
|
2011-01-17 15:53:53 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2018-04-04 10:14:10 +00:00
|
|
|
%doc Changes README
|
2022-12-10 18:13:29 +00:00
|
|
|
%license LICENSE
|
2011-01-17 15:53:53 +00:00
|
|
|
|
|
|
|
%changelog
|