3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 %define pnam DBI-Plugin
8 Summary: Class::DBI::Plugin - Abstract base class for Class::DBI plugins
10 Name: perl-Class-DBI-Plugin
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/Class/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: b020611a93fe51cbcdfd78f2cbf872cb
18 #URL: http://search.cpan.org/dist/Class-DBI-Plugin/
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRequires: perl(Class::DBI) >= 0.9
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 Class::DBI::Plugin is an abstract base class for Class::DBI plugins. Its
29 purpose is to make writing plugins easier. Writers of plugins should be able
30 to concentrate on the functionality their module provides, instead of having
31 to deal with the symbol table hackery involved when writing a plugin
33 Only three things must be remembered:
37 # %description -l pl.UTF-8
41 %setup -q -n %{pdir}-%{pnam}-%{version}
44 %{__perl} Makefile.PL \
48 %{?with_tests:%{__make} test}
51 rm -rf $RPM_BUILD_ROOT
53 %{__make} pure_install \
54 DESTDIR=$RPM_BUILD_ROOT
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)
62 %{perl_vendorlib}/Class/DBI/*.pm