2018-12-11 10:52:45 +01:00
|
|
|
#
|
|
|
|
# spec file for package container-suseconnect
|
|
|
|
#
|
|
|
|
# Copyright (c) 2015 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/
|
|
|
|
#
|
|
|
|
|
2018-12-11 15:44:22 +01:00
|
|
|
%global project container-suseconnect
|
|
|
|
%global import_path github.com/SUSE/%{project}
|
|
|
|
%global zypp_path /usr/lib/zypp/plugins/services
|
|
|
|
|
|
|
|
Name: %{project}
|
2019-11-28 11:15:11 +01:00
|
|
|
Version: 2.2.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
|
2018-12-11 15:44:22 +01:00
|
|
|
Url: https://%{import_path}
|
|
|
|
Source0: %{project}-%{version}.tar.bz2
|
2019-01-16 12:28:20 +01:00
|
|
|
Source1: container-suseconnect-rpmlintrc
|
2018-12-11 15:44:22 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2018-12-11 10:52:45 +01:00
|
|
|
Requires: libzypp > 9.34
|
2018-12-11 15:44:22 +01:00
|
|
|
|
2018-12-11 10:52:45 +01:00
|
|
|
BuildRequires: libzypp > 9.34
|
2018-12-11 15:44:22 +01:00
|
|
|
BuildRequires: golang-packaging
|
|
|
|
|
|
|
|
%go_nostrip
|
|
|
|
%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
|
2018-12-11 15:44:22 +01:00
|
|
|
%setup -q -n %{project}-%{version}
|
2018-12-11 10:52:45 +01:00
|
|
|
|
|
|
|
%build
|
2018-12-11 15:44:22 +01:00
|
|
|
export GO111MODULE=off
|
|
|
|
%goprep %{import_path}
|
|
|
|
%gobuild cmd/container-suseconnect
|
2018-12-11 10:52:45 +01:00
|
|
|
|
|
|
|
%install
|
2018-12-11 15:44:22 +01:00
|
|
|
%goinstall
|
|
|
|
%gosrc
|
|
|
|
%gofilelist
|
|
|
|
%__mkdir_p %{buildroot}/%{zypp_path}
|
|
|
|
%__ln_s %{_bindir}/%{project} %{buildroot}/%{zypp_path}/%{project}-zypp
|
2018-12-11 10:52:45 +01:00
|
|
|
|
2018-12-11 15:44:22 +01:00
|
|
|
%files -f file.lst
|
|
|
|
%defattr(-,root,root,-)
|
2018-12-11 10:52:45 +01:00
|
|
|
%doc README.md LICENSE
|
2018-12-11 15:44:22 +01:00
|
|
|
%{_bindir}/%{project}
|
|
|
|
%{zypp_path}/%{project}-zypp
|
2018-12-11 10:52:45 +01:00
|
|
|
|
2018-12-11 15:44:22 +01:00
|
|
|
%changelog
|