File perl-DBIx-MyServer.spec of Package DBIx-MyServer

# spec file for package DBIx-MyServer (Version 0.41)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:          perl-DBIx-MyServer
Summary:       Server-side implementation of the MySQL network protocol
Version:       0.41
Release:       1
Url:           http://search.cpan.org/~philips/DBIx-MyServer
Group:         Productivity/Databases/Tools
License:       GPL-2.0+
Source:        DBIx-MyServer-%{version}.tar.bz2
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Test::More) perl(Test::Pod) perl(Test::Pod::Coverage)
Requires:      perl = %{perl_version}
BuildRoot:     %{_tmppath}/%{name}-%{version}-build
BuildArch:     noarch

%description
This module emulates the server side of the MySQL protocol. This allows you to run your own faux-MySQL servers which can accept commands and queries and reply accordingly.

%prep
%setup -q -n DBIx-MyServer-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS="vendor"
%{__make} %{?jobs:-j%jobs}

%check
%{__make} test

%install
%if !%{defined perl_make_install}
%(expand:%(cat /etc/rpm/macros.perl))
%endif
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
DIR="`cat %{name}.files | grep -- '-linux-thread-multi$' | sed 's|^%dir\ ||'`"
[ "$DIR" ] && rm -rf "%{buildroot}$DIR"
sed -i '/-linux-thread-multi/ d' %{name}.files

%clean
rm -rf %{buildroot}

%files -f %{name}.files
%defattr(-, root, root)
%doc Changes README MANIFEST
openSUSE Build Service is sponsored by