2019-03-02 15:17:13 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-HTTP-CookieJar
|
|
|
|
#
|
2025-06-03 13:03:58 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2019-03-02 15:17:13 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2021-06-24 08:55:08 +00:00
|
|
|
%define cpan_name HTTP-CookieJar
|
2019-03-02 15:17:13 +00:00
|
|
|
Name: perl-HTTP-CookieJar
|
2025-06-03 13:03:58 +00:00
|
|
|
Version: 0.14.0
|
2019-03-02 15:17:13 +00:00
|
|
|
Release: 0
|
2025-06-03 13:03:58 +00:00
|
|
|
# 0.014 -> normalize -> 0.14.0
|
|
|
|
%define cpan_version 0.014
|
2019-03-02 15:17:13 +00:00
|
|
|
License: Apache-2.0
|
2022-08-16 12:22:16 +00:00
|
|
|
Summary: Minimalist HTTP user agent cookie jar
|
2020-10-01 20:27:26 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2025-06-03 13:03:58 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/%{cpan_name}-%{cpan_version}.tar.gz
|
2020-10-01 20:27:26 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:14:39 +02:00
|
|
|
Source100: README.md
|
2025-07-16 10:51:23 +00:00
|
|
|
Patch0: fix2041.patch
|
2019-03-02 15:17:13 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: perl(HTTP::Date)
|
|
|
|
BuildRequires: perl(Test::Deep)
|
|
|
|
BuildRequires: perl(Test::More) >= 0.96
|
|
|
|
BuildRequires: perl(Test::Requires)
|
2021-01-28 14:08:14 +00:00
|
|
|
BuildRequires: perl(parent)
|
2025-06-03 13:03:58 +00:00
|
|
|
#BuildRequires: perl(Time::Local) >= 1.19
|
2019-03-02 15:17:13 +00:00
|
|
|
BuildRequires: perl(URI)
|
|
|
|
Requires: perl(HTTP::Date)
|
|
|
|
Requires: perl(parent)
|
2021-01-28 14:08:14 +00:00
|
|
|
#Requires: perl(Time::Local) >= 1.1901
|
2025-06-03 13:03:58 +00:00
|
|
|
Provides: perl(HTTP::CookieJar) = %{version}
|
|
|
|
Provides: perl(HTTP::CookieJar::LWP) = %{version}
|
|
|
|
%undefine __perllib_provides
|
2019-03-02 15:17:13 +00:00
|
|
|
Recommends: perl(Mozilla::PublicSuffix)
|
|
|
|
%{perl_requires}
|
2021-01-28 14:08:14 +00:00
|
|
|
# MANUAL BEGIN
|
|
|
|
# ATTENTION: Manual fix because of perl versioning vs. rpm
|
|
|
|
# Time::Local started to use only 2 digits for the minor version
|
|
|
|
# In perl, 1.1901 equals v1.190.1 and 1.28 v.1.280
|
|
|
|
BuildRequires: perl(Time::Local) >= 1.28
|
|
|
|
Requires: perl(Time::Local) >= 1.28
|
|
|
|
# MANUAL END
|
2019-03-02 15:17:13 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This module implements a minimalist HTTP user agent cookie jar in
|
|
|
|
conformance with at http://tools.ietf.org/html/rfc6265.
|
|
|
|
|
|
|
|
Unlike the commonly used HTTP::Cookies module, this module does not require
|
|
|
|
use of HTTP::Request and HTTP::Response objects. An LWP-compatible adapter
|
|
|
|
is available as HTTP::CookieJar::LWP.
|
|
|
|
|
|
|
|
%prep
|
2025-06-03 13:03:58 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
2019-03-02 15:17:13 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2021-06-24 08:55:08 +00:00
|
|
|
%make_build
|
2019-03-02 15:17:13 +00:00
|
|
|
|
|
|
|
%check
|
|
|
|
make test
|
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
%doc Changes CONTRIBUTING.mkdn README
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
%changelog
|