Thomas Schmidt 2022-12-06 09:44:58 +00:00 committed by Git OBS Bridge
parent 822cb77d01
commit a40189e00a

View File

@ -1,7 +1,7 @@
# #
# spec file for package suseconnect-ng # spec file for package suseconnect-ng
# #
# Copyright (c) 2022 SUSE LLC # Copyright (c) 2021 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -15,7 +15,6 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
%global provider_prefix github.com/SUSE/connect-ng %global provider_prefix github.com/SUSE/connect-ng
%global import_path %{provider_prefix} %global import_path %{provider_prefix}
@ -23,7 +22,7 @@
%bcond_with hwinfo %bcond_with hwinfo
Name: suseconnect-ng Name: suseconnect-ng
Version: 1.0.0~git0.faee7c196dc1 Version: 0.0.3~git112.d4980ea
Release: 0 Release: 0
URL: https://github.com/SUSE/connect-ng URL: https://github.com/SUSE/connect-ng
License: LGPL-2.1-or-later License: LGPL-2.1-or-later
@ -31,14 +30,17 @@ Summary: Utility to register a system with the SUSE Customer Center
Group: System/Management Group: System/Management
Source: connect-ng-%{version}.tar.xz Source: connect-ng-%{version}.tar.xz
Source1: %name-rpmlintrc Source1: %name-rpmlintrc
BuildRequires: go >= 1.16
BuildRequires: golang-packaging BuildRequires: golang-packaging
BuildRequires: ruby-devel BuildRequires: go >= 1.16
BuildRequires: zypper BuildRequires: zypper
BuildRequires: ruby-devel
%if %{with hwinfo} %if %{with hwinfo}
%global test_hwinfo_args -test-hwinfo %global test_hwinfo_args -test-hwinfo
ExcludeArch: %ix86 s390 ppc64
# packages required only for hwinfo tests # packages required only for hwinfo tests
%ifarch %ix86 ia64 x86_64 %arm aarch64 %ifarch ia64 x86_64 %arm aarch64
BuildRequires: dmidecode BuildRequires: dmidecode
%endif %endif
%ifarch s390x %ifarch s390x
@ -47,6 +49,7 @@ BuildRequires: s390-tools
BuildRequires: systemd BuildRequires: systemd
%endif %endif
Obsoletes: SUSEConnect < 1.0.0 Obsoletes: SUSEConnect < 1.0.0
Provides: SUSEConnect = 1.0.0 Provides: SUSEConnect = 1.0.0
Obsoletes: zypper-migration-plugin < 0.99 Obsoletes: zypper-migration-plugin < 0.99
@ -60,7 +63,7 @@ Requires: ca-certificates-mozilla
%endif %endif
Requires: coreutils Requires: coreutils
# ExclusiveArch from this package # ExclusiveArch from this package
%ifarch %ix86 ia64 x86_64 %arm aarch64 %ifarch ia64 x86_64 %arm aarch64
Requires: dmidecode Requires: dmidecode
%endif %endif
# ExclusiveArch from this package # ExclusiveArch from this package
@ -69,10 +72,9 @@ Requires: s390-tools
%endif %endif
Requires: zypper Requires: zypper
# lscpu is only used on those # lscpu is only used on those
%ifarch x86_64 aarch64 %ifarch aarch64
Requires: util-linux Requires: util-linux
%endif %endif
ExcludeArch: %ix86 s390 ppc64
Recommends: systemd Recommends: systemd
%description %description
@ -90,7 +92,6 @@ Summary: C interface to suseconnect-ng
Group: System/Management Group: System/Management
# the CLI is not used by libsuseconnect but it has the same dependencies and it's easier to keep one list above # the CLI is not used by libsuseconnect but it has the same dependencies and it's easier to keep one list above
Requires: suseconnect-ng Requires: suseconnect-ng
%description -n libsuseconnect %description -n libsuseconnect
This package contains library which provides C interface to selected This package contains library which provides C interface to selected
suseconnect-ng functions. suseconnect-ng functions.
@ -99,7 +100,6 @@ suseconnect-ng functions.
Summary: Ruby bindings for libsuseconnect library Summary: Ruby bindings for libsuseconnect library
Group: System/Management Group: System/Management
Requires: libsuseconnect Requires: libsuseconnect
%description -n suseconnect-ruby-bindings %description -n suseconnect-ruby-bindings
This package provides bindings needed to use libsuseconnect from Ruby scripts. This package provides bindings needed to use libsuseconnect from Ruby scripts.
@ -147,7 +147,7 @@ rm -rf %buildroot/usr/share/go
# in pre blocks the old version is still installed. This way we can detect # in pre blocks the old version is still installed. This way we can detect
# if --keepalive was already present before # if --keepalive was already present before
kainfo=0 kainfo=0
helptext=$(SUSEConnect --help) helptext=$(test -x "$(type -p SUSEConnect)" && SUSEConnect --help)
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
echo "$helptext" | grep -q keepalive echo "$helptext" | grep -q keepalive
kainfo=$? kainfo=$?
@ -213,5 +213,3 @@ make -C %_builddir/go/src/%import_path gofmt
%files -n suseconnect-ruby-bindings %files -n suseconnect-ruby-bindings
%doc yast/README.md %doc yast/README.md
%_libdir/ruby/vendor_ruby/%rb_ver/suse %_libdir/ruby/vendor_ruby/%rb_ver/suse
%changelog