From fc7f4311052ee791b5b4c492b94057b74fe2ccb5 Mon Sep 17 00:00:00 2001
From: Jitka Plesnikova <[email protected]>
Date: Mon, 1 Aug 2016 13:32:44 +0200
Subject: 0.10 bump

---
 .gitignore                                         |  1 +
 ...sy-0.09-Fix-a-race-in-t-read-write.t-test.patch | 52 ----------------------
 perl-IO-Pty-Easy.spec                              | 28 +++++++-----
 sources                                            |  2 +-
 4 files changed, 18 insertions(+), 65 deletions(-)
 delete mode 100644 IO-Pty-Easy-0.09-Fix-a-race-in-t-read-write.t-test.patch

diff --git a/.gitignore b/.gitignore
index d837d07..60fced4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 /IO-Pty-Easy-0.09.tar.gz
+/IO-Pty-Easy-0.10.tar.gz
diff --git a/IO-Pty-Easy-0.09-Fix-a-race-in-t-read-write.t-test.patch 
b/IO-Pty-Easy-0.09-Fix-a-race-in-t-read-write.t-test.patch
deleted file mode 100644
index 7252ec0..0000000
--- a/IO-Pty-Easy-0.09-Fix-a-race-in-t-read-write.t-test.patch
+++ /dev/null
@@ -1,52 +0,0 @@
-From aad6946cd217f628c75d180af58f9ce38e637e22 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <[email protected]>
-Date: Fri, 4 Mar 2016 15:04:48 +0100
-Subject: [PATCH] Fix a race in t/read-write.t test
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-There was a race between filling a write buffer and testing
-a subsequent write would block.
-
-This patch fills the buffer first, and then it tests the blocking.
-
-CPAN RT#95702
-
-Signed-off-by: Petr Písař <[email protected]>
----
- t/read-write.t | 17 +++++++----------
- 1 file changed, 7 insertions(+), 10 deletions(-)
-
-diff --git a/t/read-write.t b/t/read-write.t
-index 21fe729..5d63205 100644
---- a/t/read-write.t
-+++ b/t/read-write.t
-@@ -12,17 +12,14 @@ like($pty->read, qr/testing/, "basic read/write testing");
- is($pty->read(0.1), undef, "read returns undef on timeout");
- $pty->kill;
- 
--$pty->spawn("$^X -e 'sleep(1) while 1'");
--eval {
--    local $SIG{ALRM} = sub {
--        is($pty->write("should fail", 0.1), undef,
--           "write returns undef on timeout");
--        $SIG{ALRM} = 'DEFAULT';
--        alarm 1;
--    };
--    alarm 1;
--    $pty->write('a'x(1024*1024));
-+$pty->spawn("$^X -e 'print qq{start\n}; sleep(1) while 1'");
-+ok($pty->read, 'Program is ready');
-+my $ret;
-+while (defined ($ret = $pty->write('a' x 1024, 1))) {
-+    diag("Filling write buffer: +$ret");
- };
-+diag "Writte buffer filled";
-+is($pty->write("should fail", 0.1), undef, "write returns undef on timeout");
- $pty->kill;
- $pty->close;
- 
--- 
-2.5.0
-
diff --git a/perl-IO-Pty-Easy.spec b/perl-IO-Pty-Easy.spec
index da6a523..2fa9316 100644
--- a/perl-IO-Pty-Easy.spec
+++ b/perl-IO-Pty-Easy.spec
@@ -1,27 +1,28 @@
 Name:           perl-IO-Pty-Easy
-Version:        0.09
-Release:        7%{?dist}
+Version:        0.10
+Release:        1%{?dist}
 Summary:        Easy interface to IO::Pty
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/IO-Pty-Easy/
 Source0:        
http://www.cpan.org/modules/by-module/IO/IO-Pty-Easy-%{version}.tar.gz
-# Fix a race in t/read-write.t test, bug #1314777, CPAN RT#95702
-Patch0:         IO-Pty-Easy-0.09-Fix-a-race-in-t-read-write.t-test.patch
 BuildArch:      noarch
+BuildRequires:  findutils
+BuildRequires:  make
 BuildRequires:  perl
 BuildRequires:  perl-generators
 BuildRequires:  perl(base)
+BuildRequires:  perl(blib)
 BuildRequires:  perl(Carp)
-BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.30
-BuildRequires:  perl(File::Find)
-BuildRequires:  perl(File::Temp)
+BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(File::Spec)
+BuildRequires:  perl(IO::Handle)
 BuildRequires:  perl(IO::Pty)
+BuildRequires:  perl(IPC::Open3)
 BuildRequires:  perl(POSIX)
 BuildRequires:  perl(Scalar::Util)
 BuildRequires:  perl(strict)
-BuildRequires:  perl(Test::More) >= 0.88
-BuildRequires:  perl(Test::Script)
+BuildRequires:  perl(Test::More)
 BuildRequires:  perl(warnings)
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
 
@@ -32,7 +33,6 @@ spawn/read/write commands.
 
 %prep
 %setup -q -n IO-Pty-Easy-%{version}
-%patch0 -p1
 
 %build
 %{__perl} Makefile.PL INSTALLDIRS=vendor
@@ -41,7 +41,7 @@ make %{?_smp_mflags}
 %install
 make pure_install DESTDIR=$RPM_BUILD_ROOT
 
-find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
+find $RPM_BUILD_ROOT -type f -name .packlist -delete
 
 %{_fixperms} $RPM_BUILD_ROOT/*
 
@@ -49,11 +49,15 @@ find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} 
\;
 make test
 
 %files
-%doc Changes LICENSE README
+%license LICENSE
+%doc Changes README
 %{perl_vendorlib}/*
 %{_mandir}/man3/*
 
 %changelog
+* Mon Aug 01 2016 Jitka Plesnikova <[email protected]> - 0.10-1
+- 0.10 bump
+
 * Sun May 15 2016 Jitka Plesnikova <[email protected]> - 0.09-7
 - Perl 5.24 rebuild
 
diff --git a/sources b/sources
index 392c330..67e91b4 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-7950e652896adf85067753799232caf1  IO-Pty-Easy-0.09.tar.gz
+2892ee94695277f8f39365e79b997643  IO-Pty-Easy-0.10.tar.gz
-- 
cgit v0.12


        
http://pkgs.fedoraproject.org/cgit/perl-IO-Pty-Easy.git/commit/?h=master&id=fc7f4311052ee791b5b4c492b94057b74fe2ccb5
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
[email protected]
https://lists.fedoraproject.org/admin/lists/[email protected]

Reply via email to