2024-03-12 17:19:46 +00:00
committed by Git OBS Bridge
parent 32511e2a12
commit 75b59988eb
2 changed files with 24 additions and 21 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Mar 12 17:02:47 UTC 2024 - Tina Müller <tina.mueller@suse.com>
- Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Dec 22 14:08:00 UTC 2014 - ncutler@suse.com Mon Dec 22 14:08:00 UTC 2014 - ncutler@suse.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package perl-Test-Subroutines # spec file for package perl-Test-Subroutines
# #
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2024 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,49 +12,46 @@
# 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-Subroutines
Version: 1.113350
Release: 0
%define cpan_name Test-Subroutines %define cpan_name Test-Subroutines
Name: perl-Test-Subroutines
Version: 1.113.350
Release: 0
%define cpan_version 1.113350
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Standalone execution of Perl program subroutines Summary: Standalone execution of Perl program subroutines
License: Artistic-1.0 or GPL-1.0+ URL: https://metacpan.org/release/%{cpan_name}
Group: Development/Libraries/Perl Source0: https://cpan.metacpan.org/authors/id/O/OL/OLIVER/%{cpan_name}-%{cpan_version}.tar.gz
Url: http://search.cpan.org/dist/Test-Subroutines/
Source: http://www.cpan.org/authors/id/O/OL/OLIVER/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
BuildRequires: perl(Devel::LexAlias) BuildRequires: perl(Devel::LexAlias)
BuildRequires: perl(Devel::Symdump) BuildRequires: perl(Devel::Symdump)
BuildRequires: perl(File::Slurp) BuildRequires: perl(File::Slurp)
BuildRequires: perl(PadWalker) BuildRequires: perl(PadWalker)
#BuildRequires: perl(Test::Subroutines)
Requires: perl(Devel::LexAlias) Requires: perl(Devel::LexAlias)
Requires: perl(Devel::Symdump) Requires: perl(Devel::Symdump)
Requires: perl(File::Slurp) Requires: perl(File::Slurp)
Requires: perl(PadWalker) Requires: perl(PadWalker)
Provides: perl(Test::Subroutines) = %{version}
%undefine __perllib_provides
%{perl_requires} %{perl_requires}
%description %description
You have a (possibly ancient) Perl program for which you'd like to write some Standalone execution of Perl program subroutines
unit tests. The program code cannot be modified to accommodate this, and you
want to test subroutines but not actually run the program. This module permits
running of the program subroutines standalone, and in relative safety.
%prep %prep
%setup -q -n %{cpan_name}-%{version} %autosetup -n %{cpan_name}-%{cpan_version}
%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
@@ -62,7 +59,7 @@ running of the program subroutines standalone, and in relative safety.
%perl_gen_filelist %perl_gen_filelist
%files -f %{name}.files %files -f %{name}.files
%defattr(-,root,root,755) %doc Changes README
%doc Changes LICENSE README %license LICENSE
%changelog %changelog