File perl-Rose-DB.spec of Package perl-Rose-DB
#
# spec file for package perl-Rose-DB
#
# Copyright (c) 2016 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 http://bugs.opensuse.org/
#
Name: perl-Rose-DB
Version: 0.778
Release: 0
%define cpan_name Rose-DB
Summary: DBI wrapper and abstraction layer
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Rose-DB/
Source0: http://www.cpan.org/authors/id/J/JS/JSIRACUSA/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Bit::Vector::Overload) >= 6.4
BuildRequires: perl(Clone::PP)
BuildRequires: perl(DBI)
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)
Requires: perl(DBI)
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)
%{perl_requires}
%description
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.
Please see the tutorial (perldoc Rose::DB::Tutorial) for an example usage
scenario that reflects "best practices" for this module.
*Tip:* Are you looking for an object-relational mapper (ORM)? If so, please
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.
%prep
%setup -q -n %{cpan_name}-%{version}
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
%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
%changelog