From 4bb01956858a0b1d83c8bde56187cf97012e2c88 Mon Sep 17 00:00:00 2001 From: Denis Fateyev <de...@fateyev.com> Date: Thu, 9 Mar 2017 02:23:54 +0600 Subject: perl-Test-Fake-HTTPD: version 0.08
--- .gitignore | 1 + perl-Test-Fake-HTTPD.spec | 34 +++++++++++++++------------------- sources | 2 +- ssl-parameters-assignment.patch | 10 +++++----- 4 files changed, 22 insertions(+), 25 deletions(-) diff --git a/.gitignore b/.gitignore index 40b604d..9716785 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /Test-Fake-HTTPD-0.07.tar.gz +/Test-Fake-HTTPD-0.08.tar.gz diff --git a/perl-Test-Fake-HTTPD.spec b/perl-Test-Fake-HTTPD.spec index 03c36e8..d6a96f8 100644 --- a/perl-Test-Fake-HTTPD.spec +++ b/perl-Test-Fake-HTTPD.spec @@ -1,6 +1,6 @@ Name: perl-Test-Fake-HTTPD -Version: 0.07 -Release: 4%{?dist} +Version: 0.08 +Release: 1%{?dist} Summary: Fake HTTP server module for testing License: GPL+ or Artistic Group: Development/Libraries @@ -18,17 +18,9 @@ BuildRequires: findutils BuildRequires: make BuildRequires: perl BuildRequires: perl-generators -BuildRequires: perl(Config) -BuildRequires: perl(Cwd) BuildRequires: perl(ExtUtils::MakeMaker) -BuildRequires: perl(ExtUtils::MM_Unix) -BuildRequires: perl(Fcntl) -BuildRequires: perl(File::Find) -BuildRequires: perl(File::Path) -BuildRequires: perl(FindBin) -BuildRequires: perl(base) +BuildRequires: perl(Module::Build::Tiny) >= 0.035 BuildRequires: perl(strict) -BuildRequires: perl(vars) # Run-time BuildRequires: perl(Carp) @@ -62,26 +54,30 @@ Written by NAKAGAWA Masaki <mas...@cpan.org>. %patch0 -p0 %build -perl Makefile.PL INSTALLDIRS=vendor -make %{?_smp_mflags} +perl Build.PL installdirs=vendor +./Build %install -make pure_install DESTDIR=$RPM_BUILD_ROOT +./Build install --prefix=%{_prefix} --destdir=%{buildroot} --create_packlist=0 -find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; -%{_fixperms} $RPM_BUILD_ROOT/* +%{_fixperms} %{buildroot}/* %check -make test +./Build test %files -%doc Changes README.pod -%{perl_vendorlib}/* +%license LICENSE +%doc Changes README.md +%{perl_privlib}/* %{_mandir}/man3/* %changelog +* Tue Mar 07 2017 Denis Fateyev <de...@fateyev.com> - 0.08-1 +- Update to 0.08 release + * Sat Feb 11 2017 Fedora Release Engineering <rel...@fedoraproject.org> - 0.07-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild diff --git a/sources b/sources index 293e57d..a38386b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -652c5723b6ad11df65f5eab0440810ab Test-Fake-HTTPD-0.07.tar.gz +SHA512 (Test-Fake-HTTPD-0.08.tar.gz) = 240f0e4c9dd426804b116decea093996d368e57e14ab705c650398aec94949115b10bf90147b0a4ae7f8a75b7a32311a7cf7def0fe97096ad553eccb17c491fd diff --git a/ssl-parameters-assignment.patch b/ssl-parameters-assignment.patch index dfa19e5..4a6f985 100644 --- a/ssl-parameters-assignment.patch +++ b/ssl-parameters-assignment.patch @@ -1,7 +1,7 @@ * Adds SSL key and certificate assignment support (de...@fateyev.com) ---- lib/Test/Fake/HTTPD.pm 2015-01-25 22:32:52.000000000 +0600 -+++ lib/Test/Fake/HTTPD.pm 2016-02-14 02:01:22.556235775 +0600 -@@ -30,7 +30,7 @@ +--- lib/Test/Fake/HTTPD.pm 2017-03-07 00:56:31.668734375 +0600 ++++ lib/Test/Fake/HTTPD.pm 2017-03-07 00:59:00.704881840 +0600 +@@ -36,7 +36,7 @@ no warnings 'redefine'; *run_https_server = sub (&) { my $app = shift; @@ -10,12 +10,12 @@ }; } -@@ -64,6 +64,8 @@ +@@ -74,6 +74,8 @@ Timeout => $self->{timeout}, Proto => 'tcp', Listen => $self->{listen}, + (($self->{scheme} eq 'https') ? (SSL_cert_file => $self->{cert_file}) : ()), + (($self->{scheme} eq 'https') ? (SSL_key_file => $self->{key_file}) : ()), ($self->_is_win32 ? () : (ReuseAddr => 1)), + %extra_daemon_args, ) and last; - Time::HiRes::sleep(0.1); -- cgit v1.1 https://src.fedoraproject.org/cgit/perl-Test-Fake-HTTPD.git/commit/?h=f25&id=4bb01956858a0b1d83c8bde56187cf97012e2c88 _______________________________________________ perl-devel mailing list -- perl-devel@lists.fedoraproject.org To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org