2011-09-18 14:05:51 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Test-mysqld
|
|
|
|
#
|
2024-03-12 17:20:01 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
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.
|
|
|
|
|
2020-02-17 16:55:52 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-09-18 14:05:51 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2024-03-12 17:20:01 +00:00
|
|
|
%define cpan_name Test-mysqld
|
2011-09-18 14:05:51 +00:00
|
|
|
Name: perl-Test-mysqld
|
2024-03-12 17:20:01 +00:00
|
|
|
Version: 1.1.300
|
2015-04-14 05:03:12 +00:00
|
|
|
Release: 0
|
2024-03-12 17:20:01 +00:00
|
|
|
%define cpan_version 1.0013
|
2018-05-18 18:26:32 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2024-03-12 17:20:01 +00:00
|
|
|
Summary: Mysqld runner for tests
|
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/S/SO/SONGMU/%{cpan_name}-%{cpan_version}.tar.gz
|
2016-12-21 07:51:40 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:17:50 +02:00
|
|
|
Source100: README.md
|
2011-09-18 14:05:51 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: perl(Class::Accessor::Lite)
|
|
|
|
BuildRequires: perl(DBD::mysql)
|
|
|
|
BuildRequires: perl(DBI)
|
2015-04-14 05:03:12 +00:00
|
|
|
BuildRequires: perl(File::Copy::Recursive)
|
2024-03-12 17:20:01 +00:00
|
|
|
BuildRequires: perl(Module::Build)
|
2016-12-21 07:51:40 +00:00
|
|
|
BuildRequires: perl(Module::Build::Tiny) >= 0.035
|
2018-05-18 18:26:32 +00:00
|
|
|
BuildRequires: perl(Test::SharedFork)
|
2011-09-18 14:05:51 +00:00
|
|
|
Requires: perl(Class::Accessor::Lite)
|
2018-05-18 18:26:32 +00:00
|
|
|
Requires: perl(DBD::mysql)
|
|
|
|
Requires: perl(DBI)
|
2015-04-14 05:03:12 +00:00
|
|
|
Requires: perl(File::Copy::Recursive)
|
2024-03-12 17:20:01 +00:00
|
|
|
Provides: perl(Test::mysqld) = %{version}
|
|
|
|
%undefine __perllib_provides
|
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
|
2024-03-12 17:20:01 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
2011-09-18 14:05:51 +00:00
|
|
|
|
|
|
|
%build
|
2020-02-17 16:55:52 +00:00
|
|
|
perl Build.PL --installdirs=vendor
|
2016-12-21 07:51:40 +00:00
|
|
|
./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
|
2018-07-25 09:03:34 +00:00
|
|
|
%doc Changes README.md
|
2017-04-18 08:06:04 +00:00
|
|
|
%license LICENSE
|
2011-09-18 14:05:51 +00:00
|
|
|
|
|
|
|
%changelog
|