forked from pool/perl-Test-Spec
Compare commits
2 Commits
Author | SHA256 | Date | |
---|---|---|---|
9e0cee090c | |||
2723f56d9a |
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jun 12 18:55:36 UTC 2025 - Tina Müller <tina.mueller@suse.com>
|
||||||
|
|
||||||
|
- Normalize CPAN version
|
||||||
|
See https://github.com/openSUSE/cpanspec/issues/47 for details
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Mar 5 07:04:07 UTC 2018 - coolo@suse.com
|
Mon Mar 5 07:04:07 UTC 2018 - coolo@suse.com
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package perl-Test-Spec
|
# spec file for package perl-Test-Spec
|
||||||
#
|
#
|
||||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2025 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -12,38 +12,49 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
Name: perl-Test-Spec
|
|
||||||
Version: 0.54
|
|
||||||
Release: 0
|
|
||||||
%define cpan_name Test-Spec
|
%define cpan_name Test-Spec
|
||||||
Summary: Write tests in a declarative specification style
|
Name: perl-Test-Spec
|
||||||
|
Version: 0.540.0
|
||||||
|
Release: 0
|
||||||
|
# 0.54 -> normalize -> 0.540.0
|
||||||
|
%define cpan_version 0.54
|
||||||
License: Artistic-1.0 OR GPL-1.0-or-later
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||||
Group: Development/Libraries/Perl
|
Summary: Write tests in a declarative specification style
|
||||||
Url: http://search.cpan.org/dist/Test-Spec/
|
URL: https://metacpan.org/release/%{cpan_name}
|
||||||
Source0: https://cpan.metacpan.org/authors/id/A/AK/AKZHAN/%{cpan_name}-%{version}.tar.gz
|
Source0: https://cpan.metacpan.org/authors/id/A/AK/AKZHAN/%{cpan_name}-%{cpan_version}.tar.gz
|
||||||
Source1: cpanspec.yml
|
Source1: cpanspec.yml
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
BuildRequires: perl(Devel::GlobalPhase)
|
BuildRequires: perl(Devel::GlobalPhase)
|
||||||
BuildRequires: perl(Package::Stash) >= 0.23
|
BuildRequires: perl(Package::Stash) >= 0.230
|
||||||
BuildRequires: perl(TAP::Parser)
|
BuildRequires: perl(TAP::Parser)
|
||||||
BuildRequires: perl(Test::Deep) >= 0.103
|
BuildRequires: perl(Test::Deep) >= 0.103
|
||||||
BuildRequires: perl(Test::More) >= 0.88
|
BuildRequires: perl(Test::More) >= 0.88
|
||||||
BuildRequires: perl(Test::Trap)
|
BuildRequires: perl(Test::Trap)
|
||||||
BuildRequires: perl(Tie::IxHash)
|
BuildRequires: perl(Tie::IxHash)
|
||||||
Requires: perl(Devel::GlobalPhase)
|
Requires: perl(Devel::GlobalPhase)
|
||||||
Requires: perl(Package::Stash) >= 0.23
|
Requires: perl(Package::Stash) >= 0.230
|
||||||
Requires: perl(TAP::Parser)
|
Requires: perl(TAP::Parser)
|
||||||
Requires: perl(Test::Deep) >= 0.103
|
Requires: perl(Test::Deep) >= 0.103
|
||||||
Requires: perl(Test::More) >= 0.88
|
Requires: perl(Test::More) >= 0.88
|
||||||
Requires: perl(Test::Trap)
|
Requires: perl(Test::Trap)
|
||||||
Requires: perl(Tie::IxHash)
|
Requires: perl(Tie::IxHash)
|
||||||
|
Provides: perl(Test::Spec) = %{version}
|
||||||
|
Provides: perl(Test::Spec::Context)
|
||||||
|
Provides: perl(Test::Spec::Example)
|
||||||
|
Provides: perl(Test::Spec::ExportProxy)
|
||||||
|
Provides: perl(Test::Spec::Mocks)
|
||||||
|
Provides: perl(Test::Spec::Mocks::Expectation)
|
||||||
|
Provides: perl(Test::Spec::Mocks::MockObject)
|
||||||
|
Provides: perl(Test::Spec::Mocks::Stub)
|
||||||
|
Provides: perl(Test::Spec::SharedHash)
|
||||||
|
Provides: perl(Test::Spec::TodoExample)
|
||||||
|
%undefine __perllib_provides
|
||||||
%{perl_requires}
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -58,15 +69,16 @@ http://rspec.info/documentation, a BDD tool for the Ruby programming
|
|||||||
language.
|
language.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{cpan_name}-%{version}
|
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
||||||
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
|
|
||||||
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
perl Makefile.PL INSTALLDIRS=vendor
|
||||||
%{__make} %{?_smp_mflags}
|
%make_build
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__make} test
|
make test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%perl_make_install
|
%perl_make_install
|
||||||
@@ -74,7 +86,6 @@ find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
|
|||||||
%perl_gen_filelist
|
%perl_gen_filelist
|
||||||
|
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
%defattr(-,root,root,755)
|
|
||||||
%doc Changes README.md
|
%doc Changes README.md
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user