]>
Commit | Line | Data |
---|---|---|
792b226f ER |
1 | # |
2 | # Conditional build: | |
3bc414b7 | 3 | %bcond_without autodeps # don't BR packages needed only for resolving deps |
792b226f ER |
4 | %bcond_without tests # do not perform "make test" |
5 | # | |
6 | %include /usr/lib/rpm/macros.perl | |
7 | %define pdir Class | |
8 | %define pnam DBI-AbstractSearch | |
9 | Summary: Class::DBI::AbstractSearch - Abstract Class::DBI's SQL with SQL::Abstract::Limit | |
6faecd73 | 10 | Summary(pl): Class::DBI::AbstractSearch - abstrakcja SQL Class::DBI z SQL::Abstract::Limit |
792b226f ER |
11 | Name: perl-Class-DBI-AbstractSearch |
12 | Version: 0.07 | |
07ffc4c0 | 13 | Release: 0.4 |
792b226f ER |
14 | # same as perl |
15 | License: GPL v1+ or Artistic | |
16 | Group: Development/Languages/Perl | |
17 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
18 | # Source0-md5: d40e7301201135fe0246251097132a54 | |
19 | BuildRequires: perl-devel >= 1:5.8.0 | |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
3bc414b7 | 21 | %if %{with autodeps} || %{with tests} |
792b226f ER |
22 | BuildRequires: perl(Class::DBI) >= 0.9 |
23 | BuildRequires: perl(SQL::Abstract::Limit) >= 0.1 | |
24 | BuildRequires: perl(Test::More) >= 0.32 | |
25 | %endif | |
07ffc4c0 ER |
26 | # not autodetected |
27 | Requires: perl-Class-DBI | |
792b226f ER |
28 | BuildArch: noarch |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
30 | ||
31 | %description | |
32 | Class::DBI::AbstractSearch is a Class::DBI plugin to glue | |
33 | SQL::Abstract::Limit into Class::DBI. | |
34 | ||
6faecd73 JB |
35 | %description -l pl |
36 | Class::DBI::AbstractSearch to wtyczka Class::DBI do wklejenia | |
37 | SQL::Abstract::Limit w Class::DBI. | |
38 | ||
792b226f ER |
39 | %prep |
40 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
41 | ||
42 | %build | |
43 | %{__perl} Makefile.PL \ | |
44 | INSTALLDIRS=vendor | |
45 | %{__make} | |
46 | ||
47 | %{?with_tests:%{__make} test} | |
48 | ||
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %{__make} pure_install \ | |
53 | DESTDIR=$RPM_BUILD_ROOT | |
54 | ||
55 | %clean | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %files | |
59 | %defattr(644,root,root,755) | |
60 | %doc Changes | |
61 | %{perl_vendorlib}/Class/DBI/AbstractSearch.pm | |
62 | %{_mandir}/man3/* |