3 %bcond_without tests # do not perform "make test"
7 %include /usr/lib/rpm/macros.perl
8 Summary: DBIx::MyServer - Server-side implementation of the MySQL network protocol
9 Name: perl-DBIx-MyServer
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/DBIx/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5: 5ee5f09c206aae6af3f10c467c847a63
16 URL: http://search.cpan.org/dist/DBIx-MyServer/
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRequires: perl-DBD-mysql
21 BuildRequires: perl-DBI
22 BuildRequires: perl-Digest-SHA1
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 This module emulates the server side of the MySQL protocol. This
29 allows you to run your own faux-MySQL servers which can accept
30 commands and queries and reply accordingly.
32 Please see examples/myserver.pl for a system that allows building
33 functional mysql servers that rewrite queries or return arbitary data.
36 %setup -q -n %{pdir}-%{pnam}-%{version}
39 %{__perl} Makefile.PL \
43 %{?with_tests:%{__make} test}
46 rm -rf $RPM_BUILD_ROOT
47 %{__make} pure_install \
48 DESTDIR=$RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
51 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
54 rm -rf $RPM_BUILD_ROOT
57 %defattr(644,root,root,755)
59 %attr(755,root,root) %{_bindir}/myserver.pl
60 %{perl_vendorlib}/DBIx/*.pm
61 %{perl_vendorlib}/DBIx/MyServer
64 %{_examplesdir}/%{name}-%{version}