]> git.pld-linux.org Git - SPECS.git/blob - perl-DBD-mysqlPP.spec
SPECS updated Mon 29 Apr 22:05:02 CEST 2024
[SPECS.git] / perl-DBD-mysqlPP.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4
5 %define         pdir    DBD
6 %define         pnam    mysqlPP
7 Summary:        DBD::mysqlPP - pure Perl MySQL driver for the DBI
8 Summary(pl.UTF-8):      DBD::mysqlPP - czysto perlowy sterownik do MySQL-a dla DBI
9 Name:           perl-DBD-mysqlPP
10 Version:        0.07
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/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  a259806d4c82e486fb474d8b5c15e6dd
17 URL:            http://search.cpan.org/dist/DBD-mysqlPP/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 %if %{with tests}
21 BuildRequires:  perl-DBI >= 1.0
22 BuildRequires:  perl-Net-MySQL >= 0.08
23 %endif
24 Requires:       perl-Net-MySQL >= 0.08
25 BuildArch:      noarch
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 DBD::mysqlPP is a Pure Perl MySQL driver for the Perl5 Database
30 Interface (DBI). This module implements network protool between server
31 and client of MySQL, thus you don't need external MySQL client library
32 like libmysqlclient for this module to work. It means this module
33 enables you to connect to MySQL server from some operation systems
34 which MySQL is not ported.
35
36 %description -l pl.UTF-8
37 DBD::mysqlPP to czysto perlowy sterownik do MySQL-a dla DBI (perlowego
38 interfejsu do baz danych). Ten moduł jest implementacją protokołu
39 sieciowego między serwerem a klientem MySQL-a, przez co nie wymaga do
40 działania zewnętrznej biblioteki klienckiej MySQL-a, takiej jak
41 libmysqlclient. Oznacza to, że moduł ten umożliwia połączenie z
42 serwerem MySQL nawet z systemu operacyjnego, na który MySQL nie został
43 sportowany.
44
45 %prep
46 %setup -q -n %{pdir}-%{pnam}-%{version}
47
48 %build
49 %{__perl} Makefile.PL \
50         INSTALLDIRS=vendor
51
52 %{__make}
53
54 %{?with_tests:%{__make} test}
55
56 %install
57 rm -rf $RPM_BUILD_ROOT
58
59 %{__make} install \
60         DESTDIR=$RPM_BUILD_ROOT
61
62 %clean
63 rm -rf $RPM_BUILD_ROOT
64
65 %files
66 %defattr(644,root,root,755)
67 %doc Changes README
68 %{perl_vendorlib}/DBD/mysqlPP.pm
69 %{_mandir}/man3/*
This page took 0.56403 seconds and 3 git commands to generate.