]> git.pld-linux.org Git - packages/perl-Class-DBI-Loader.git/blob - perl-Class-DBI-Loader.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Class-DBI-Loader.git] / perl-Class-DBI-Loader.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define pdir    Class
6 %define pnam    DBI-Loader
7 Summary:        Class::DBI::Loader - Dynamic definition of Class::DBI sub classes
8 Summary(pl.UTF-8):      Class::DBI::Loader - dynamiczne definiowanie podklas Class::DBI
9 Name:           perl-Class-DBI-Loader
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-module/Class/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  ed560f11d64621fd9107e287f9c8eae4
17 URL:            http://search.cpan.org/dist/Class-DBI-Loader/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 %if %{with tests}
21 BuildRequires:  perl-Class-DBI >= 0.89
22 BuildRequires:  perl-Class-DBI-SQLite >= 0.09
23 BuildRequires:  perl-Lingua-EN-Inflect
24 BuildRequires:  perl-Text-Balanced
25 %endif
26 BuildArch:      noarch
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 Class::DBI::Loader automate the definition of Class::DBI sub-classes.
31 Is scans table schemas and setup columns, primary key.
32 Class::DBI::Loader supports MySQL, PostgreSQL and SQLite.
33
34 %description -l pl.UTF-8
35 Class::DBI::Loader automatyzuje definiowanie podklas Class::DBI. 
36 Skanuje schematy tabel i ustawia kolumny oraz klucz główny.
37 Class::DBI::Loader obsługuje MySQL-a, PostgreSQL-a oraz SQLite.
38
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} 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 README
61 %{perl_vendorlib}/Class/DBI/*.pm
62 # Class::DBI::Pg is not in PLD yet
63 %exclude %{perl_vendorlib}/Class/DBI/Loader/Pg.pm
64 %{perl_vendorlib}/Class/DBI/Loader
65 %exclude %{_mandir}/man3/*Pg*
66 %{_mandir}/man3/*
This page took 0.059758 seconds and 4 git commands to generate.