2011-02-17 16:26:44 +00:00
|
|
|
#
|
2015-04-15 09:33:49 +00:00
|
|
|
# spec file for package perl-Rose-DB
|
2011-02-17 16:26:44 +00:00
|
|
|
#
|
2024-08-16 21:32:09 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2011-02-17 16:26:44 +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.
|
|
|
|
|
2019-08-10 14:55:46 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-02-17 16:26:44 +00:00
|
|
|
#
|
|
|
|
|
2015-04-15 09:33:49 +00:00
|
|
|
|
2023-02-15 17:17:20 +00:00
|
|
|
%define cpan_name Rose-DB
|
2011-02-17 16:26:44 +00:00
|
|
|
Name: perl-Rose-DB
|
2024-08-29 07:05:10 +00:00
|
|
|
Version: 0.786.0
|
2015-04-15 09:33:49 +00:00
|
|
|
Release: 0
|
2024-08-29 07:05:10 +00:00
|
|
|
# 0.786 -> normalize -> 0.786.0
|
|
|
|
%define cpan_version 0.786
|
2019-08-10 14:55:46 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2023-02-15 17:17:20 +00:00
|
|
|
Summary: DBI wrapper and abstraction layer
|
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2024-08-16 21:32:09 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/J/JS/JSIRACUSA/%{cpan_name}-%{cpan_version}.tar.gz
|
2016-07-04 15:18:39 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:16:54 +02:00
|
|
|
Source100: README.md
|
2015-04-15 09:33:49 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2011-02-17 16:26:44 +00:00
|
|
|
BuildRequires: perl(Bit::Vector::Overload) >= 6.4
|
|
|
|
BuildRequires: perl(Clone::PP)
|
2015-04-15 09:33:49 +00:00
|
|
|
BuildRequires: perl(DBI)
|
2011-02-17 16:26:44 +00:00
|
|
|
BuildRequires: perl(DateTime::Duration)
|
|
|
|
BuildRequires: perl(DateTime::Format::MySQL)
|
|
|
|
BuildRequires: perl(DateTime::Format::Oracle)
|
|
|
|
BuildRequires: perl(DateTime::Format::Pg) >= 0.11
|
|
|
|
BuildRequires: perl(Rose::DateTime::Util) >= 0.532
|
|
|
|
BuildRequires: perl(Rose::Object) >= 0.854
|
|
|
|
BuildRequires: perl(SQL::ReservedWords)
|
|
|
|
BuildRequires: perl(Time::Clock)
|
|
|
|
Requires: perl(Bit::Vector::Overload) >= 6.4
|
|
|
|
Requires: perl(Clone::PP)
|
2015-04-15 09:33:49 +00:00
|
|
|
Requires: perl(DBI)
|
2011-02-17 16:26:44 +00:00
|
|
|
Requires: perl(DateTime::Duration)
|
|
|
|
Requires: perl(DateTime::Format::MySQL)
|
|
|
|
Requires: perl(DateTime::Format::Oracle)
|
|
|
|
Requires: perl(DateTime::Format::Pg) >= 0.11
|
|
|
|
Requires: perl(Rose::DateTime::Util) >= 0.532
|
|
|
|
Requires: perl(Rose::Object) >= 0.854
|
|
|
|
Requires: perl(SQL::ReservedWords)
|
|
|
|
Requires: perl(Time::Clock)
|
2024-08-16 21:32:09 +00:00
|
|
|
Provides: perl(Rose::DB) = %{version}
|
|
|
|
Provides: perl(Rose::DB::Cache) = 0.755.0
|
|
|
|
Provides: perl(Rose::DB::Cache::Entry) = 0.736.0
|
|
|
|
Provides: perl(Rose::DB::Constants)
|
|
|
|
Provides: perl(Rose::DB::Generic) = 0.110.0
|
|
|
|
Provides: perl(Rose::DB::Informix) = 0.774.0
|
|
|
|
Provides: perl(Rose::DB::MariaDB) = 0.780.0
|
|
|
|
Provides: perl(Rose::DB::MySQL) = 0.774.0
|
|
|
|
Provides: perl(Rose::DB::Oracle) = 0.784.0
|
|
|
|
Provides: perl(Rose::DB::Oracle::DateHandler)
|
2024-08-29 07:05:10 +00:00
|
|
|
Provides: perl(Rose::DB::Pg) = %{version}
|
2024-08-16 21:32:09 +00:00
|
|
|
Provides: perl(Rose::DB::Registry) = 0.728.0
|
|
|
|
Provides: perl(Rose::DB::Registry::Entry) = 0.784.0
|
|
|
|
Provides: perl(Rose::DB::SQLite) = 0.765.0
|
|
|
|
Provides: perl(Rose::DateTime::Format::Generic)
|
|
|
|
%undefine __perllib_provides
|
2011-02-17 16:26:44 +00:00
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
2016-07-04 15:18:39 +00:00
|
|
|
Rose::DB is a wrapper and abstraction layer for DBI-related functionality.
|
|
|
|
A Rose::DB object "has a" DBI object; it is not a subclass of DBI.
|
2011-02-17 16:26:44 +00:00
|
|
|
|
2016-07-04 15:18:39 +00:00
|
|
|
Please see the tutorial (perldoc Rose::DB::Tutorial) for an example usage
|
|
|
|
scenario that reflects "best practices" for this module.
|
2011-02-17 16:26:44 +00:00
|
|
|
|
|
|
|
*Tip:* Are you looking for an object-relational mapper (ORM)? If so, please
|
2016-07-04 15:18:39 +00:00
|
|
|
see the Rose::DB::Object module. Rose::DB::Object is an ORM that uses this
|
|
|
|
module to manage its database connections. Rose::DB alone is simply a data
|
|
|
|
source abstraction layer; it is not an ORM.
|
2011-02-17 16:26:44 +00:00
|
|
|
|
|
|
|
%prep
|
2024-08-16 21:32:09 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
2023-02-15 17:17:20 +00:00
|
|
|
|
2024-08-16 21:32:09 +00:00
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
2011-02-17 16:26:44 +00:00
|
|
|
|
|
|
|
%build
|
2019-08-10 14:55:46 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2023-02-15 17:17:20 +00:00
|
|
|
%make_build
|
2011-02-17 16:26:44 +00:00
|
|
|
|
|
|
|
%check
|
2019-08-10 14:55:46 +00:00
|
|
|
make test
|
2011-02-17 16:26:44 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
%doc Changes
|
|
|
|
|
|
|
|
%changelog
|