3 %bcond_without tests # do not perform "make test"
7 %include /usr/lib/rpm/macros.perl
8 Summary: DBD::mysqlPP - pure Perl MySQL driver for the DBI
9 Summary(pl.UTF-8): DBD::mysqlPP - czysto perlowy sterownik do MySQL-a dla DBI
10 Name: perl-DBD-mysqlPP
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: a259806d4c82e486fb474d8b5c15e6dd
18 URL: http://search.cpan.org/dist/DBD-mysqlPP/
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRequires: perl-DBI >= 1.0
23 BuildRequires: perl-Net-MySQL >= 0.08
25 Requires: perl-Net-MySQL >= 0.08
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 DBD::mysqlPP is a Pure Perl MySQL driver for the Perl5 Database
31 Interface (DBI). This module implements network protool between server
32 and client of MySQL, thus you don't need external MySQL client library
33 like libmysqlclient for this module to work. It means this module
34 enables you to connect to MySQL server from some operation systems
35 which MySQL is not ported.
37 %description -l pl.UTF-8
38 DBD::mysqlPP to czysto perlowy sterownik do MySQL-a dla DBI (perlowego
39 interfejsu do baz danych). Ten moduł jest implementacją protokołu
40 sieciowego między serwerem a klientem MySQL-a, przez co nie wymaga do
41 działania zewnętrznej biblioteki klienckiej MySQL-a, takiej jak
42 libmysqlclient. Oznacza to, że moduł ten umożliwia połączenie z
43 serwerem MySQL nawet z systemu operacyjnego, na który MySQL nie został
47 %setup -q -n %{pdir}-%{pnam}-%{version}
50 %{__perl} Makefile.PL \
55 %{?with_tests:%{__make} test}
58 rm -rf $RPM_BUILD_ROOT
61 DESTDIR=$RPM_BUILD_ROOT
64 rm -rf $RPM_BUILD_ROOT
67 %defattr(644,root,root,755)
69 %{perl_vendorlib}/DBD/mysqlPP.pm