]> git.pld-linux.org Git - packages/perl-DBIx-ContextualFetch.git/blob - perl-DBIx-ContextualFetch.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-DBIx-ContextualFetch.git] / perl-DBIx-ContextualFetch.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %define         pdir    DBIx
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
10 Version:        1.03
11 Release:        2
12 # same as perl
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
20 %if %{with tests}
21 BuildRequires:  perl-DBD-SQLite
22 %endif
23 BuildArch:      noarch
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
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).
32
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).
39
40 %prep
41 %setup -q -n %{pdir}-%{pnam}-%{version}
42
43 %build
44 %{__perl} Makefile.PL \
45         INSTALLDIRS=vendor
46
47 %{__make}
48
49 %{?with_tests:%{__make} test}
50
51 %install
52 rm -rf $RPM_BUILD_ROOT
53
54 %{__make} install \
55         DESTDIR=$RPM_BUILD_ROOT
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %files
61 %defattr(644,root,root,755)
62 %doc Changes
63 %{perl_vendorlib}/DBIx/ContextualFetch.pm
64 %{_mandir}/man3/*
This page took 0.078289 seconds and 4 git commands to generate.