]> git.pld-linux.org Git - packages/perl-Class-DBI-AbstractSearch.git/blame - perl-Class-DBI-AbstractSearch.spec
- new
[packages/perl-Class-DBI-AbstractSearch.git] / perl-Class-DBI-AbstractSearch.spec
CommitLineData
792b226f
ER
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
5%include /usr/lib/rpm/macros.perl
6%define pdir Class
7%define pnam DBI-AbstractSearch
8Summary: Class::DBI::AbstractSearch - Abstract Class::DBI's SQL with SQL::Abstract::Limit
9Name: perl-Class-DBI-AbstractSearch
10Version: 0.07
11Release: 0.1
12# same as perl
13License: GPL v1+ or Artistic
14Group: Development/Languages/Perl
15Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16# Source0-md5: d40e7301201135fe0246251097132a54
17BuildRequires: perl-devel >= 1:5.8.0
18BuildRequires: rpm-perlprov >= 4.1-13
19%if %{with tests}
20BuildRequires: perl(Class::DBI) >= 0.9
21BuildRequires: perl(SQL::Abstract::Limit) >= 0.1
22BuildRequires: perl(Test::More) >= 0.32
23%endif
24BuildArch: noarch
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
28Class::DBI::AbstractSearch is a Class::DBI plugin to glue
29SQL::Abstract::Limit into Class::DBI.
30
31%prep
32%setup -q -n %{pdir}-%{pnam}-%{version}
33
34%build
35%{__perl} Makefile.PL \
36 INSTALLDIRS=vendor
37%{__make}
38
39%{?with_tests:%{__make} test}
40
41%install
42rm -rf $RPM_BUILD_ROOT
43
44%{__make} pure_install \
45 DESTDIR=$RPM_BUILD_ROOT
46
47%clean
48rm -rf $RPM_BUILD_ROOT
49
50%files
51%defattr(644,root,root,755)
52%doc Changes
53%{perl_vendorlib}/Class/DBI/AbstractSearch.pm
54%{_mandir}/man3/*
This page took 0.084826 seconds and 4 git commands to generate.