Accepting request 993339 from systemsmanagement:SCC
- Update to version 0.0.9~git5.75890b6: * Don't run keepalive on reboot * Use system-wide proxy settings (bsc#1200994) * Add customer information about keepalive calls * Add timer for SUSEConnect --keepalive (bsc#1196076) * Add --keepalive to manpage * Added support for the System-Token header * Add Keepalive command line option * Print nested zypper errors (bsc#1200803) * Fix migration json error with SMT (bsc#1198625) * Add option to run local scc tests * Switch to jenkins-hosted credentials * Fix "VCS stamping" problem * Add missing import * Remove redundant code + add comment OBS-URL: https://build.opensuse.org/request/show/993339 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/suseconnect-ng?expand=0&rev=10
This commit is contained in:
commit
cf8f0bb7bb
@ -1,4 +1,4 @@
|
||||
<servicedata>
|
||||
<service name="tar_scm">
|
||||
<param name="url">https://github.com/SUSE/connect-ng.git</param>
|
||||
<param name="changesrevision">7497adf2078f1d8f9eb51ef90ec61f7bfb46c848</param></service></servicedata>
|
||||
<param name="changesrevision">75890b6d6cb41ce623cec1fd77f3c899e2625f88</param></service></servicedata>
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:727aae3f47a413796adde705174ca4531b28d4e591c68ccd7fd7a971f3616991
|
||||
size 777336
|
3
connect-ng-0.0.9~git5.75890b6.tar.xz
Normal file
3
connect-ng-0.0.9~git5.75890b6.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:dbbc41a68503c1d8047e823599912eda262dd8851cd4c2c2b5da5dedf42b81b4
|
||||
size 831728
|
@ -1,3 +1,22 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 05 13:33:05 UTC 2022 - jan.suse@zerebecki.de
|
||||
|
||||
- Update to version 0.0.9~git5.75890b6:
|
||||
* Don't run keepalive on reboot
|
||||
* Use system-wide proxy settings (bsc#1200994)
|
||||
* Add customer information about keepalive calls
|
||||
* Add timer for SUSEConnect --keepalive (bsc#1196076)
|
||||
* Add --keepalive to manpage
|
||||
* Added support for the System-Token header
|
||||
* Add Keepalive command line option
|
||||
* Print nested zypper errors (bsc#1200803)
|
||||
* Fix migration json error with SMT (bsc#1198625)
|
||||
* Add option to run local scc tests
|
||||
* Switch to jenkins-hosted credentials
|
||||
* Fix "VCS stamping" problem
|
||||
* Add missing import
|
||||
* Remove redundant code + add comment
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 20 08:18:01 UTC 2022 - jan.suse@zerebecki.de
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
||||
%global test_hwinfo 0
|
||||
|
||||
Name: suseconnect-ng
|
||||
Version: 0.0.8~git2.368ea44
|
||||
Version: 0.0.9~git5.75890b6
|
||||
Release: 0
|
||||
URL: https://github.com/SUSE/connect-ng
|
||||
License: LGPL-2.1-or-later
|
||||
@ -31,7 +31,6 @@ Summary: Utility to register a system with the SUSE Customer Center
|
||||
Group: System/Management
|
||||
Source: connect-ng-%{version}.tar.xz
|
||||
Source1: %name-rpmlintrc
|
||||
BuildRequires: git
|
||||
BuildRequires: go >= 1.16
|
||||
BuildRequires: golang-packaging
|
||||
BuildRequires: ruby-devel
|
||||
@ -106,6 +105,8 @@ This package provides bindings needed to use libsuseconnect from Ruby scripts.
|
||||
|
||||
%prep
|
||||
%setup -q -n connect-ng-%{version}
|
||||
# keep git metadata but don't use it for "VCS stamping"
|
||||
mv .git .git.bak
|
||||
|
||||
%build
|
||||
find %_builddir/..
|
||||
@ -133,10 +134,62 @@ install -D -m 644 %_builddir/go/src/%import_path/man/SUSEConnect.8 %buildroot/%_
|
||||
install -D -m 644 %_builddir/go/src/%import_path/man/zypper-migration.8 %buildroot/%_mandir/man8/zypper-migration.8
|
||||
install -D -m 644 %_builddir/go/src/%import_path/man/zypper-search-packages.8 %buildroot/%_mandir/man8/zypper-search-packages.8
|
||||
|
||||
# Install the SUSEConnect --keepalive timer and service.
|
||||
install -D -m 644 %_builddir/go/src/%import_path/suseconnect-keepalive.timer %buildroot/%_unitdir/suseconnect-keepalive.timer
|
||||
install -D -m 644 %_builddir/go/src/%import_path/suseconnect-keepalive.service %buildroot/%_unitdir/suseconnect-keepalive.service
|
||||
ln -sf service %buildroot/%_sbindir/rcsuseconnect-keepalive
|
||||
|
||||
find %_builddir/..
|
||||
# we currently do not ship the source for any go module
|
||||
rm -rf %buildroot/usr/share/go
|
||||
|
||||
%pre
|
||||
%service_add_pre suseconnect-keepalive.service suseconnect-keepalive.timer
|
||||
|
||||
# in pre blocks the old version is still installed. This way we can detect
|
||||
# if --keepalive was already present before
|
||||
kainfo=0
|
||||
helptext=$(SUSEConnect --help)
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "$helptext" | grep -q keepalive
|
||||
kainfo=$?
|
||||
fi
|
||||
|
||||
if [ $kainfo -ne 0 ]; then
|
||||
cat << EOF
|
||||
Empowering you with enriched system visibility in the SUSE Customer Center
|
||||
|
||||
SUSE is committed to helping provide better insights into the consumption of
|
||||
SUSE subscriptions regardless of where they are running; physical or virtual,
|
||||
on-prem or in the cloud.
|
||||
|
||||
SUSE has been working on several improvements to the SUSE Customer Center (SCC),
|
||||
RMT, and SUSE Manager to provide a clearer picture of your system landscape:
|
||||
|
||||
- SUSE Manager v4.1+ now sends system information to SCC.
|
||||
- SCC now captures which products are activated on systems that sit behind RMT
|
||||
or SMT.
|
||||
- This update will enable your system to "ping" SCC/RMT daily to
|
||||
confirm the system's active status. This will help you identify or filter out
|
||||
systems in SCC that are no longer running or decommissioned. As always, the
|
||||
choice is yours, you can disable the daily ping by disabling the
|
||||
suseconnect-keepalive systemd timer.
|
||||
|
||||
We will continue improving our products to make it easier for you to view and
|
||||
manage your subscription consumption. As always, we'd love to hear your feedback
|
||||
about these improvements and any ideas you might have.
|
||||
EOF
|
||||
fi
|
||||
|
||||
%post
|
||||
%service_add_post suseconnect-keepalive.service suseconnect-keepalive.timer
|
||||
|
||||
%preun
|
||||
%service_del_preun suseconnect-keepalive.service suseconnect-keepalive.timer
|
||||
|
||||
%postun
|
||||
%service_del_postun suseconnect-keepalive.service suseconnect-keepalive.timer
|
||||
|
||||
%check
|
||||
%gotest -v %import_path/internal/connect %{?test_hwinfo_args}
|
||||
%gotest -v %import_path/suseconnect
|
||||
@ -148,9 +201,12 @@ make -C %_builddir/go/src/%import_path gofmt
|
||||
%_bindir/suseconnect
|
||||
%_bindir/SUSEConnect
|
||||
%_sbindir/SUSEConnect
|
||||
%_sbindir/rcsuseconnect-keepalive
|
||||
/usr/lib/zypper/commands
|
||||
%_mandir/man8/*
|
||||
%_mandir/man5/*
|
||||
%_unitdir/suseconnect-keepalive.service
|
||||
%_unitdir/suseconnect-keepalive.timer
|
||||
|
||||
%files -n libsuseconnect
|
||||
%license LICENSE LICENSE.LGPL
|
||||
|
Loading…
x
Reference in New Issue
Block a user