]> git.pld-linux.org Git - packages/perl-Ima-DBI.git/blob - perl-Ima-DBI.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Ima-DBI.git] / perl-Ima-DBI.spec
1 #
2 # Conditional build:
3 %bcond_with     tests   # perform "make test"
4 #
5 %define         pdir    Ima
6 %define         pnam    DBI
7 Summary:        Ima::DBI - database connection caching and organization
8 Summary(pl.UTF-8):      Ima::DBI - organizacja i buforowanie połączenia z bazą danych
9 Name:           perl-Ima-DBI
10 Version:        0.34
11 Release:        1
12 # same as perl
13 License:        GPL v1+ or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-authors/id/T/TM/TMTM/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  1ccc6eb89ec4beb1b231fc69209b87c6
17 URL:            http://search.cpan.org/dist/Ima-DBI/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 %if %{with tests}
21 BuildRequires:  perl-DBI
22 %endif
23 Requires:       perl-DBIx-ContextualFetch
24 BuildArch:      noarch
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 Ima::DBI attempts to organize and facilitate caching and more efficient
29 use of database connections and statement handles.
30
31 %description -l pl.UTF-8
32 Ima::DBI próbuje zorganizować i ułatwić buforowanie oraz bardziej
33 wydajne wykorzystanie połączeń z bazą danych i uchwytów do
34 komunikatów.
35
36 %prep
37 %setup -q -n %{pdir}-%{pnam}-%{version}
38
39 %build
40 %{__perl} Makefile.PL \
41         INSTALLDIRS=vendor
42 %{__make}
43 %{?with_tests:%{__make} test}
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47
48 %{__make} install \
49         DESTDIR=$RPM_BUILD_ROOT
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %files
55 %defattr(644,root,root,755)
56 %dir %{perl_vendorlib}/Ima
57 %{perl_vendorlib}/Ima/DBI.pm
58 %{_mandir}/man3/*
This page took 0.075836 seconds and 4 git commands to generate.