1 |
%define upstream_name DBIx-ContextualFetch |
2 |
%define upstream_version 1.03 |
3 |
|
4 |
%{?perl_default_filter} |
5 |
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(DBI::(st|db)\\) |
6 |
|
7 |
Name: perl-%{upstream_name} |
8 |
Version: %perl_convert_version %{upstream_version} |
9 |
Release: %mkrel 9 |
10 |
|
11 |
summary: Add contextual fetches to DBI |
12 |
license: Artistic |
13 |
Group: Development/Perl |
14 |
Url: http://search.cpan.org/dist/%{upstream_name} |
15 |
Source0: http://search.cpan.org/CPAN/authors/id/T/TM/TMTM/%{upstream_name}-%{upstream_version}.tar.bz2 |
16 |
|
17 |
BuildArch: noarch |
18 |
|
19 |
%description |
20 |
It always struck me odd that DBI didn't take much advantage of Perl's |
21 |
context sensitivity. DBIx::ContextualFetch redefines some of the various |
22 |
fetch methods to fix this oversight. It also adds a few new methods for |
23 |
convenience (though not necessarily efficiency). |
24 |
|
25 |
%prep |
26 |
%setup -q -n %{upstream_name}-%{upstream_version} |
27 |
|
28 |
%build |
29 |
%{__perl} Makefile.PL INSTALLDIRS=vendor |
30 |
%make |
31 |
|
32 |
%check |
33 |
%{__make} test |
34 |
|
35 |
%install |
36 |
%make_install |
37 |
|
38 |
%files |
39 |
%doc README Changes |
40 |
%{perl_vendorlib}/DBIx |
41 |
%{_mandir}/*/* |
42 |
|
43 |
|