forked from pool/perl-Test-Script
Accepting request 34250 from devel:languages:perl
checked in (request 34250) OBS-URL: https://build.opensuse.org/request/show/34250 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Test-Script?expand=0&rev=11
This commit is contained in:
committed by
Git OBS Bridge
parent
0e22115993
commit
e6d112d834
@@ -1,11 +1,3 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 4 22:41:22 UTC 2010 - chris@computersalat.de
|
||||
|
||||
- cleanup spec
|
||||
- fixed deps
|
||||
- added perl-macros
|
||||
o perl_gen_filelist
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 8 22:22:47 UTC 2010 - larry+opensuse@l2g.to
|
||||
|
||||
|
@@ -15,34 +15,21 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
|
||||
|
||||
Name: perl-Test-Script
|
||||
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
|
||||
Summary: Basic cross-platform tests for scripts
|
||||
Version: 1.07
|
||||
Release: 2
|
||||
Summary: Basic cross-platform tests for scripts
|
||||
License: GPL+ or Artistic
|
||||
Group: Development/Libraries/Perl
|
||||
Url: http://search.cpan.org/dist/Test-Script/
|
||||
Source0: http://www.cpan.org/authors/id/A/AD/ADAMK/Test-Script-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
#BuildArch: noarch
|
||||
BuildRequires: perl
|
||||
%if 0%{?suse_version} < 1120
|
||||
BuildRequires: perl-macros
|
||||
%endif
|
||||
BuildRequires: perl(File::Spec) >= 0.80
|
||||
BuildRequires: perl(Test::More) >= 0.62
|
||||
BuildRequires: perl(Test::Builder) >= 0.32
|
||||
BuildRequires: perl(Test::Builder::Tester) >= 1.02
|
||||
# not perl | perl-base
|
||||
BuildRequires: perl(IPC::Run3) >= 0.034
|
||||
BuildRequires: perl(Probe::Perl) >= 0.01
|
||||
BuildArch: noarch
|
||||
BuildRequires: perl-IPC-Run3 perl-Probe-Perl
|
||||
Requires: perl = %{perl_version}
|
||||
Requires: perl(IPC::Run3) >= 0.034
|
||||
Requires: perl(Probe::Perl) >= 0.01
|
||||
Provides: %{cpan_name}
|
||||
Requires: perl-Probe-Perl perl-IPC-Run3
|
||||
|
||||
%description
|
||||
The intent of this module is to provide a series of basic tests for 80% of
|
||||
@@ -50,25 +37,27 @@ the testing you will need to do for scripts in the script (or bin as is
|
||||
also commonly used) paths of your Perl distribution.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
%setup -q -n Test-Script-%{version}
|
||||
|
||||
%build
|
||||
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
||||
%{__make} %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
%{__make} test
|
||||
perl Makefile.PL INSTALLDIRS=vendor
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%clean
|
||||
%{__rm} -rf $RPM_BUILD_ROOT
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files -f %{name}.files
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc Changes LICENSE README
|
||||
%{perl_vendorlib}/Test/Script*
|
||||
%{_mandir}/man3/Test::Script*.3pm*
|
||||
/var/adm/perl-modules/%{name}
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user