commit 24fa0e380210fee22c001789c772cdbd0cde47ec4063cb152120f25ed7074bae Author: Adrian Schröter Date: Fri May 3 11:49:36 2024 +0200 Sync from SUSE:SLFO:Main container-suseconnect revision 59977527211ec07ce3a1cd2df09c2be2 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/_service b/_service new file mode 100644 index 0000000..24d8db7 --- /dev/null +++ b/_service @@ -0,0 +1,18 @@ + + + https://github.com/SUSE/container-suseconnect.git + git + container-suseconnect + .git + 2.4.0 + v2.4.0 + + + *.tar + zst + + + + zst + + diff --git a/container-suseconnect-2.4.0.tar.zst b/container-suseconnect-2.4.0.tar.zst new file mode 100644 index 0000000..39a2236 --- /dev/null +++ b/container-suseconnect-2.4.0.tar.zst @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:da996c93ec6ebe32dcb8e3ab13e05cc12f39bfe521d757f3ef9aeeeca4c83bb6 +size 40070 diff --git a/container-suseconnect-rpmlintrc b/container-suseconnect-rpmlintrc new file mode 100644 index 0000000..faadecf --- /dev/null +++ b/container-suseconnect-rpmlintrc @@ -0,0 +1 @@ +addFilter("no-manual-page-for-binary") \ No newline at end of file diff --git a/container-suseconnect.changes b/container-suseconnect.changes new file mode 100644 index 0000000..7218a33 --- /dev/null +++ b/container-suseconnect.changes @@ -0,0 +1,142 @@ +------------------------------------------------------------------- +Thu Oct 5 12:52:42 UTC 2023 - Dirk Müller + +- spec file cleanups + +------------------------------------------------------------------- +Tue Dec 6 14:04:56 UTC 2022 - Dirk Müller + +- update to 2.4.0 (jsc#PED-1710): + * Fix docker build example for non-SLE hosts + * Minor fixes to --help and README + * Improve documentation when building with podman on non-SLE host + * Add flag --log-credentials-errors + * Add GitHub actions + * Remove vendor/ dir + * Cleanup tests + * Update capture to the 1.0.0 release + * Bump cli to 2.34.4 + * Update cli to 2.23.5 + * Add dependabot + * Use URL.Redacted() to avoid security scanner warning + * Regcode fix + +------------------------------------------------------------------- +Sat Mar 27 08:18:08 UTC 2021 - Dirk Müller + +- strip binaries (removes 4MB/25% of the uncompressed size) (bsc#1186827) + +------------------------------------------------------------------- +Tue Jun 30 14:14:49 UTC 2020 - Ralf Haferkamp + +- Update to 2.3.0 (bsc#1173375) + - Introduce "containerbuild-regionsrv" support and add + "susecloud" zypper url-resolver plugin to allow building SLE + containers on public cloud on-demand instances + - Fix usage with RMT when repositories require authentication +- remove "%gosrc" call to avoid including all the go sources into + the main package. + +------------------------------------------------------------------- +Thu Nov 28 10:01:56 UTC 2019 - Ralf Haferkamp + +- Update to 2.2.0 (bsc#1157960) + - Update go version and dependencies + - Fix usage with RMT and SMT + - parse the /etc/products.d/*.prod files + +------------------------------------------------------------------- +Wed Jun 19 13:45:28 UTC 2019 - Sascha Grunert + +- Update to 2.1.0 (bsc#1138731, bsc#1154247) + - Fix function comments based on best practices from Effective Go + - Interacting with SCC behind proxy and SMT + +------------------------------------------------------------------- +Tue Dec 11 11:30:59 UTC 2018 - sgrunert@suse.com + +- Update to 2.0.0 (bsc#1119496) + - Add command line interface + - Add `ADDITIONAL_MODULES` capability to enable further extension + modules during image build and run + - Add documentation about how to build docker images on non SLE + distributions + - Improve documentation to clarify how container-suseconnect + works in a Dockerfile + - Improve error handling on non SLE hosts + - Fix bug which makes container-suseconnect work on SLE15 based + distributions +- Update build to use latest golang-packaging +- Added container-suseconnect-rpmlintrc + +------------------------------------------------------------------- +Thu Mar 1 14:27:26 UTC 2018 - jmassaguerpla@suse.com + +- Remove gcc since the latest go versions already support s390x, ppc64le + Remove 0001-Added-TLS-root-CA-certificates-for-SLE-11.patch: this + was needed for gcc builds. (fix bsc#1083189) + +------------------------------------------------------------------- +Wed Jul 27 14:29:18 UTC 2016 - cbrauner@suse.de + +- add aarch64 to supported gc architectures + +------------------------------------------------------------------- +Wed Nov 11 14:26:23 UTC 2015 - fcastelli@suse.com + +- Update to version 1.1.0: + - Improve logging + +------------------------------------------------------------------- +Wed Nov 11 13:37:48 UTC 2015 - fcastelli@suse.com + +- Added 0001-Added-TLS-root-CA-certificates-for-SLE-11.patch to handle + SLE11 certificates on non-x86 architectures + + work-around for bsc#953831 + +------------------------------------------------------------------- +Mon Jul 20 07:51:19 UTC 2015 - fcastelli@suse.com + +- Build using gcc on platforms where gc compiler is not available + +------------------------------------------------------------------- +Thu Jun 18 16:49:20 UTC 2015 - jmassaguerpla@suse.com + +- Make SUSEConnect configuration file optional + Update to v1.0.1 + +------------------------------------------------------------------- +Tue Jun 16 16:08:09 UTC 2015 - jmassaguerpla@suse.com + +- Update to v1.0.0 + +------------------------------------------------------------------- +Thu Jun 11 09:56:16 UTC 2015 - fcastelli@suse.com + +- Update to latest version from git + +------------------------------------------------------------------- +Thu Jun 4 12:34:14 UTC 2015 - fcastelli@suse.com + +- Fixed building + +------------------------------------------------------------------- +Thu Jun 4 08:20:15 UTC 2015 - fcastelli@suse.com + +- Update to latest version of container-suseconnect + +------------------------------------------------------------------- +Wed Jun 3 12:04:23 UTC 2015 - fcastelli@suse.com + +- Fix libzypp requirement, it must be a runtime one + +------------------------------------------------------------------- +Wed Jun 3 10:05:17 UTC 2015 - fcastelli@suse.com + +- Relax libzypp requirement to build the package also on SLE11SP3 + +------------------------------------------------------------------- +Fri May 29 12:33:03 UTC 2015 - dmacvicar@suse.de + +- initial package diff --git a/container-suseconnect.spec b/container-suseconnect.spec new file mode 100644 index 0000000..b614dd5 --- /dev/null +++ b/container-suseconnect.spec @@ -0,0 +1,64 @@ +# +# spec file +# +# Copyright (c) 2023 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/ +# + + +%global project container-suseconnect +%global import_path github.com/SUSE/%{project} +%global zypp_path %{_prefix}/lib/zypp/plugins +%global zypp_services %{zypp_path}/services +%global zypp_urlresolver %{zypp_path}/urlresolver +Name: %{project} +Version: 2.4.0 +Release: 0 +Summary: Provides access to repositories inside containers +License: Apache-2.0 +Group: Development/Languages/Other +URL: https://%{import_path} +Source0: %{project}-%{version}.tar.zst +Source1: vendor.tar.zst +Source2: container-suseconnect-rpmlintrc +BuildRequires: golang-packaging +BuildRequires: libzypp > 9.34 +BuildRequires: zstd +BuildRequires: golang(API) = 1.21 +Requires: libzypp > 9.34 + +%description +container-suseconnect gives access to package repositories inside containers +using the host machine entitlements. + +%prep +%setup -q -n %{project}-%{version} -a1 + +%build +go build -o %{project} -mod=vendor -buildmode=pie -trimpath -ldflags="-s -w" ./cmd/container-suseconnect + +%install +install -D -m 755 %{project} %{buildroot}/%{_bindir}/%{project} +mkdir -p %{buildroot}/%{zypp_services} +mkdir -p %{buildroot}/%{zypp_urlresolver} +ln -s %{_bindir}/%{project} %{buildroot}/%{zypp_services}/%{project}-zypp +ln -s %{_bindir}/%{project} %{buildroot}/%{zypp_urlresolver}/susecloud + +%files +%doc README.md +%license LICENSE +%{_bindir}/%{project} +%{zypp_services}/%{project}-zypp +%{zypp_urlresolver}/susecloud + +%changelog diff --git a/vendor.tar.zst b/vendor.tar.zst new file mode 100644 index 0000000..572cff4 --- /dev/null +++ b/vendor.tar.zst @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6da8271aca997942ec28e9593157114980a640d0bf646b0e620b27c0e461957a +size 115069