From 374952e3a452d001b3eeea97ff7d62fd99b69774 Mon Sep 17 00:00:00 2001
From: ojkastl_buildservice <>
Date: Feb 25 2025 15:53:24 +0000
Subject: Update s3cmd to version 2.4.0 / rev 1 via SR 1248223


https://build.opensuse.org/request/show/1248223
by user ojkastl_buildservice + dimstar_suse
s3cmd is a free command line tool and client for uploading, retrieving and managing data in Amazon S3 and other cloud storage service providers that use the S3 protocol

---

diff --git a/.files b/.files
new file mode 100644
index 0000000..da0f899
Binary files /dev/null and b/.files differ
diff --git a/.meta b/.meta
new file mode 100644
index 0000000..175c2ba
--- /dev/null
+++ b/.meta
@@ -0,0 +1,6 @@
+<package name="s3cmd" project="openSUSE:Factory">
+  <title>s3cmd</title>
+  <description>s3cmd is a free command line tool and client for uploading, retrieving and managing data in Amazon S3 and other cloud storage service providers that use the S3 protocol</description>
+  <devel project="Cloud:Tools" package="s3cmd"/>
+  <url>http://s3tools.org/s3cmd</url>
+</package>
diff --git a/.rev b/.rev
new file mode 100644
index 0000000..76bf745
--- /dev/null
+++ b/.rev
@@ -0,0 +1,10 @@
+<revisionlist>
+  <revision rev="1" vrev="1">
+    <srcmd5>e0afcc1e78d2df7973bba790f876c2cb</srcmd5>
+    <version>2.4.0</version>
+    <time>1740498452</time>
+    <user>dimstar_suse</user>
+    <comment>s3cmd is a free command line tool and client for uploading, retrieving and managing data in Amazon S3 and other cloud storage service providers that use the S3 protocol</comment>
+    <requestid>1248223</requestid>
+  </revision>
+</revisionlist>
diff --git a/_service b/_service
new file mode 100644
index 0000000..2691d7e
--- /dev/null
+++ b/_service
@@ -0,0 +1,18 @@
+<services>
+  <service name="obs_scm" mode="manual">
+    <param name="url">https://github.com/s3tools/s3cmd</param>
+    <param name="scm">git</param>
+    <param name="exclude">.git</param>
+    <param name="revision">v2.4.0</param>
+    <param name="versionformat">@PARENT_TAG@</param>
+    <param name="changesgenerate">enable</param>
+    <param name="versionrewrite-pattern">v(.*)</param>
+  </service>
+  <service name="set_version" mode="manual">
+  </service>
+  <service name="tar" mode="buildtime"/>
+  <service name="recompress" mode="buildtime">
+    <param name="file">*.tar</param>
+    <param name="compression">gz</param>
+  </service>
+</services>
diff --git a/_servicedata b/_servicedata
new file mode 100644
index 0000000..34c6c10
--- /dev/null
+++ b/_servicedata
@@ -0,0 +1,4 @@
+<servicedata>
+<service name="tar_scm">
+                <param name="url">https://github.com/s3tools/s3cmd</param>
+              <param name="changesrevision">9d17075b77e933cf9d7916435c426d38ab5bca5e</param></service></servicedata>
\ No newline at end of file
diff --git a/s3cmd-2.4.0.obscpio b/s3cmd-2.4.0.obscpio
new file mode 120000
index 0000000..5449406
--- /dev/null
+++ b/s3cmd-2.4.0.obscpio
@@ -0,0 +1 @@
+/ipfs/bafybeicneqixik3kb6wxnrh7y467cxsvwk3byccj5mbtzzh2i3wbs4ybza
\ No newline at end of file
diff --git a/s3cmd.changes b/s3cmd.changes
new file mode 100644
index 0000000..6550e0c
--- /dev/null
+++ b/s3cmd.changes
@@ -0,0 +1,208 @@
+-------------------------------------------------------------------
+Mon Feb 24 17:40:45 UTC 2025 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
+
+- change Source URL, as this package uses a obs_scm service
+
+-------------------------------------------------------------------
+Wed Mar 20 17:39:05 UTC 2024 - opensuse_buildservice@ojkastl.de
+
+- add sles15 macro to build for new python3.11 stack
+- Update to version 2.4.0:
+  * Update version to 2.4.0
+  * s3cmd: handle cases of empty key or value for settagging
+  * cosmetic: typo fix
+  * Fixes #1359 - add setownership and setblockpublicaccess
+    commands + related entries in info
+  * cleanup: update copyright headers and other values
+  * cosmetic: comment typo fixes
+  * Fixes error "'compute_content_md5' is not defined" for
+    setversioning
+  * cleanup: fixes "invalid escape sequence" Syntax Warnings
+  * Fixes #1343 - bytes to be used for repl string in
+    stripNameSpace
+  * CI: Add python 3.11 and 3.12 to the test matrix
+  * fix SignatureDoesNotMatch error when modifying an object on
+    Cloudflare R2
+  * [DATALAD RUNCMD] run codespell throughout
+  * Fixed manually some ambigous typos
+  * ignores for codespell
+  * Add rudimentary codespell config
+  * Add github action to codespell master on push and PRs
+  * Fix type error(#1313)
+  * Add setobjectretention and setobjectlegalhold commands
+  * Pass --include to curl
+  * Fixes #1292 - cloudfront: Parse all aws possible urls in
+    httpurl_to_s3uri
+  * Support bucket/object tagging command
+  * Refactoring
+  * Don't use os.path for handling s3 paths
+  * Cleanup of remote2local attributes setting code
+  * Fixes #1288 - More explicit errors when setting attributes for
+    remote2local
+  * Use "mkdir" prefix instead of "make dir" for remote2local
+    output messages
+  * make error message consistent
+  * bug: require object in abortmp
+  * Set correct mime type when uploading directories
+  * Refactor to treat copy_pairs like remote_list and update_list
+    for sync commands
+  * run-tests.py: Add test for keep-dirs feature
+  * remote2local: Use rmdir to delete folders
+  * remote2sync: children files and folders have to be deleted
+    before parent folders
+  * SortedDict: Add support for reversed() and ensure
+    SortedDictIterator is recognized as an iterable
+  * Add "--keep-dirs" option to have the folder structure preserved
+    on remote side
+  * Support versioning configuration
+  * Add to ls command a "DIROBJ" tag for directory objects in S3
+    remote
+  * Fixes #976 - Fixes recursive delete of objects named with
+    whitespace
+  * Move hash functions into Crypto module
+  * Crypto: Remove old python legacy code
+  * Fixes #1256 - Add cfinval command to request cloudfront to
+    invalidate paths
+  * Cloudfront: Fixes crash because of error reporting for retries
+  * Cloudfront: Fixes paths with wildcard or special characters to
+    not be invalidated
+  * Cloudfront: Remove wildcard import for exceptions
+  * Return additional pip install from `setup.py`
+  * Extract deps from `setup.py` to `requirements.txt`
+  * Enable pip cache in actions/setup-python
+  * Bump GitHub actions
+  * Update CI test.yml to use last minio version and use python
+    3.10 instead of 3.10-dev
+  * run-tests.py: Added server profiles to skip tests depending on
+    the server type
+  * run-tests.py: Fixes os error when trying to skip first tests
+  * Improve error message to be more explicit for upload errors
+    after retries
+  * Don't retry upload when server is full
+  * Fixes #914 - Add "--max-retries" and "max_retries" config
+    option
+  * Retry a file download in case of SlowDown or TooManyRequests
+    error
+  * Better error message in case of connection error or host
+    unreachable
+  * fix: Use NextMarker if only prefixes are returned
+  * Update help message
+  * Fixes #1005 - Fixes object is not callable error because of md5
+    FIPS test
+  * Change version to development 2.3.0-dev
+  * Add option to skip destination validation when applying
+    notification config
+  * Move md5 to BaseUtils
+  * Add FIPS support
+  * Add missing return
+
+-------------------------------------------------------------------
+Wed Mar 20 17:37:32 UTC 2024 - opensuse_buildservice@ojkastl.de
+
+- Update to version 2.3.0:
+  * Update version to 2.3.0
+  * Use quotes around files in FileLists for debug logs
+  * Use str instead of repr in FileList debug logs
+  * Fixes ConnectionRefusedError not found error for python 2
+  * Fixes #1261 - Additional fix for CannotSendRequest at startup
+  * Fixes #1247 - Update expire command to use Rule/Filter/Prefix
+    for LifecycleConfiguration
+  * Fixes #996 - Avoid crashing when setup.py test is called
+  * feat: add `--list-allow-unorderd` command-line switch
+  * feat: implement list objects allow-onordered option as a config
+  * Add notification commands
+  * Fixes #1009 - Fixes --continue behavior for the "get" command
+  * Ensure 404 exc content is filled even for object_info
+  * Fixes #1259 - Correct typo when retrieving response from IMDSv2
+  * Fixes #1259 - Fixes unicode issue with fixbucket
+  * Fixes #1261 - Always read a conn after a request to be able to
+    reuse it
+  * make IMDSv2 optional
+  * use IMDSv2 to retrieve instance metadata
+  * excepting/handling tcp connection refused error
+  * Update CI test.yml to run on PR
+  * treat 0 byte cache files as nonexistent
+  * fix os walk when excluding directories
+  * Take into account the AWS_STS_REGIONAL_ENDPOINTS
+  * List support of Python 3.9, 3.10
+  * fixes cloudfront invalidate retry
+
+-------------------------------------------------------------------
+Wed Jan 19 09:22:40 UTC 2022 - Robert Munteanu <rombert@apache.org>
+
+- spec cleanups:
+  * stop recording the file list, it is not needed
+  * remove unneeded %clean section
+
+-------------------------------------------------------------------
+Wed Jan 19 07:20:46 UTC 2022 - rombert@apache.org
+
+- Update to version 2.2.0:
+  * Update version to 2.2.0
+  * Fixes #1201 - Raise an explicit error when only env var AWS_ACCESS_KEY is set
+  * CI: Add python 3.10 to test matrix
+  * Fixed RestoreRequest XML namespace URL (#1203)
+  * Migrate CI tests to use github actions
+  * Fixes #1190 - Set properly PARTIAL exit code for object_get when needed
+  * Cleanup: Factor unicodise/deunicodise to be reused inside Config
+  * Fixes s3cmd#1197 - add custom header for s3cmd mb
+  * Add info about sync defaults
+
+-------------------------------------------------------------------
+Mon Jul  9 13:50:30 UTC 2018 - rjschwei@suse.com
+
+- Add missing dependency (boo#1100607)
+
+-------------------------------------------------------------------
+Fri Nov 10 17:29:36 UTC 2017 - alarrosa@suse.com
+
+- Update to 2.0.1:
+  - Support for Python 3 is now stable
+  - Fixed signature issues due to upper cases in hostname
+  - Improved support for Minio Azure gateway
+  - Added signurl_use_https option to use https prefix for signurl
+  - Fixed a lot of remaining issues and regressions for Python 3
+  - Fixed --configure option with Python 3
+  - Fixed non string cmdline parameters being ignored
+  - Windows support fixes
+  - Don't force anymore to have a / on last parameter for the "modify" command
+  - Removed the python3 support warning
+  - Detect and report error 403 in getpolicy for info command
+  - Added a specific error message when getting policy by non owner
+  - Many other bug fixes
+
+- Use python3 and drop some very old code from the spec file
+
+-------------------------------------------------------------------
+Wed Aug  9 11:52:40 UTC 2017 - alarrosa@suse.com
+
+- Update to 2.0.0:
+  - Added support for Python 3 (Shaform, Florent Viard)
+  - Added getlifecycle command (Daniel Gryniewicz)
+  - Added --cf-inval for invalidating multiple CF distributions (Joe Mifsud)
+  - Added --limit to "ls" and "la" commands to return the specified number of objects (Masashi Ozawa)
+  - Added --token-refresh and --no-token-refresh and get the access token from the environment (Marco Jakob)
+  - Added --restore-priority and --restore-days for S3 Glacier (Robert Palmer)
+  - Fixed requester pays header with HEAD requests (Christian Rodriguez)
+  - Don't allow mv/cp of multiple files to single file (Guy Gur-Ari)
+  - Generalize wildcard certificate forgiveness (Mark Titorenko)
+  - Multiple fixes for SSL connections and proxies
+  - Added support for HTTP 100-CONTINUE
+  - Fixes for s3-like servers
+  - Big cleanup and many unicode fixes
+  - Many other bug fixes
+
+-------------------------------------------------------------------
+Thu Mar 17 13:27:25 UTC 2016 - kmroz@suse.com
+
+- New upstream version (1.6.1):
+  - Added --host and --host-bucket
+  - Added --stats
+  - Fix for newer python 2.7.x SSL library updates
+  - Many other bug fixes
+
+-------------------------------------------------------------------
+Fri Oct 23 21:19:24 UTC 2015 - kmroz@suse.com
+
+- Initial commit of s3cmd (1.6.0).
+
diff --git a/s3cmd.obsinfo b/s3cmd.obsinfo
new file mode 100644
index 0000000..3e2a5f7
--- /dev/null
+++ b/s3cmd.obsinfo
@@ -0,0 +1,4 @@
+name: s3cmd
+version: 2.4.0
+mtime: 1702349123
+commit: 9d17075b77e933cf9d7916435c426d38ab5bca5e
diff --git a/s3cmd.spec b/s3cmd.spec
new file mode 100644
index 0000000..773fc27
--- /dev/null
+++ b/s3cmd.spec
@@ -0,0 +1,62 @@
+#
+# spec file for package s3cmd
+#
+# Copyright (c) 2025 SUSE LINUX GmbH, Nuernberg, Germany.
+#
+# 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 http://bugs.opensuse.org/
+#
+
+Name:           s3cmd
+Version:        2.4.0
+Release:        0
+License:        GPL-2.0
+Url:            http://s3tools.org/s3cmd
+Summary:        Command line tool for managing Amazon S3 and CloudFront services
+Group:          System/Management
+Source:         %{name}-%{version}.tar.gz
+BuildRequires:  python3-devel
+BuildRequires:  python3-setuptools
+BuildRequires:  python-rpm-macros
+Requires:       python3-python-dateutil
+
+# Use python-magic for SLES12_SP5
+%if 0%{?sle_version} == 120500 && !0%{?is_opensuse}
+Requires:       python-magic
+%else
+Requires:       python3-magic
+%endif
+
+BuildArch:      noarch
+
+%description
+S3cmd (`s3cmd`) is a free command line tool and client for uploading, retrieving
+and managing data in Amazon S3 and other cloud storage service providers that use
+the S3 protocol, such as Ceph, Google Cloud Storage or DreamHost DreamObjects. It is
+best suited for power users who are familiar with command line programs.
+
+%prep
+%setup -q
+
+%build
+export S3CMD_PACKAGING=1
+python3 setup.py build
+
+%install
+export S3CMD_PACKAGING=1
+python3 setup.py install --root=$RPM_BUILD_ROOT --prefix=%{_prefix}
+
+%files
+%{python3_sitelib}/*egg-info
+%{python3_sitelib}/S3/
+/usr/bin/%{name}
+
+%changelog