From e311da1ae133cc61415b761cf7cb7edfe272a4b731a8a9836d1fef6d2526b5ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Tue, 3 Jun 2025 15:09:16 +0000 Subject: [PATCH] Normalize CPAN version See https://github.com/openSUSE/cpanspec/issues/47 for details OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-AnyEvent-HTTP?expand=0&rev=24 --- .gitattributes | 23 +++++++ .gitignore | 1 + AnyEvent-HTTP-2.25.tar.gz | 3 + cpanspec.yml | 23 +++++++ perl-AnyEvent-HTTP.changes | 130 +++++++++++++++++++++++++++++++++++++ perl-AnyEvent-HTTP.spec | 80 +++++++++++++++++++++++ 6 files changed, 260 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 AnyEvent-HTTP-2.25.tar.gz create mode 100644 cpanspec.yml create mode 100644 perl-AnyEvent-HTTP.changes create mode 100644 perl-AnyEvent-HTTP.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/AnyEvent-HTTP-2.25.tar.gz b/AnyEvent-HTTP-2.25.tar.gz new file mode 100644 index 0000000..6c29813 --- /dev/null +++ b/AnyEvent-HTTP-2.25.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5cfa53416124176f6f4cd32b00ea8ca79a2d5df51258683989cd04fe86e25013 +size 28514 diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..e344f25 --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,23 @@ +--- +#description_paragraphs: 3 +#no_testing: broken upstream +#sources: +# - source1 +# - source2 +#patches: +# foo.patch: -p1 +# bar.patch: +#preamble: |- +# BuildRequires: gcc-c++ +#post_prep: |- +# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'` +# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL +#post_install: |- +# sed on %{name}.files +license: Perl License +#skip_noarch: 1 +#custom_build: |- +#./Build build flags=%{?_smp_mflags} --myflag +#custom_test: |- +#startserver && make test +#ignore_requires: Bizarre::Module diff --git a/perl-AnyEvent-HTTP.changes b/perl-AnyEvent-HTTP.changes new file mode 100644 index 0000000..451098d --- /dev/null +++ b/perl-AnyEvent-HTTP.changes @@ -0,0 +1,130 @@ +------------------------------------------------------------------- +Tue Jun 3 15:09:07 UTC 2025 - Tina Müller + +- Normalize CPAN version + See https://github.com/openSUSE/cpanspec/issues/47 for details + +------------------------------------------------------------------- +Tue Apr 28 03:07:21 UTC 2020 - + +- updated to 2.25 + see /usr/share/doc/packages/perl-AnyEvent-HTTP/Changes + + TODO: cookie_jar_extract should refuse when host is an ip literal + TODO: cookie_jar_et_cookie should reject cookies not matching their down server domain + TODO: cookie prefixes? https://tools.ietf.org/html/draft-ietf-httpbis-cookie-prefixes-00 + TODO: default rbuf_max limit for header-reading, chunk header reading etc. + + 2.25 Mon Apr 27 14:11:40 CEST 2020 + - fix incorrectly sending proxy requests to origin servers + when reusing proxy connections (analyzed and testcase by Ivan Robert). + - the sessionid parameter was documented as session in random + places - fix docs and keep using sessionid in the code as before. + - fix cookie format documentation. + +------------------------------------------------------------------- +Fri Aug 31 05:01:49 UTC 2018 - coolo@suse.com + +- updated to 2.24 + see /usr/share/doc/packages/perl-AnyEvent-HTTP/Changes + +------------------------------------------------------------------- +Mon Aug 29 05:01:04 UTC 2016 - coolo@suse.com + +- updated to 2.23 + see /usr/share/doc/packages/perl-AnyEvent-HTTP/Changes + + TODO: default rbuf_max value maybe? how about reading large chunks in small parts? + + 2.23 Sun Aug 28 11:30:33 CEST 2016 + - relative redirects used the proxy schema instead of the request + url schema to generate the new url, which is wrong (analyzed by Felix + Ostmann). + - fix download example (reported by Felix Ostmann). + +------------------------------------------------------------------- +Thu May 14 08:02:22 UTC 2015 - coolo@suse.com + +- updated to 2.22 + see /usr/share/doc/packages/perl-AnyEvent-HTTP/Changes + +------------------------------------------------------------------- +Fri Jul 25 09:32:00 UTC 2014 - coolo@suse.com + +- updated to 2.21 + - correctly keep body when redirecting POSTs, instead of + deleting them. + + 2.2 Mon Jun 9 01:31:46 CEST 2014 + - connection header was malformed (patch by Raphael Geissert). + - add lots of known idempotent methods from httpbis. + - implement relative location headers (rfc 7231), with fallback on URI. + - add support for status code 308 from rfc 7238. + - recommend URI. + +------------------------------------------------------------------- +Mon Jun 3 11:26:23 UTC 2013 - coolo@suse.com + +- updated to 2.15 + - use the recurse parameter to also limit the number of retries to be + done, avodiing endless loops with broken servers, as reported + by Carl Chambers. + +------------------------------------------------------------------- +Fri May 25 03:26:07 UTC 2012 - coolo@suse.com + +- updated to 2.14 + - Time::Local::timegm croaks on out-of-range values. Don't let + this disturb AnyEvent::HTTP (reported by: tell me, I forgot...). + +------------------------------------------------------------------- +Thu Aug 25 15:51:20 UTC 2011 - chris@computersalat.de + +- update to 2.13 + - garbled chunked responses caused AnyEvent::HTTP to malfunction + (patch by Dmitri Melikyan). + - fix GET => HEAD in one case in the documentation (James Bromberger). +- fix deps + * perl(AnyEvent) >= 5.33 + * perl(common::sense) >= 3.3 + +------------------------------------------------------------------- +Tue Jun 14 09:45:02 UTC 2011 - coolo@novell.com + +- updated to 2.12 + - fix a possible 'Can't call method "destroyed"' error (which would + have been reported by Carl Chambers). + - the keepalive session cache wouldn't take port and scheme into account + when reusing connection - potentially causing information leaks + (reported by Nick Kostirya). + - bump AnyEvent dependency version (reported by Richard Harris). + - the keepalive and persistent parameters were actually named + differently in the code - they now work as documented. + - fix a bug where callbacks would sometimes never be called when + the request timeout is near or below the persistent connection + timeout (testcase by Cindy Wang). + - destroying the guard would have no effect when a request was + recursing or being retired. + - "proxy => undef" now overrides any global proxy when specified. + - require scheme in urls, also use a stricter match to match urls, + leading or trailing garbage is no longer tolerated. + - EXPERIMENTAL: allow '=' in cookie values. + - do not lowercase cookie names, only parameter names. + - add missing dependency on common::sense. + - add a resume download example. + +------------------------------------------------------------------- +Wed Dec 1 13:30:35 UTC 2010 - coolo@novell.com + +- switch to perl_requires macro + +------------------------------------------------------------------- +Mon Nov 29 18:29:16 UTC 2010 - coolo@novell.com + +- remove /var/adm/perl-modules + +------------------------------------------------------------------- +Thu Oct 7 11:17:19 UTC 2010 - pascal.bleser@opensuse.org + +- initial package (1.46) + diff --git a/perl-AnyEvent-HTTP.spec b/perl-AnyEvent-HTTP.spec new file mode 100644 index 0000000..de490cc --- /dev/null +++ b/perl-AnyEvent-HTTP.spec @@ -0,0 +1,80 @@ +# +# spec file for package perl-AnyEvent-HTTP +# +# 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 +# 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/ +# + + +%define cpan_name AnyEvent-HTTP +Name: perl-AnyEvent-HTTP +Version: 2.250.0 +Release: 0 +# 2.25 -> normalize -> 2.250.0 +%define cpan_version 2.25 +License: Artistic-1.0 OR GPL-1.0-or-later +Summary: Simple but non-blocking HTTP/HTTPS client +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/%{cpan_name}-%{cpan_version}.tar.gz +Source1: cpanspec.yml +BuildArch: noarch +BuildRequires: perl +BuildRequires: perl-macros +BuildRequires: perl(AnyEvent) >= 5.330 +BuildRequires: perl(common::sense) >= 3.300 +Requires: perl(AnyEvent) >= 5.330 +Requires: perl(common::sense) >= 3.300 +Provides: perl(AnyEvent::HTTP) = %{version} +%undefine __perllib_provides +Recommends: perl(URI) +%{perl_requires} + +%description +This module is an AnyEvent user, you need to make sure that you use and run +a supported event loop. + +This module implements a simple, stateless and non-blocking HTTP client. It +supports GET, POST and other request methods, cookies and more, all on a +very low level. It can follow redirects, supports proxies, and +automatically limits the number of connections to the values specified in +the RFC. + +It should generally be a "good client" that is enough for most HTTP tasks. +Simple tasks should be simple, but complex tasks should still be possible +as the user retains control over request and response headers. + +The caller is responsible for authentication management, cookies (if the +simplistic implementation in this module doesn't suffice), referer and +other high-level protocol details for which this module offers only limited +support. + +%prep +%autosetup -n %{cpan_name}-%{cpan_version} -p1 + +%build +perl Makefile.PL INSTALLDIRS=vendor +%make_build + +%check +make test + +%install +%perl_make_install +%perl_process_packlist +%perl_gen_filelist + +%files -f %{name}.files +%doc Changes README +%license COPYING + +%changelog