From 088082bc823f1aad87d147b2d605c09edefbac195be28f914bcd55e190da4e1d Mon Sep 17 00:00:00 2001 From: OBS User autobuild Date: Fri, 5 Mar 2010 10:05:08 +0000 Subject: [PATCH] Accepting request 34091 from devel:languages:perl Copy from devel:languages:perl/perl-IPC-Run3 based on submit request 34091 from user computersalat OBS-URL: https://build.opensuse.org/request/show/34091 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-IPC-Run3?expand=0&rev=3 --- perl-IPC-Run3.changes | 9 +++++++++ perl-IPC-Run3.spec | 41 +++++++++++++++++++++++------------------ 2 files changed, 32 insertions(+), 18 deletions(-) diff --git a/perl-IPC-Run3.changes b/perl-IPC-Run3.changes index 5d69d37..b23d7ce 100644 --- a/perl-IPC-Run3.changes +++ b/perl-IPC-Run3.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Thu Mar 4 22:23:06 UTC 2010 - chris@computersalat.de + +- cleanup spec + o norootforbuild +- fixed deps +- added perl-macros + o perl_gen_filelist + ------------------------------------------------------------------- Sat Jan 30 00:36:31 UTC 2010 - larry+opensuse@l2g.to diff --git a/perl-IPC-Run3.spec b/perl-IPC-Run3.spec index 456b6b5..edec541 100644 --- a/perl-IPC-Run3.spec +++ b/perl-IPC-Run3.spec @@ -15,20 +15,30 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # +# norootforbuild Name: perl-IPC-Run3 -Version: 0.043 -Release: 2 +%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' ) Summary: Run a subprocess with input/ouput redirection +Version: 0.043 +Release: 3 License: BSDv1+ ; Artistic V1+ ; GPLv1+ Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/IPC-Run3/ Source0: http://www.cpan.org/authors/id/R/RJ/RJBS/IPC-Run3-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch -BuildRequires: perl(Test::Pod) +BuildRequires: perl +%if 0%{?suse_version} < 1120 +BuildRequires: perl-macros +%endif +BuildRequires: perl(Test::More) >= 0.31 +BuildRequires: perl(Test::Pod) >= 1.00 +BuildRequires: perl(Test::Pod::Coverage) >= 1.04 +BuildRequires: perl(Time::HiRes) Requires: perl = %{perl_version} +Provides: %{cpan_name} %description This module allows you to run a subprocess and redirect stdin, stdout, @@ -36,33 +46,28 @@ and/or stderr to files and perl data structures. It aims to satisfy 99% of the need for using system, qx, and open3 with a simple, extremely Perlish API. +Author: Barrie Slaymaker + %prep -%setup -q -n IPC-Run3-%{version} +%setup -q -n %{cpan_name}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor -make %{?_smp_mflags} +%{__make} %{?_smp_mflags} + +%check +%{__make} test %install %perl_make_install %perl_process_packlist -%{_fixperms} $RPM_BUILD_ROOT/* - -%check -make test +%perl_gen_filelist %clean -rm -rf $RPM_BUILD_ROOT +%{__rm} -rf $RPM_BUILD_ROOT -%files +%files -f %{name}.files %defattr(-,root,root,-) %doc Changes LICENSE README -%{perl_vendorlib}/IPC/Run3.pm -%{perl_vendorlib}/IPC/Run3 -%{_mandir}/man3/IPC::Run3*.3* -%{perl_vendorarch}/auto/IPC/Run3 -%dir %{perl_vendorarch}/auto/IPC -%dir %{perl_vendorlib}/IPC -/var/adm/perl-modules/%{name} %changelog