8
0

Accepting request 34250 from devel:languages:perl

Copy from devel:languages:perl/perl-Test-Script based on submit request 34250 from user coolo

OBS-URL: https://build.opensuse.org/request/show/34250
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Test-Script?expand=0&rev=3
This commit is contained in:
OBS User autobuild
2010-03-08 17:20:16 +00:00
committed by Git OBS Bridge
parent 4fbd33deb5
commit 3c77e05caf
2 changed files with 36 additions and 16 deletions

View File

@@ -1,3 +1,11 @@
-------------------------------------------------------------------
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 Mon Feb 8 22:22:47 UTC 2010 - larry+opensuse@l2g.to

View File

@@ -15,21 +15,35 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
# norootforbuild
Name: perl-Test-Script Name: perl-Test-Script
Version: 1.07 %define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
Release: 2
Summary: Basic cross-platform tests for scripts Summary: Basic cross-platform tests for scripts
Version: 1.07
Release: 3
License: GPL+ or Artistic License: GPL+ or Artistic
Group: Development/Libraries/Perl Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Test-Script/ Url: http://search.cpan.org/dist/Test-Script/
Source0: http://www.cpan.org/authors/id/A/AD/ADAMK/Test-Script-%{version}.tar.gz Source0: http://www.cpan.org/authors/id/A/AD/ADAMK/Test-Script-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch #BuildArch: noarch
BuildRequires: perl-IPC-Run3 perl-Probe-Perl 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
Requires: perl = %{perl_version} Requires: perl = %{perl_version}
Requires: perl-Probe-Perl perl-IPC-Run3 Requires: perl(IPC::Run3) >= 0.034
Requires: perl(Probe::Perl) >= 0.01
Provides: %{cpan_name}
%description %description
The intent of this module is to provide a series of basic tests for 80% of The intent of this module is to provide a series of basic tests for 80% of
@@ -37,27 +51,25 @@ the testing you will need to do for scripts in the script (or bin as is
also commonly used) paths of your Perl distribution. also commonly used) paths of your Perl distribution.
%prep %prep
%setup -q -n Test-Script-%{version} %setup -q -n %{cpan_name}-%{version}
%build %build
perl Makefile.PL INSTALLDIRS=vendor perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
make %{?_smp_mflags} %{__make} %{?_smp_mflags}
%check
%{__make} test
%install %install
%perl_make_install %perl_make_install
%perl_process_packlist %perl_process_packlist
%perl_gen_filelist
%check
make test
%clean %clean
rm -rf $RPM_BUILD_ROOT %{__rm} -rf $RPM_BUILD_ROOT
%files %files -f %{name}.files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc Changes LICENSE README %doc Changes LICENSE README
%{perl_vendorlib}/Test/Script*
%{_mandir}/man3/Test::Script*.3pm*
/var/adm/perl-modules/%{name}
%changelog %changelog