8
0

Accepting request 295853 from devel:languages:perl:autoupdate

automatic update

OBS-URL: https://build.opensuse.org/request/show/295853
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Data-ObjectDriver?expand=0&rev=10
This commit is contained in:
Stephan Kulow
2015-04-14 08:06:52 +00:00
committed by Git OBS Bridge
parent 434c5f6259
commit 67971590c7
5 changed files with 60 additions and 33 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-Data-ObjectDriver
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 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
@@ -15,51 +15,60 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: perl-Data-ObjectDriver
Version: 0.11
Release: 0
%define cpan_name Data-ObjectDriver
Summary: Data::ObjectDriver
Version: 0.06
Release: 1
License: Artistic License
Group: Development/Languages/Perl
Summary: Simple, transparent data interface, with caching
License: Artistic-2.0
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Data-ObjectDriver/
Source: %{cpan_name}-%{version}.tar.bz2
Source: http://www.cpan.org/authors/id/S/SI/SIXAPART/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl perl-Class-Accessor perl-Class-Trigger perl-DBD-SQLite perl-DBI perl-Sub-Uplevel
BuildRequires: perl-Class-Data-Inheritable
BuildRequires: perl
BuildRequires: perl-macros
Requires: perl-DBI perl-Class-Accessor perl-Class-Data-Inheritable perl-Class-Trigger perl-Sub-Uplevel
BuildRequires: perl(Class::Accessor::Fast)
BuildRequires: perl(Class::Data::Inheritable)
BuildRequires: perl(Class::Trigger)
BuildRequires: perl(DBI)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.59
BuildRequires: perl(Module::Build) >= 0.38
BuildRequires: perl(Test::Exception)
Requires: perl(Class::Accessor::Fast)
Requires: perl(Class::Data::Inheritable)
Requires: perl(Class::Trigger)
Requires: perl(DBI)
Recommends: perl(Text::SimpleTable)
%{perl_requires}
%description
Data-ObjectDriver - Simple, transparent data interface, with caching
_Data::ObjectDriver_ is an object relational mapper, meaning that it maps
object-oriented design concepts onto a relational database.
It's inspired by, and descended from, the _MT::ObjectDriver_ classes in Six
Apart's Movable Type and TypePad weblogging products. But it adds in
caching and partitioning layers, allowing you to spread data across
multiple physical databases, without your application code needing to know
where the data is stored.
%prep
%setup -q -n %{cpan_name}-%{version}
# fails to run
rm t/02-basic.t
%build
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
%{__make}
%{__perl} Build.PL installdirs=vendor
./Build build flags=%{?_smp_mflags}
%check
%{__make} test
./Build test
%install
%perl_make_install
%perl_process_packlist
./Build install destdir=%{buildroot} create_packlist=0
%perl_gen_filelist
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files -f %{name}.files
# normally you only need to check for doc files
%defattr(-,root,root)
%doc README
%defattr(-,root,root,755)
%doc Changes LICENSE minil.toml README.md ToDo
%changelog