#2 Update to 1.04 + add stdin handler to _version sub
Merged 6 months ago by eseyman. Opened 6 months ago by xavierb.
rpms/ xavierb/perl-GnuPG-Interface 1.04  into  rawhide

file modified
+1
@@ -9,3 +9,4 @@ 

  /GnuPG-Interface-1.00.tar.gz

  /GnuPG-Interface-1.01.tar.gz

  /GnuPG-Interface-1.02.tar.gz

+ /GnuPG-Interface-1.04.tar.gz

file modified
+13 -4
@@ -1,10 +1,12 @@ 

  Name:           perl-GnuPG-Interface

- Version:        1.02

- Release:        8%{?dist}

+ Version:        1.04

+ Release:        1%{?dist}

  Summary:        Perl interface to GnuPG

  License:        GPLv2+ or Artistic

  URL:            https://metacpan.org/release/GnuPG-Interface

- Source0:        http://cpan.org/modules/by-module/GnuPG/GnuPG-Interface-%{version}.tar.gz

+ Source0:        https://cpan.metacpan.org/authors/id/B/BP/BPS/GnuPG-Interface-%{version}.tar.gz

+ # https://github.com/bestpractical/gnupg-interface/issues/8

+ Patch0:         version-stdin.patch

  BuildArch:      noarch

  BuildRequires:  gpg

  
@@ -52,7 +54,7 @@ 

  %{summary}.

  

  %prep

- %setup -q -n GnuPG-Interface-%{version}

+ %autosetup -p1 -n GnuPG-Interface-%{version}

  perldoc -t perlgpl > GPL

  perldoc -t perlartistic > Artistic

  # gpg as being used by the testsuite requires test to be 0700
@@ -70,12 +72,19 @@ 

  %{make_build} test

  

  %files

+ %license GPL Artistic

  %doc Changes README

  %{perl_vendorlib}/GnuPG

  %{_mandir}/man3/*.3*

  

  

  %changelog

+ * Wed Dec 13 2023 Xavier Bachelot <xavier@bachelot.org> - 1.04-1

+ - Update to 1.0.4 (RHBZ#2239168, RHBZ#2208967)

+ - Update Source0 URL

+ - Distribute licenses

+ - Add patch to add stdin handler to _version sub

+ 

  * Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.02-8

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild

  

file modified
+1 -1
@@ -1,1 +1,1 @@ 

- SHA512 (GnuPG-Interface-1.02.tar.gz) = ff4365aa75fbcd2dc77c915ec36c0b578219ae1a2148e936b4769221f91c78a3bc3d371159b5130e7bee36ecf0e169b6a16e3a160d2598811d6f70850119f6e4

+ SHA512 (GnuPG-Interface-1.04.tar.gz) = 27394f08210aa1581c91640aa18006f1946098cfbe13870706cbc910de39dfa80985d265e4541cdebee70149d59c89361297f76aab0417bf904cf47ba10d1afd

file added
+19
@@ -0,0 +1,19 @@ 

+ Description: Add stdin handler to _version sub

+ Origin: vendor

+ Bug: https://github.com/bestpractical/gnupg-interface/issues/8

+ Bug-Debian: https://bugs.debian.org/1016125

+ Author: gregor herrmann <gregoa@debian.org>

+ Last-Update: 2022-07-29

+ 

+ --- a/lib/GnuPG/Interface.pm

+ +++ b/lib/GnuPG/Interface.pm

+ @@ -821,7 +821,8 @@

+      my ( $self ) = @_;

+  

+      my $out = IO::Handle->new;

+ -    my $handles = GnuPG::Handles->new( stdout => $out );

+ +    my $in  = IO::Handle->new;

+ +    my $handles = GnuPG::Handles->new( stdout => $out, stdin => $in );

+      my $pid = $self->wrap_call( commands => [ '--no-options', '--version' ], handles => $handles );

+      my $line = $out->getline;

+      $line =~ /(\d+\.\d+\.\d+)/;

Hi Emmanuel,

Here's a PR to update to 1.04 plus add stdin handler to _version sub.
This should fix all currently open issues with perl-GnuPG-Interface.

Regards,
Xavier

Pull-Request has been merged by eseyman

6 months ago