[perl-POE-Component-Child] Fix the dependencies and re-enable tests

Petr Šabata psabata at fedoraproject.org
Mon Feb 18 17:28:26 UTC 2013


commit b91fd393f8295c1f6d84153b54e11151dbc1e25b
Author: Petr Šabata <contyk at redhat.com>
Date:   Mon Feb 18 18:28:22 2013 +0100

    Fix the dependencies and re-enable tests

 POE-Component-Child-rt70701.patch |   12 +++++++
 perl-POE-Component-Child.spec     |   59 +++++++++++++++++++------------------
 2 files changed, 42 insertions(+), 29 deletions(-)
---
diff --git a/POE-Component-Child-rt70701.patch b/POE-Component-Child-rt70701.patch
new file mode 100644
index 0000000..7994a4c
--- /dev/null
+++ b/POE-Component-Child-rt70701.patch
@@ -0,0 +1,12 @@
+diff --git a/test.pl b/test.pl
+index d1e161b..c578a79 100755
+--- a/test.pl
++++ b/test.pl
+@@ -103,6 +103,7 @@ if ($t3) {
+ 
+ if ($t4) {
+     $t4 = POE::Component::Child->new(
++        writemap => { quit => "bye" },
+     	events => \%t4, debug => $debug
+     	);
+     ok(defined $t4 && $t4->isa('POE::Component::Child'), "[4] init - pipe close");
diff --git a/perl-POE-Component-Child.spec b/perl-POE-Component-Child.spec
index 34cf717..c7061b3 100644
--- a/perl-POE-Component-Child.spec
+++ b/perl-POE-Component-Child.spec
@@ -1,59 +1,60 @@
 Name:           perl-POE-Component-Child
-Version:        1.39        
-Release:        16%{?dist}
-Summary:        Child management component for POE 
-
+Version:        1.39
+Release:        17%{?dist}
+Summary:        Child management component for POE
 Group:          Development/Libraries
 License:        GPLv2+
-URL:            http://search.cpan.org/dist/POE-Component-Child            
-Source0: http://search.cpan.org/CPAN/authors/id/E/EC/ECALDER/POE-Component-Child-%{version}.tar.gz        
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildArch:      noarch 
-BuildRequires:  perl(POE) >= 0.23
+URL:            http://search.cpan.org/dist/POE-Component-Child
+Source0: http://search.cpan.org/CPAN/authors/id/E/EC/ECALDER/POE-Component-Child-%{version}.tar.gz
+Patch0:         POE-Component-Child-rt70701.patch
+BuildArch:      noarch
+BuildRequires:  perl(Carp)
+BuildRequires:  perl(Cwd)
+BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(File::Temp)
+BuildRequires:  perl(POE)
+BuildRequires:  perl(POE::Driver::SysRW)
+BuildRequires:  perl(POE::Filter::Line)
+BuildRequires:  perl(POE::Filter::Stream)
+BuildRequires:  perl(POE::Wheel::Run)
+BuildRequires:  perl(strict)
 BuildRequires:  perl(Test::Simple)
-Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+BuildRequires:  perl(vars)
+BuildRequires:  perl(warnings)
+Requires:  perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 
 %description
-This POE component serves as a wrapper for POE::Wheel::Run, obviating 
+This POE component serves as a wrapper for POE::Wheel::Run, obviating
 the need to create a session to receive the events it dishes out.
 
 %prep
 %setup -q -n POE-Component-Child-%{version}
-
+%patch0 -p1
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
+perl Makefile.PL INSTALLDIRS=vendor
 make %{?_smp_mflags}
 
-
 %install
-rm -rf %{buildroot}
-make pure_install PERL_INSTALL_ROOT=%{buildroot}
+make pure_install DESTDIR=%{buildroot}
 find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
 find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
-find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
 chmod -R u+w %{buildroot}/*
 
-
 %check
-# hangs after last test, switch off
-##make test
-
-
-%clean
-rm -rf %{buildroot}
-
+make test
 
 %files
-%defattr(-,root,root,-)
 %doc LICENSE Changes README
 %{perl_vendorlib}/*
 %{_mandir}/man3/*.3*
 
-
-
 %changelog
+* Mon Feb 18 2013 Petr Šabata <contyk at redhat.com> - 1.39-17
+- Fix the dependencies
+- Re-enable tests
+- Some minor spec cleanup
+
 * Thu Feb 14 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.39-16
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
 



More information about the perl-devel mailing list