3 %bcond_without tests # do not perform "make test"
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
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
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
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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.
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.
40 %setup -q -n %{pdir}-%{pnam}-%{version}
43 %{__perl} Makefile.PL \
47 %{?with_tests:%{__make} test}
50 rm -rf $RPM_BUILD_ROOT
53 DESTDIR=$RPM_BUILD_ROOT
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
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*