2011-09-18 14:05:51 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package perl-Test-mysqld
|
|
|
|
|
#
|
2016-12-21 07:51:40 +00:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-09-18 14:05:51 +00:00
|
|
|
#
|
|
|
|
|
# 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/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: perl-Test-mysqld
|
2016-12-21 07:51:40 +00:00
|
|
|
Version: 0.20
|
2015-04-14 05:03:12 +00:00
|
|
|
Release: 0
|
2011-09-18 14:05:51 +00:00
|
|
|
%define cpan_name Test-mysqld
|
2016-12-21 07:51:40 +00:00
|
|
|
Summary: Mysqld Runner for Tests
|
2015-04-14 05:03:12 +00:00
|
|
|
License: Artistic-1.0 or GPL-1.0+
|
2011-09-18 14:05:51 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2015-04-14 05:03:12 +00:00
|
|
|
Url: http://search.cpan.org/dist/Test-mysqld/
|
2016-12-21 07:51:40 +00:00
|
|
|
Source0: http://www.cpan.org/authors/id/S/SO/SONGMU/%{cpan_name}-%{version}.tar.gz
|
|
|
|
|
Source1: cpanspec.yml
|
2011-09-18 14:05:51 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
BuildRequires: perl
|
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
|
BuildRequires: perl(Class::Accessor::Lite)
|
|
|
|
|
BuildRequires: perl(DBD::mysql)
|
|
|
|
|
BuildRequires: perl(DBI)
|
2016-12-21 07:51:40 +00:00
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.59
|
2015-04-14 05:03:12 +00:00
|
|
|
BuildRequires: perl(File::Copy::Recursive)
|
2016-12-21 07:51:40 +00:00
|
|
|
BuildRequires: perl(Module::Build::Tiny) >= 0.035
|
2011-09-18 14:05:51 +00:00
|
|
|
BuildRequires: perl(Test::SharedFork) >= 0.06
|
|
|
|
|
Requires: perl(Class::Accessor::Lite)
|
2015-04-14 05:03:12 +00:00
|
|
|
Requires: perl(File::Copy::Recursive)
|
2011-09-18 14:05:51 +00:00
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
'Test::mysqld' automatically setups a mysqld instance in a temporary
|
|
|
|
|
directory, and destroys it when the perl script exits.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
2016-12-21 07:51:40 +00:00
|
|
|
%{__perl} Build.PL --installdirs=vendor
|
|
|
|
|
./Build build --flags=%{?_smp_mflags}
|
2011-09-18 14:05:51 +00:00
|
|
|
|
|
|
|
|
%check
|
2016-12-21 07:51:40 +00:00
|
|
|
./Build test
|
2011-09-18 14:05:51 +00:00
|
|
|
|
|
|
|
|
%install
|
2016-12-21 07:51:40 +00:00
|
|
|
./Build install --destdir=%{buildroot} --create_packlist=0
|
2011-09-18 14:05:51 +00:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
|
%defattr(-,root,root,755)
|
2016-12-21 07:51:40 +00:00
|
|
|
%doc Changes LICENSE minil.toml README.md
|
2011-09-18 14:05:51 +00:00
|
|
|
|
|
|
|
|
%changelog
|