2018-12-11 10:52:45 +01:00
|
|
|
#
|
|
|
|
# spec file for package container-suseconnect
|
|
|
|
#
|
2021-03-27 09:19:27 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2018-12-11 10:52:45 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2021-03-27 09:19:27 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-12-11 10:52:45 +01:00
|
|
|
#
|
|
|
|
|
2021-03-27 09:19:27 +01:00
|
|
|
|
2018-12-11 15:44:22 +01:00
|
|
|
%global project container-suseconnect
|
|
|
|
%global import_path github.com/SUSE/%{project}
|
2021-03-27 09:19:27 +01:00
|
|
|
%global zypp_path %{_prefix}/lib/zypp/plugins
|
2020-07-01 11:57:32 +02:00
|
|
|
%global zypp_services %{zypp_path}/services
|
|
|
|
%global zypp_urlresolver %{zypp_path}/urlresolver
|
2018-12-11 15:44:22 +01:00
|
|
|
Name: %{project}
|
2022-12-06 15:05:41 +01:00
|
|
|
Version: 2.4.0
|
2018-12-11 10:52:45 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Provides access to repositories inside containers
|
2018-12-11 15:44:22 +01:00
|
|
|
License: Apache-2.0
|
2018-12-11 10:52:45 +01:00
|
|
|
Group: Development/Languages/Other
|
2021-03-27 09:19:27 +01:00
|
|
|
URL: https://%{import_path}
|
2022-12-06 15:05:41 +01:00
|
|
|
Source0: %{project}-%{version}.tar.zst
|
|
|
|
Source1: vendor.tar.zst
|
|
|
|
Source2: container-suseconnect-rpmlintrc
|
2018-12-11 15:44:22 +01:00
|
|
|
BuildRequires: golang-packaging
|
2022-12-06 15:05:41 +01:00
|
|
|
BuildRequires: zstd
|
2021-03-27 09:19:27 +01:00
|
|
|
BuildRequires: libzypp > 9.34
|
|
|
|
Requires: libzypp > 9.34
|
|
|
|
%{go_provides}
|
|
|
|
%{go_exclusivearch}
|
2018-12-11 10:52:45 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
container-suseconnect gives access to package repositories inside containers
|
|
|
|
using the host machine entitlements.
|
|
|
|
|
|
|
|
%prep
|
2022-12-06 15:05:41 +01:00
|
|
|
%setup -q -n %{project}-%{version} -a1
|
2018-12-11 10:52:45 +01:00
|
|
|
|
|
|
|
%build
|
2021-03-27 09:19:27 +01:00
|
|
|
%{goprep} %{import_path}
|
|
|
|
%{gobuild} cmd/container-suseconnect
|
2018-12-11 10:52:45 +01:00
|
|
|
|
|
|
|
%install
|
2021-03-27 09:19:27 +01:00
|
|
|
%{goinstall}
|
|
|
|
%{gofilelist}
|
|
|
|
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
|
2018-12-11 10:52:45 +01:00
|
|
|
|
2018-12-11 15:44:22 +01:00
|
|
|
%files -f file.lst
|
2020-07-01 11:57:32 +02:00
|
|
|
%doc README.md
|
|
|
|
%license LICENSE
|
2018-12-11 15:44:22 +01:00
|
|
|
%{_bindir}/%{project}
|
2020-07-01 11:57:32 +02:00
|
|
|
%{zypp_services}/%{project}-zypp
|
|
|
|
%{zypp_urlresolver}/susecloud
|
2018-12-11 10:52:45 +01:00
|
|
|
|
2018-12-11 15:44:22 +01:00
|
|
|
%changelog
|