3 %bcond_without tests # do not perform "make test"
6 %define pnam ContextualFetch
7 Summary: Add contextual fetches to DBI
8 Summary(pl.UTF-8): Dodanie kontekstowych pobrań do DBI
9 Name: perl-DBIx-ContextualFetch
13 License: GPL or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 20a78432ae26b266216b7b30ff7941c3
17 URL: http://search.cpan.org/dist/DBIx-ContextualFetch/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl-DBD-SQLite
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 DBIx::ContextualFetch module adds contextual fetches to DBI. DBI
28 itself doesn't take much advantage of Perl's context sensitivity.
29 DBIx::ContextualFetch redefines some of the various fetch methods to
30 fix this oversight. It also adds a few new methods for convenience
31 (though not necessarily efficiency).
33 %description -l pl.UTF-8
34 Moduł DBIx::ContextualFetch dodaje kontekstowe pobrania do DBI. Samo
35 DBI nie robi większego użytku z perlowej kontekstowości.
36 DBIx::ContextualFetch redefiniuje część różnych metod pobierających,
37 aby poprawić to przeoczenie. Dodaje także kilka nowych metod dla
38 wygody (ale niekoniecznie wydajności).
41 %setup -q -n %{pdir}-%{pnam}-%{version}
44 %{__perl} Makefile.PL \
49 %{?with_tests:%{__make} test}
52 rm -rf $RPM_BUILD_ROOT
55 DESTDIR=$RPM_BUILD_ROOT
58 rm -rf $RPM_BUILD_ROOT
61 %defattr(644,root,root,755)
63 %{perl_vendorlib}/DBIx/ContextualFetch.pm