From 7d09e59717497404e24dd1619d29feca3f6e221a19d65d1a3efa717a70e1738e Mon Sep 17 00:00:00 2001 From: cpanmirror Date: Sat, 8 Nov 2025 05:31:04 +0000 Subject: [PATCH 1/2] Automatic update to Amazon-S3-2.0.2.tar.gz --- Amazon-S3-0.65.tar.gz | 3 - Amazon-S3-2.0.2.tar.gz | 3 + perl-Amazon-S3.changes | 131 +++++++++++++++++++++++++++++++++++++++++ perl-Amazon-S3.spec | 108 ++++++++++++++++++++++++++++----- 4 files changed, 228 insertions(+), 17 deletions(-) delete mode 100644 Amazon-S3-0.65.tar.gz create mode 100644 Amazon-S3-2.0.2.tar.gz diff --git a/Amazon-S3-0.65.tar.gz b/Amazon-S3-0.65.tar.gz deleted file mode 100644 index 9e52446..0000000 --- a/Amazon-S3-0.65.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7d2c76540619beab28c478e6f5f99091b4fd30e32f5c86113f115c6da1b6dbd4 -size 61122 diff --git a/Amazon-S3-2.0.2.tar.gz b/Amazon-S3-2.0.2.tar.gz new file mode 100644 index 0000000..368abb5 --- /dev/null +++ b/Amazon-S3-2.0.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:824facf8f6022e8cbc3ade921572847d46bdd0430666266d60484663b38edaf9 +size 74418 diff --git a/perl-Amazon-S3.changes b/perl-Amazon-S3.changes index 52ef03c..6aee0fc 100644 --- a/perl-Amazon-S3.changes +++ b/perl-Amazon-S3.changes @@ -1,3 +1,134 @@ +------------------------------------------------------------------- +Sat Nov 8 05:31:04 UTC 2025 - Tina Müller + +- updated to 2.0.2 + see /usr/share/doc/packages/perl-Amazon-S3/ChangeLog + + Mon Jun 10 08:33:31 2024 Rob Lauer + [2.0.2]: + * src/main/perl/lib/Amazon/S3/Bucket.pm.in + - issue #16 - Small fix for error when retrieving keys + with charset spec in content-type + * src/main/perl/lib/Amazon/S3.pm.in + - issue #17 - Fixed a bug where encryption was impossible in special cases + * VERSION: bump + * README.md: version + Mon Jun 10 07:30:59 2024 Rob Lauer + [0.66]: + * NEWS.md: updated + * .gitignore: *.log + * src/main/perl/run-test: new from test.localstack + * src/main/perl/S3TestUtils.pm + (set_s3_host): AMAZON_S3_SKIP_ACLS, not SKIP_PERMISSIONS + * src/main/perl/t/01-api.t + - likewise + (like_acl_allrusers_read): + - dump flag + * src/main/perl/t/04-list-buckets.t: whitespace + * src/main/perl/t/06-list-multipart-uploads.t + - ignore case on status header (LocalStack <> AWS) + Mon Apr 22 15:14:36 2024 Rob Lauer + [2.0.1]: + * VERSION: 2.0.1 + * NEWS.md: notes on version 2 + * README.md: generated + * src/main/perl/lib/Amazon/S3/BucketV2.pm.in + - pod tweaks and additions + - whitespace + Tue Dec 26 07:58:33 2023 Rob Lauer + [0.66]: + * README.md: generated + * src/main/perl/lib/Amazon/S3/Constants.pm.in + - + $HTTP_NO_CONTENT, $HTTP_PARTIAL_CONTENT + * src/main/perl/lib/Amazon/S3/Bucket.pm.in + (upload_part_of_multipart_upload): refactored, use create_api_uri() + (get_key_v2): new + (get_key): support list or hashref as args include uri_params + (_get_key): refactored + (get_key_filename): refactored, accept hash of args + * src/main/perl/lib/Amazon/S3.pm.in + - pod tweaks + - refactoring, use methods from Amazon::S3::Util + - some support for express one-zone + (use_express_one_zone): new + (add_bucket): refactored to use _add_bucket() + (_add_bucket): new + (list_directory_buckets): new + (list_object_versions): refactored using create_api_uri() + (signer): support for express one-zone + (_make_request) + - set Content-Length header + - only set content if we have data + * src/main/perl/lib/Amazon/S3/Util.pm.in + (create_query_string): refactored + (create_api_uri): new + * s3-perl.pl + - new options, availability-zone, modified-since + (list_directory_buckets): new + (create_bucket): support expresss one-zone + (list_object_versions): new + >>>>>>> master + Thu Nov 30 13:56:08 2023 Rob Lauer + [0.66]: + * VERSION: bump + * NEWS.md: updated + * README.md: generated + * src/main/perl/lib/Amazon/S3.pm.in: pod updates + * README.md: generated + * src/main/perl/lib/Amazon/S3/BucketV2.pm.in: new + * src/main/perl/lib/Amazon/S3/Util.pm.in: new + * src/main/perl/lib/Makefile.am: add above to build + * src/main/perl/lib/Amazon/S3.pm.in + - refactoring + - updated pod + (add_bucket): allow additional headers + (delete_bucket): likewise + (list_bucket) + - likewise + - allow query parameters + (_validate_acl_short): refactored + (_make_request): refactored + (adjust_region): refactored + (_do_http): refactored + (_send_request_expect_nothing): refactored + (_send_request_expect_nothing_probed): refactored + (_remember_errors): refactored + (_add_auth_header): refactored + (_merge_meta): refactored + (_encode): refactored + * src/main/perl/lib/Amazon/S3/Bucket.pm.in + - refactored + (new): refactored + (_uri): refactored + (add_key): allow for additional headers + (upload_mulipart_object) + - refactored + - allow additional headers + (initiate_multipart_upload): likewise + (upload_part_of_multipart_upload): likewise + (make_xml_document_simple): replaced with _create_multipart_upload_request() + (get_key): call _get_key() now + (_get_key) + - renamed from get_key() + - allow additional headers + (copy_object): refactored + (delete_keys) + - refactored + - allow additional headers + * src/main/perl/lib/Amazon/S3/Constants.pm.in + - + $AWS_METADATA_BASE_URL + - + markers for ListObjectVersions + * src/main/perl/t/01-api.t + - create private bucket first, then delete public access block + (list_all) + - refactored + - allow additional headers + (get_acl) + - refactored + - allow additional headers + (get_location_constraint): refactored + (_create_multipart_upload_request): new + ------------------------------------------------------------------- Fri Mar 8 21:59:23 UTC 2024 - Tina Müller diff --git a/perl-Amazon-S3.spec b/perl-Amazon-S3.spec index 312eec1..b5664ea 100644 --- a/perl-Amazon-S3.spec +++ b/perl-Amazon-S3.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Amazon-S3 # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,13 +18,12 @@ %define cpan_name Amazon-S3 Name: perl-Amazon-S3 -Version: 0.650.0 +Version: 2.0.2 Release: 0 -%define cpan_version 0.65 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Perl interface to AWS S3 API URL: https://metacpan.org/release/%{cpan_name} -Source0: https://cpan.metacpan.org/authors/id/B/BI/BIGFOOT/%{cpan_name}-%{cpan_version}.tar.gz +Source0: https://cpan.metacpan.org/authors/id/B/BI/BIGFOOT/%{cpan_name}-%{version}.tar.gz Source1: cpanspec.yml Source100: README.md BuildArch: noarch @@ -32,7 +31,7 @@ BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Class::Accessor::Fast) BuildRequires: perl(Digest::HMAC_SHA1) -BuildRequires: perl(Digest::MD5::File) >= 0.08 +BuildRequires: perl(Digest::MD5::File) >= 0.80 BuildRequires: perl(ExtUtils::MakeMaker) >= 6.64 BuildRequires: perl(File::ShareDir::Install) BuildRequires: perl(HTTP::Date) @@ -47,7 +46,7 @@ BuildRequires: perl(Net::HTTP) BuildRequires: perl(Pod::Markdown) BuildRequires: perl(Readonly) BuildRequires: perl(Test::More) >= 1.302190 -BuildRequires: perl(Test::Output) >= 1.033 +BuildRequires: perl(Test::Output) >= 1.33 BuildRequires: perl(URI) BuildRequires: perl(URI::Escape) BuildRequires: perl(XML::Simple) @@ -68,16 +67,10 @@ Requires: perl(Readonly) Requires: perl(URI) Requires: perl(URI::Escape) Requires: perl(XML::Simple) -Provides: perl(Amazon::S3) = %{version} -Provides: perl(Amazon::S3::Bucket) = %{version} -Provides: perl(Amazon::S3::Constants) = %{version} -Provides: perl(Amazon::S3::Logger) = %{version} -Provides: perl(Amazon::S3::Signature::V4) -%undefine __perllib_provides %{perl_requires} %description -This documentation refers to version 0.65. +This documentation refers to version 2.0.2. 'Amazon::S3' provides a portable client interface to Amazon Simple Storage System (S3). @@ -91,12 +84,99 @@ it has had some recent updates. Recent changes include implementations of: * DeleteObjects +* ListObjectVersions + Additionally, this module now implements Signature Version 4 signing, unit tests have been updated and more documentation has been added or corrected. Credentials are encrypted if you have encryption modules installed. +_NEW!_ + +The 'Amazon::S3' modules have been heavily refactored over the last few +releases to increase maintainability and to add new features. New features +include: + +* Amazon::S3::BucketV2 + +This new module implements a mechanism to invoke _almost_ all of the S3 +APIs using a standard calling method. + +The module will format your Perl objects as XML payloads and enable you to +provide all of the parameters required to make an API call. Headers and URI +parameters can also be passed to the methods. Amazon::S3::BucketV2 is a +subclass of Amazon::S3::Bucket, meaning you can still invoke all of the +same methods found there. + +See Amazon::S3::BucketV2 for more details. + +* Limited Support for Directory Buckets + +This version include limited support for directory buckets. + +You can create and list directory buckets. + +_Directory buckets use the S3 Express One Zone storage class, which is +recommended if your application is performance sensitive and benefits from +single-digit millisecond PUT and GET latencies._ - +https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-ove +rview.html + + * list_directory_buckets + +List the directory buckets. Note this only returns a list of you directory +buckets, not their contents. In order to list the contents of a directory +bucket you must first create a session that establishes temporary +credentials used to acces the Zonal endpoints. You then use those +credentials for signing requests using the ListObjectV2 API. + +This process is currently *not supported* by this class. + +https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html + + + + * add_bucket + +You can add a regin and availability zone to this call in order to create a +directory bucket. + + $bucket->add_bucket({ bucket => $bucket_name, availability_zone => 'use1-az5' }); + +Note that your bucket name must conform to the naming conventions for +directory buckets. - +https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-ove +rview.html#directory-buckets-name + +* Addition of version parameter for 'delete_key' + +You can now delete a version of a key by including its verion ID. + + $bucket->delete_key($key, $version_id); + +* Methods that accept a hash reference can now accept a + 'headers' object that may contain any additional headers you might want + to send with a request. Some of the methods that now allow you to pass + a header object include: + + * add_bucket + + * add_key + + * get_key + +Can now be called with a hashref which may include both a 'headers' and +'uri_params' object. + + * delete_bucket + + * list_bucket + + * list_object_versions + + * upload_multipart_object + %prep -%autosetup -n %{cpan_name}-%{cpan_version} +%autosetup -n %{cpan_name}-%{version} -p1 %build perl Makefile.PL INSTALLDIRS=vendor -- 2.51.1 From d2220f834726dafca0ee5bb884ddaf4d421473633ff8c6d94378376b61711c9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Fri, 14 Nov 2025 17:10:13 +0100 Subject: [PATCH 2/2] Override description length --- cpanspec.yml | 2 +- perl-Amazon-S3.changes | 5 +++ perl-Amazon-S3.spec | 97 ------------------------------------------ 3 files changed, 6 insertions(+), 98 deletions(-) diff --git a/cpanspec.yml b/cpanspec.yml index ab24ed9..50f40d3 100644 --- a/cpanspec.yml +++ b/cpanspec.yml @@ -1,5 +1,5 @@ --- -#description_paragraphs: 3 +description_paragraphs: 3 #description: |- # override description from CPAN #summary: override summary from CPAN diff --git a/perl-Amazon-S3.changes b/perl-Amazon-S3.changes index 6aee0fc..6f76218 100644 --- a/perl-Amazon-S3.changes +++ b/perl-Amazon-S3.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Nov 14 16:09:54 UTC 2025 - Tina Müller + +- Add cpanspec.yml to override description length + ------------------------------------------------------------------- Sat Nov 8 05:31:04 UTC 2025 - Tina Müller diff --git a/perl-Amazon-S3.spec b/perl-Amazon-S3.spec index b5664ea..757fc61 100644 --- a/perl-Amazon-S3.spec +++ b/perl-Amazon-S3.spec @@ -78,103 +78,6 @@ System (S3). This module is rather dated, however with some help from a few contributors it has had some recent updates. Recent changes include implementations of: -* ListObjectsV2 - -* CopyObject - -* DeleteObjects - -* ListObjectVersions - -Additionally, this module now implements Signature Version 4 signing, unit -tests have been updated and more documentation has been added or corrected. -Credentials are encrypted if you have encryption modules installed. - -_NEW!_ - -The 'Amazon::S3' modules have been heavily refactored over the last few -releases to increase maintainability and to add new features. New features -include: - -* Amazon::S3::BucketV2 - -This new module implements a mechanism to invoke _almost_ all of the S3 -APIs using a standard calling method. - -The module will format your Perl objects as XML payloads and enable you to -provide all of the parameters required to make an API call. Headers and URI -parameters can also be passed to the methods. Amazon::S3::BucketV2 is a -subclass of Amazon::S3::Bucket, meaning you can still invoke all of the -same methods found there. - -See Amazon::S3::BucketV2 for more details. - -* Limited Support for Directory Buckets - -This version include limited support for directory buckets. - -You can create and list directory buckets. - -_Directory buckets use the S3 Express One Zone storage class, which is -recommended if your application is performance sensitive and benefits from -single-digit millisecond PUT and GET latencies._ - -https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-ove -rview.html - - * list_directory_buckets - -List the directory buckets. Note this only returns a list of you directory -buckets, not their contents. In order to list the contents of a directory -bucket you must first create a session that establishes temporary -credentials used to acces the Zonal endpoints. You then use those -credentials for signing requests using the ListObjectV2 API. - -This process is currently *not supported* by this class. - -https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html - - - - * add_bucket - -You can add a regin and availability zone to this call in order to create a -directory bucket. - - $bucket->add_bucket({ bucket => $bucket_name, availability_zone => 'use1-az5' }); - -Note that your bucket name must conform to the naming conventions for -directory buckets. - -https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-ove -rview.html#directory-buckets-name - -* Addition of version parameter for 'delete_key' - -You can now delete a version of a key by including its verion ID. - - $bucket->delete_key($key, $version_id); - -* Methods that accept a hash reference can now accept a - 'headers' object that may contain any additional headers you might want - to send with a request. Some of the methods that now allow you to pass - a header object include: - - * add_bucket - - * add_key - - * get_key - -Can now be called with a hashref which may include both a 'headers' and -'uri_params' object. - - * delete_bucket - - * list_bucket - - * list_object_versions - - * upload_multipart_object - %prep %autosetup -n %{cpan_name}-%{version} -p1 -- 2.51.1