]> git.pld-linux.org Git - packages/perl-Net-MySQL.git/blame - perl-Net-MySQL.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Net-MySQL.git] / perl-Net-MySQL.spec
CommitLineData
5d887095
JB
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
8e93a23d 5%define pdir Net
6%define pnam MySQL
9d97df5d 7Summary: Net::MySQL - pure Perl MySQL network protocol interface
cba01d17 8Summary(pl.UTF-8): Net::MySQL - czysto perlowy interfejs do protokołu sieciowego MySQL-a
5d887095 9Name: perl-Net-MySQL
65bbf791 10Version: 0.11
5d887095
JB
11Release: 1
12# same as perl
275cd2e4 13License: GPL v1+ or Artistic
5d887095 14Group: Development/Languages/Perl
9fd3d235 15Source0: http://www.cpan.org/modules/by-module/Net/%{pdir}-%{pnam}-%{version}.tar.gz
65bbf791 16# Source0-md5: 35b62e0f55fa5e2a3d308f602751bb68
9fd3d235 17URL: http://search.cpan.org/dist/Net-MySQL/
fcdc3a16 18BuildRequires: perl-devel >= 1:5.8.0
5d887095 19BuildRequires: rpm-perlprov >= 4.1-13
a849db23
JB
20%if %{with tests}
21BuildRequires: perl-Digest-SHA1
22%endif
5d887095
JB
23BuildArch: noarch
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26%description
27Net::MySQL is a Pure Perl client interface for the MySQL database.
28This module implements network protocol between server and client of
29MySQL, thus you don't need external MySQL client library like
30libmysqlclient for this module to work. It means this module enables
31you to connect to MySQL server from some operation systems which MySQL
32is not ported.
33
0dc073f1 34%description -l pl.UTF-8
5d887095 35Net::MySQL to czysto perlowy interfejs kliencki do bazy danych MySQL.
0dc073f1
JR
36Ten moduł jest implementacją protokołu sieciowego między serwerem a
37klientem MySQL-a, przez co nie wymaga do działania zewnętrznej
5d887095 38biblioteki klienckiej MySQL-a, takiej jak libmysqlclient. Oznacza to,
0dc073f1
JR
39że moduł ten umożliwia połączenie z serwerem MySQL nawet z systemu
40operacyjnego, na który MySQL nie został sportowany.
5d887095
JB
41
42%prep
43%setup -q -n %{pdir}-%{pnam}-%{version}
44
45%build
46%{__perl} Makefile.PL \
47 INSTALLDIRS=vendor
48
49%{__make}
50
51%{?with_tests:%{__make} test}
52
53%install
54rm -rf $RPM_BUILD_ROOT
55
56%{__make} install \
57 DESTDIR=$RPM_BUILD_ROOT
58
59%clean
60rm -rf $RPM_BUILD_ROOT
61
62%files
63%defattr(644,root,root,755)
64%doc Changes README
65%{perl_vendorlib}/Net/MySQL.pm
66%{_mandir}/man3/*
This page took 0.13059 seconds and 4 git commands to generate.