2010-02-04 10:59:22 +00:00
|
|
|
#
|
2011-11-17 15:52:14 +00:00
|
|
|
# spec file for package perl-Test-Script
|
2010-02-04 10:59:22 +00:00
|
|
|
#
|
2016-05-05 13:29:16 +00:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2010-02-04 10:59:22 +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/
|
|
|
|
#
|
|
|
|
|
2010-07-19 18:58:47 +00:00
|
|
|
|
2010-02-04 10:59:22 +00:00
|
|
|
Name: perl-Test-Script
|
2016-05-05 13:29:16 +00:00
|
|
|
Version: 1.12
|
2015-05-08 09:03:11 +00:00
|
|
|
Release: 0
|
2010-07-13 13:12:29 +00:00
|
|
|
%define cpan_name Test-Script
|
2010-03-08 17:20:15 +00:00
|
|
|
Summary: Basic cross-platform tests for scripts
|
2015-05-08 09:03:11 +00:00
|
|
|
License: Artistic-1.0 or GPL-1.0+
|
2010-02-18 15:52:48 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2010-02-04 10:59:22 +00:00
|
|
|
Url: http://search.cpan.org/dist/Test-Script/
|
2015-05-08 09:03:11 +00:00
|
|
|
Source0: http://www.cpan.org/authors/id/P/PL/PLICEASE/%{cpan_name}-%{version}.tar.gz
|
|
|
|
Source1: cpanspec.yml
|
2010-03-08 17:20:15 +00:00
|
|
|
BuildArch: noarch
|
2010-07-13 13:12:29 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: perl(IPC::Run3) >= 0.034
|
|
|
|
BuildRequires: perl(Probe::Perl) >= 0.01
|
2015-05-13 14:56:46 +00:00
|
|
|
BuildRequires: perl(Test::More) >= 0.96
|
2015-05-08 09:03:11 +00:00
|
|
|
BuildRequires: perl(Test::Tester)
|
2010-07-13 13:12:29 +00:00
|
|
|
Requires: perl(IPC::Run3) >= 0.034
|
|
|
|
Requires: perl(Probe::Perl) >= 0.01
|
2015-05-13 14:56:46 +00:00
|
|
|
Requires: perl(Test::More) >= 0.96
|
2015-05-08 09:03:11 +00:00
|
|
|
%{perl_requires}
|
2010-02-04 10:59:22 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
The intent of this module is to provide a series of basic tests for 80% of
|
2015-05-08 09:03:11 +00:00
|
|
|
the testing you will need to do for scripts in the _script_ (or _bin_ as is
|
2010-02-04 10:59:22 +00:00
|
|
|
also commonly used) paths of your Perl distribution.
|
|
|
|
|
2015-05-08 09:03:11 +00:00
|
|
|
Further, it aims to provide this functionality with perfect
|
|
|
|
platform-compatibility, and in a way that is as unobtrusive as possible.
|
|
|
|
|
|
|
|
That is, if the program works on a platform, then *Test::Script* should
|
|
|
|
always work on that platform as well. Anything less than 100% is considered
|
|
|
|
unacceptable.
|
|
|
|
|
|
|
|
In doing so, it is hoped that *Test::Script* can become a module that you
|
|
|
|
can safely make a dependency of all your modules, without risking that your
|
|
|
|
module won't on some platform because of the dependency.
|
|
|
|
|
|
|
|
Where a clash exists between wanting more functionality and maintaining
|
|
|
|
platform safety, this module will err on the side of platform safety.
|
2010-07-13 13:12:29 +00:00
|
|
|
|
2010-02-04 10:59:22 +00:00
|
|
|
%prep
|
2010-07-13 13:12:29 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2010-02-04 10:59:22 +00:00
|
|
|
|
|
|
|
%build
|
2010-07-13 13:12:29 +00:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%{__make} %{?_smp_mflags}
|
2010-03-08 17:20:15 +00:00
|
|
|
|
|
|
|
%check
|
2010-07-13 13:12:29 +00:00
|
|
|
%{__make} test
|
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
2015-05-08 09:03:11 +00:00
|
|
|
%perl_process_packlist
|
2010-07-13 13:12:29 +00:00
|
|
|
%perl_gen_filelist
|
2010-02-04 10:59:22 +00:00
|
|
|
|
2010-07-13 13:12:29 +00:00
|
|
|
%files -f %{name}.files
|
2015-05-08 09:03:11 +00:00
|
|
|
%defattr(-,root,root,755)
|
2010-02-04 10:59:22 +00:00
|
|
|
%doc Changes LICENSE README
|
|
|
|
|
|
|
|
%changelog
|