]> git.pld-linux.org Git - packages/perl-Class-DBI-Plugin.git/blob - perl-Class-DBI-Plugin.spec
6bc3b9756a62e21caec20d19f44076d73eb47f53
[packages/perl-Class-DBI-Plugin.git] / perl-Class-DBI-Plugin.spec
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-Plugin
8 Summary:        Class::DBI::Plugin - Abstract base class for Class::DBI plugins
9 #Summary(pl.UTF-8):     
10 Name:           perl-Class-DBI-Plugin
11 Version:        0.03
12 Release:        1
13 # same as perl
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
21 %if %{with tests}
22 BuildRequires:  perl(Class::DBI) >= 0.9
23 %endif
24 BuildArch:      noarch
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
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
32 module.
33 Only three things must be remembered:
34
35
36
37 # %description -l pl.UTF-8
38 # TODO
39
40 %prep
41 %setup -q -n %{pdir}-%{pnam}-%{version}
42
43 %build
44 %{__perl} Makefile.PL \
45         INSTALLDIRS=vendor
46 %{__make}
47
48 %{?with_tests:%{__make} test}
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52
53 %{__make} pure_install \
54         DESTDIR=$RPM_BUILD_ROOT
55
56 %clean
57 rm -rf $RPM_BUILD_ROOT
58
59 %files
60 %defattr(644,root,root,755)
61 %doc Changes
62 %{perl_vendorlib}/Class/DBI/*.pm
63 %{_mandir}/man3/*
This page took 0.034896 seconds and 2 git commands to generate.