[perl-ExtUtils-AutoInstall] Modernize spec.
by corsepiu
commit dda05f63cb9eadefc20bded121e864cfafca2f1a
Author: Ralf Corsépius <corsepiu(a)fedoraproject.org>
Date: Sat Apr 5 04:58:13 2014 +0200
Modernize spec.
- Rebase eai.patch (Avoid *.orig being packaged).
- Fix bogus %changelog entries.
eai.patch | 9 ++++-----
perl-ExtUtils-AutoInstall.spec | 20 +++++++++-----------
2 files changed, 13 insertions(+), 16 deletions(-)
---
diff --git a/eai.patch b/eai.patch
index 94d20a4..b394655 100644
--- a/eai.patch
+++ b/eai.patch
@@ -1,7 +1,7 @@
-diff -rN -u old-ExtUtils-AutoInstall-0.61/lib/ExtUtils/AutoInstall.pm new-ExtUtils-AutoInstall-0.61/lib/ExtUtils/AutoInstall.pm
---- old-ExtUtils-AutoInstall-0.61/lib/ExtUtils/AutoInstall.pm 2004-10-18 23:53:40.000000000 -0700
-+++ new-ExtUtils-AutoInstall-0.61/lib/ExtUtils/AutoInstall.pm 2005-03-21 20:06:24.000000000 -0800
-@@ -873,9 +873,14 @@
+diff -Naur ExtUtils-AutoInstall-0.63.orig/lib/ExtUtils/AutoInstall.pm ExtUtils-AutoInstall-0.63/lib/ExtUtils/AutoInstall.pm
+--- ExtUtils-AutoInstall-0.63.orig/lib/ExtUtils/AutoInstall.pm 2005-09-12 15:16:09.000000000 +0200
++++ ExtUtils-AutoInstall-0.63/lib/ExtUtils/AutoInstall.pm 2014-04-04 18:27:58.840550357 +0200
+@@ -878,9 +878,14 @@
}
$args{test}{TESTS} ||= 't/*.t';
@@ -19,4 +19,3 @@ diff -rN -u old-ExtUtils-AutoInstall-0.61/lib/ExtUtils/AutoInstall.pm new-ExtUti
my $missing = join(',', @Missing);
my $config = join(',',
-
diff --git a/perl-ExtUtils-AutoInstall.spec b/perl-ExtUtils-AutoInstall.spec
index 855fe6b..9db8425 100644
--- a/perl-ExtUtils-AutoInstall.spec
+++ b/perl-ExtUtils-AutoInstall.spec
@@ -1,13 +1,12 @@
Name: perl-ExtUtils-AutoInstall
Version: 0.63
-Release: 22%{?dist}
+Release: 23%{?dist}
Summary: Automatic install of dependencies via CPAN
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/ExtUtils-AutoInstall/
Source: http://search.cpan.org/CPAN/authors/id/A/AU/AUTRIJUS/ExtUtils-AutoInstall...
Patch0: eai.patch
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
BuildArch: noarch
@@ -32,26 +31,25 @@ ExtUtils::MakeMaker.
make %{?_smp_mflags}
%install
-rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
-find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
-chmod -R u+w $RPM_BUILD_ROOT/*
-
-%clean
-rm -rf $RPM_BUILD_ROOT
+%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
-%defattr(-,root,root,-)
# For license text(s), see the perl package
%doc Changes AUTHORS README TODO
%{perl_vendorlib}/ExtUtils
%{_mandir}/man3/*
%changelog
+* Fri Apr 04 2014 Ralf Corsépius <corsepiu(a)fedoraproject.org> - 0.63-23
+- Modernize spec.
+- Rebase eai.patch (Avoid *.orig being packaged).
+- Fix bogus %%changelog entries.
+
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> - 0.63-22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
@@ -112,10 +110,10 @@ make test
* Wed Mar 01 2006 Ralf Corsépius <rc040203(a)freenet.de> - 0.63-4
- Rebuild for perl-5.8.8.
-* Tue Sep 14 2005 Ralf Corsepius <rc040203(a)freenet.de> - 0.63-3
+* Thu Sep 15 2005 Ralf Corsepius <rc040203(a)freenet.de> - 0.63-3
- Further spec file cleanup.
-* Tue Sep 14 2005 Ralf Corsepius <rc040203(a)freenet.de> - 0.63-2
+* Thu Sep 15 2005 Ralf Corsepius <rc040203(a)freenet.de> - 0.63-2
- Spec file cleanup.
* Tue Sep 13 2005 Ralf Corsepius <rc040203(a)freenet.de> - 0.63-1
10 years, 2 months
[perl-Test-Modern] Update to 0.006
by Paul Howarth
commit f76f7f62be3399c688643e9e1de277795dc1ff7c
Author: Paul Howarth <paul(a)city-fan.org>
Date: Sat Apr 5 00:40:15 2014 +0100
Update to 0.006
- New upstream release 0.006
- EXPERIMENTALLY provide Test::Lib-like behavior, and a related -lib export
tag
- Support an environment variable PERL_TEST_MODERN_ALLOW_WARNINGS to allow
end-users to skip running end warnings tests
- Added shouldnt_warn function
- Add upstream workaround for warnings generated in File::Spec
Test-Modern-0.006-warnings.patch | 39 ++++++++++++++++++++++++++++++++++++++
perl-Test-Modern.spec | 19 ++++++++++++++++-
sources | 2 +-
3 files changed, 57 insertions(+), 3 deletions(-)
---
diff --git a/Test-Modern-0.006-warnings.patch b/Test-Modern-0.006-warnings.patch
new file mode 100644
index 0000000..a3515b7
--- /dev/null
+++ b/Test-Modern-0.006-warnings.patch
@@ -0,0 +1,39 @@
+diff --git a/lib/Test/Modern.pm b/lib/Test/Modern.pm
+index 5e3e7b3..d2896b3 100644
+--- a/lib/Test/Modern.pm
++++ b/lib/Test/Modern.pm
+@@ -235,6 +235,9 @@ sub _setup_inc
+
+ return unless exists($opts->{into_file});
+
++ # Workaround for File::Spec on legacy Redhat??
++ local $SIG{__WARN__} = 'IGNORE';
++
+ my $dir = do {
+ my @tmp = 'File::Spec'->splitpath($opts->{into_file});
+ pop @tmp;
+From 2f95fb411e3ce20f72b2d48cdb94cc9a9e6140aa Mon Sep 17 00:00:00 2001
+From: Toby Inkster <mail(a)tobyinkster.co.uk>
+Date: Fri, 4 Apr 2014 19:35:45 +0100
+Subject: [PATCH] oops; IGNORE is not supported by __WARN__ signal
+
+---
+ lib/Test/Modern.pm | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/Test/Modern.pm b/lib/Test/Modern.pm
+index d2896b3..7a9de54 100644
+--- a/lib/Test/Modern.pm
++++ b/lib/Test/Modern.pm
+@@ -236,7 +236,7 @@ sub _setup_inc
+ return unless exists($opts->{into_file});
+
+ # Workaround for File::Spec on legacy Redhat??
+- local $SIG{__WARN__} = 'IGNORE';
++ local $SIG{__WARN__} = sub {};
+
+ my $dir = do {
+ my @tmp = 'File::Spec'->splitpath($opts->{into_file});
+--
+1.9.1
+
diff --git a/perl-Test-Modern.spec b/perl-Test-Modern.spec
index 2c62aac..e42e2b5 100644
--- a/perl-Test-Modern.spec
+++ b/perl-Test-Modern.spec
@@ -1,10 +1,11 @@
Name: perl-Test-Modern
-Version: 0.005
+Version: 0.006
Release: 1%{?dist}
Summary: Precision testing for modern perl
License: (GPL+ or Artistic) and CC-BY-SA
URL: http://search.cpan.org/dist/Test-Modern/
Source0: http://search.cpan.org/CPAN/authors/id/T/TO/TOBYINK/Test-Modern-%{version...
+Patch0: Test-Modern-0.006-warnings.patch
BuildArch: noarch
# Module Build
BuildRequires: perl
@@ -12,7 +13,9 @@ BuildRequires: perl(CPAN::Meta::Requirements) >= 2.000
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.17
# Module Runtime
BuildRequires: perl(B)
+BuildRequires: perl(Cwd)
BuildRequires: perl(Exporter::Tiny) >= 0.030
+BuildRequires: perl(File::Spec)
BuildRequires: perl(IO::File) >= 1.08
BuildRequires: perl(IO::Handle) >= 1.21
BuildRequires: perl(Import::Into) >= 1.002000
@@ -61,6 +64,9 @@ and loads IO::File (much of the same stuff Modern::Perl does).
%prep
%setup -q -n Test-Modern-%{version}
+# Upstream workaround for warnings in File::Spec
+%patch0 -p1
+
%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
@@ -79,9 +85,18 @@ make test
# GPL+ or Artistic
%doc Changes COPYRIGHT CREDITS LICENSE README
%{perl_vendorlib}/Test/
-%{_mandir}/man3/Test::Modern.3pm*
+%{_mandir}/man3/Test::Modern.3*
%changelog
+* Fri Apr 4 2014 Paul Howarth <paul(a)city-fan.org> - 0.006-1
+- Update to 0.006
+ - EXPERIMENTALLY provide Test::Lib-like behavior, and a related -lib export
+ tag
+ - Support an environment variable PERL_TEST_MODERN_ALLOW_WARNINGS to allow
+ end-users to skip running end warnings tests
+ - Added shouldnt_warn function
+- Add upstream workaround for warnings generated in File::Spec
+
* Wed Mar 26 2014 Paul Howarth <paul(a)city-fan.org> - 0.005-1
- Update to 0.005
- Support Perl 5.6.1+
diff --git a/sources b/sources
index 258bbd7..7ad3a70 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-f8fd4268c7eb79b02caf6cd3b94ed00f Test-Modern-0.005.tar.gz
+23e9158b6b7600d86152231e6e6f1207 Test-Modern-0.006.tar.gz
10 years, 2 months
[perl-IO-Socket-SSL] Update to 1.978
by Paul Howarth
commit 12ec243a1d40126dffa5201d6e5819cb5d22b430
Author: Paul Howarth <paul(a)city-fan.org>
Date: Fri Apr 4 18:41:23 2014 +0100
Update to 1.978
- New upstream release 1.978
- Added public prefix checking to verification of wildcard certificates, e.g.
accept *.foo.com but not *.co.uk; see documentation of
SSL_verifycn_publicsuffix and IO::Socket::SSL::PublicSuffix
- Fix publicsuffix for IDNA, more tests with various IDNA libs
(CPAN RT#94424)
- Reuse result of IDN lib detection from PublicSuffix.pm in SSL.pm
- Add more checks to external/usable_ca.t; now it is enough that at least one
of the hosts verifies against the built-in CA store
- Add openssl and Net::SSLeay version to diagnostics in load test
- Switch preferred IDN back-end from Net::LibIDN to URI::_idna as per upstream,
falling back to Net::IDN::Encode on older distributions
- Add fix from upstream git to support building with Test::More < 0.88
f00f9c221fd7d92b715434b7d96b26b644c8398f.patch | 69 ++++++++++++++++++++++++
perl-IO-Socket-SSL.spec | 42 ++++++++++++--
sources | 2 +-
3 files changed, 106 insertions(+), 7 deletions(-)
---
diff --git a/f00f9c221fd7d92b715434b7d96b26b644c8398f.patch b/f00f9c221fd7d92b715434b7d96b26b644c8398f.patch
new file mode 100644
index 0000000..9da3ec1
--- /dev/null
+++ b/f00f9c221fd7d92b715434b7d96b26b644c8398f.patch
@@ -0,0 +1,69 @@
+From f00f9c221fd7d92b715434b7d96b26b644c8398f Mon Sep 17 00:00:00 2001
+From: Steffen Ullrich <Steffen_Ullrich(a)genua.de>
+Date: Fri, 4 Apr 2014 17:55:49 +0200
+Subject: [PATCH] t/public_suffix_lib* - run test even if IDN lib cannot be
+ loaded, but skip IDN tests - don't use done_testing to work with older
+ Test::More
+
+---
+ t/public_suffix_lib.pl | 20 +++++++++++++-------
+ 1 file changed, 13 insertions(+), 7 deletions(-)
+
+diff --git a/t/public_suffix_lib.pl b/t/public_suffix_lib.pl
+index 6e6e3c5..66bdfe4 100644
+--- a/t/public_suffix_lib.pl
++++ b/t/public_suffix_lib.pl
+@@ -5,17 +5,19 @@
+
+ my $ps;
+ sub run_with_lib {
++ my @idnlib = @_;
+ my %require = (
+ 'URI::_idna' => 0,
+ 'Net::LibIDN' => 0,
+ 'Net::IDN::Encode' => 0,
+- map { $_ => 1 } @_,
++ map { $_ => 1 } @idnlib,
+ );
+
+ my %block;
++ my $can_idn;
+ while ( my ($lib,$load) = each %require ) {
+ if ( $load ) {
+- eval "require $lib" or plan skip_all => "cannot load $lib: $@";
++ $can_idn = eval "require $lib";
+ } else {
+ $lib =~s{::}{/}g;
+ $block{"$lib.pm"} = 1;
+@@ -28,6 +30,8 @@ sub run_with_lib {
+
+ require IO::Socket::SSL::PublicSuffix;
+
++ plan tests => 83;
++
+
+ # all one-level, but co.uk two-level
+ $ps = IO::Socket::SSL::PublicSuffix->from_string("*\nco.uk");
+@@ -172,12 +176,14 @@ sub run_with_lib {
+ is public_suffix('www.test.k12.ak.us'), 'k12.ak.us';
+
+ # Domains and gTLDs with characters outside the ASCII range:
+- if ( $ps->can_idn ) {
+- is public_suffix('test.敎育.hk'), '敎育.hk';
+- is public_suffix('ਭਾਰਤ.ਭਾਰਤ'), 'ਭਾਰਤ';
++ SKIP: {
++ if ( $can_idn ) {
++ is public_suffix('test.敎育.hk'), '敎育.hk';
++ is public_suffix('ਭਾਰਤ.ਭਾਰਤ'), 'ਭਾਰਤ';
++ } else {
++ skip "no IDN support with @idnlib",2
++ }
+ }
+-
+- done_testing();
+ }
+
+
+--
+1.9.1
+
diff --git a/perl-IO-Socket-SSL.spec b/perl-IO-Socket-SSL.spec
index 50d7037..b96e337 100644
--- a/perl-IO-Socket-SSL.spec
+++ b/perl-IO-Socket-SSL.spec
@@ -1,14 +1,16 @@
Name: perl-IO-Socket-SSL
-Version: 1.975
+Version: 1.978
Release: 1%{?dist}
Summary: Perl library for transparent SSL
Group: Development/Libraries
License: GPL+ or Artistic
URL: http://search.cpan.org/dist/IO-Socket-SSL/
Source0: http://search.cpan.org/CPAN/authors/id/S/SU/SULLR/IO-Socket-SSL-%{version...
+Patch0: https://github.com/noxxi/p5-io-socket-ssl/commit/f00f9c221fd7d92b715434b7...
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
BuildArch: noarch
BuildRequires: openssl >= 0.9.8
+BuildRequires: perl
BuildRequires: perl(Carp)
BuildRequires: perl(constant)
BuildRequires: perl(Data::Dumper)
@@ -18,7 +20,6 @@ BuildRequires: perl(IO::Select)
BuildRequires: perl(IO::Socket)
BuildRequires: perl(IO::Socket::INET)
BuildRequires: perl(IO::Socket::INET6) >= 2.62
-BuildRequires: perl(Net::LibIDN)
BuildRequires: perl(Net::SSLeay) >= 1.46
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Socket)
@@ -33,9 +34,19 @@ Requires: perl(IO::Socket::IP) >= 0.20, perl(Socket) >= 1.95
Requires: perl(IO::Socket::INET6) >= 2.62, perl(Socket6)
%endif
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
-Requires: perl(Net::LibIDN)
Requires: openssl >= 0.9.8
+# IDN back-ends: URI::_idna (from URI ≥ 1.50) is preferred
+# but Net::IDN::Encode (next pref) and Net::LibIDN are also tested
+BuildRequires: perl(Net::IDN::Encode)
+BuildRequires: perl(Net::LibIDN)
+%if 0%{?fedora} > 10 || 0%{?rhel} > 6
+BuildRequires: perl(URI::_idna)
+Requires: perl(URI::_idna)
+%else
+Requires: perl(Net::IDN::Encode)
+%endif
+
%description
This module is a true drop-in replacement for IO::Socket::INET that
uses SSL to encrypt data before it is transferred to a remote server
@@ -48,6 +59,9 @@ mod_perl.
%prep
%setup -q -n IO-Socket-SSL-%{version}
+# Fix from upstream git to support building with Test::More < 0.88
+%patch0 -p1
+
%build
echo n | perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
@@ -67,11 +81,27 @@ rm -rf %{buildroot}
%files
%doc BUGS Changes README docs/ certs/ example/ util/
%{perl_vendorlib}/IO/
-%{_mandir}/man3/IO::Socket::SSL.3pm*
-%{_mandir}/man3/IO::Socket::SSL::Intercept.3pm*
-%{_mandir}/man3/IO::Socket::SSL::Utils.3pm*
+%{_mandir}/man3/IO::Socket::SSL.3*
+%{_mandir}/man3/IO::Socket::SSL::Intercept.3*
+%{_mandir}/man3/IO::Socket::SSL::PublicSuffix.3*
+%{_mandir}/man3/IO::Socket::SSL::Utils.3*
%changelog
+* Fri Apr 4 2014 Paul Howarth <paul(a)city-fan.org> - 1.978-1
+- Update to 1.978
+ - Added public prefix checking to verification of wildcard certificates, e.g.
+ accept *.foo.com but not *.co.uk; see documentation of
+ SSL_verifycn_publicsuffix and IO::Socket::SSL::PublicSuffix
+ - Fix publicsuffix for IDNA, more tests with various IDNA libs
+ (CPAN RT#94424)
+ - Reuse result of IDN lib detection from PublicSuffix.pm in SSL.pm
+ - Add more checks to external/usable_ca.t; now it is enough that at least one
+ of the hosts verifies against the built-in CA store
+ - Add openssl and Net::SSLeay version to diagnostics in load test
+- Switch preferred IDN back-end from Net::LibIDN to URI::_idna as per upstream,
+ falling back to Net::IDN::Encode on older distributions
+- Add fix from upstream git to support building with Test::More < 0.88
+
* Wed Apr 2 2014 Paul Howarth <paul(a)city-fan.org> - 1.975-1
- Update to 1.975
- BEHAVIOR CHANGE: work around TEA misfeature on OS X built-in openssl, e.g.
diff --git a/sources b/sources
index d6c4604..1ee3f3d 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-aff1da9c2bda589024c9147c6a3ae33a IO-Socket-SSL-1.975.tar.gz
+72b0efa2b1a7777dde5ca88a069caf7e IO-Socket-SSL-1.978.tar.gz
10 years, 2 months