Compare commits
5 Commits
Author | SHA256 | Date | |
---|---|---|---|
66b837cc22 | |||
f7c0b510ed | |||
17db638d8a | |||
abb9e364f4 | |||
1c796cb842 |
12
README.md
Normal file
12
README.md
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
## Build Results
|
||||
|
||||
Current state of perl in openSUSE:Factory is
|
||||
|
||||

|
||||
|
||||
The current state of perl in the devel project build (devel:languages:perl)
|
||||
|
||||

|
||||
|
||||
|
@@ -7,7 +7,8 @@
|
||||
#sources:
|
||||
# - source1
|
||||
# - source2
|
||||
#patches:
|
||||
patches:
|
||||
fix2041.patch: -p1
|
||||
# foo.patch: -p1
|
||||
# bar.patch:
|
||||
|
||||
|
31
fix2041.patch
Normal file
31
fix2041.patch
Normal file
@@ -0,0 +1,31 @@
|
||||
https://github.com/dagolden/HTTP-CookieJar/pull/16
|
||||
|
||||
From cb4faca2308a0a9a9b96526d9ef9e3cee58a4e35 Mon Sep 17 00:00:00 2001
|
||||
From: "Bernhard M. Wiedemann" <bwiedemann@suse.de>
|
||||
Date: Mon, 14 Jul 2025 12:53:59 +0200
|
||||
Subject: [PATCH] Fix tests after year 2041
|
||||
|
||||
moved to 3061 because it also has a Sunday on that day.
|
||||
|
||||
Background:
|
||||
As part of my work on reproducible builds for openSUSE, I check that software still gives identical build results in the future.
|
||||
The usual offset is +16 years, because that is how long I expect some software will be used in some places.
|
||||
This showed up failing tests in our package build.
|
||||
See https://reproducible-builds.org/ for why this matters.
|
||||
---
|
||||
t/examples.t | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/t/examples.t b/t/examples.t
|
||||
index 755d9b2..3c032e6 100644
|
||||
--- a/t/examples.t
|
||||
+++ b/t/examples.t
|
||||
@@ -38,7 +38,7 @@ subtest "wrong path" => sub {
|
||||
|
||||
subtest "expiration" => sub {
|
||||
$jar->clear;
|
||||
- $jar->add( $req, "lang=en-US; Expires=Sun, 09 Jun 2041 10:18:14 GMT" );
|
||||
+ $jar->add( $req, "lang=en-US; Expires=Sun, 09 Jun 3061 10:18:14 GMT" );
|
||||
is( $jar->cookie_header($req), "lang=en-US" );
|
||||
$jar->add( $req, "lang=; Expires=Sun, 06 Nov 1994 08:49:37 GMT" );
|
||||
is( $jar->cookie_header($req), "" );
|
@@ -1,3 +1,14 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 16 09:50:41 UTC 2025 - Bernhard Wiedemann <bwiedemann@suse.com>
|
||||
|
||||
- Add fix2041.patch to make tests pass after year 2041
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 3 13:03:41 UTC 2025 - Tina Müller <tina.mueller@suse.com>
|
||||
|
||||
- Normalize CPAN version
|
||||
See https://github.com/openSUSE/cpanspec/issues/47 for details
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 26 03:06:32 UTC 2022 - Tina Müller <timueller+perl@suse.de>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-HTTP-CookieJar
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -18,13 +18,17 @@
|
||||
|
||||
%define cpan_name HTTP-CookieJar
|
||||
Name: perl-HTTP-CookieJar
|
||||
Version: 0.014
|
||||
Version: 0.14.0
|
||||
Release: 0
|
||||
# 0.014 -> normalize -> 0.14.0
|
||||
%define cpan_version 0.014
|
||||
License: Apache-2.0
|
||||
Summary: Minimalist HTTP user agent cookie jar
|
||||
URL: https://metacpan.org/release/%{cpan_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/%{cpan_name}-%{version}.tar.gz
|
||||
Source0: https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/%{cpan_name}-%{cpan_version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
Source100: README.md
|
||||
Patch0: fix2041.patch
|
||||
BuildArch: noarch
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
@@ -33,11 +37,14 @@ BuildRequires: perl(Test::Deep)
|
||||
BuildRequires: perl(Test::More) >= 0.96
|
||||
BuildRequires: perl(Test::Requires)
|
||||
BuildRequires: perl(parent)
|
||||
#BuildRequires: perl(Time::Local) >= 1.1901
|
||||
#BuildRequires: perl(Time::Local) >= 1.19
|
||||
BuildRequires: perl(URI)
|
||||
Requires: perl(HTTP::Date)
|
||||
Requires: perl(parent)
|
||||
#Requires: perl(Time::Local) >= 1.1901
|
||||
Provides: perl(HTTP::CookieJar) = %{version}
|
||||
Provides: perl(HTTP::CookieJar::LWP) = %{version}
|
||||
%undefine __perllib_provides
|
||||
Recommends: perl(Mozilla::PublicSuffix)
|
||||
%{perl_requires}
|
||||
# MANUAL BEGIN
|
||||
@@ -57,7 +64,7 @@ use of HTTP::Request and HTTP::Response objects. An LWP-compatible adapter
|
||||
is available as HTTP::CookieJar::LWP.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{cpan_name}-%{version}
|
||||
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor
|
||||
|
Reference in New Issue
Block a user