container-suseconnect/container-suseconnect.spec
Sascha Grunert c05b10f826 Accepting request 751554 from home:rhafer:branches:Virtualization:containers
- 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

- Update to 2.1.0 (bsc#1138731, bsc#1154247)

OBS-URL: https://build.opensuse.org/request/show/751554
OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/container-suseconnect?expand=0&rev=6
2019-11-28 10:15:11 +00:00

67 lines
1.9 KiB
RPMSpec

#
# 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/
#
%global project container-suseconnect
%global import_path github.com/SUSE/%{project}
%global zypp_path /usr/lib/zypp/plugins/services
Name: %{project}
Version: 2.2.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.bz2
Source1: container-suseconnect-rpmlintrc
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: libzypp > 9.34
BuildRequires: libzypp > 9.34
BuildRequires: golang-packaging
%go_nostrip
%go_provides
%go_exclusivearch
%description
container-suseconnect gives access to package repositories inside containers
using the host machine entitlements.
%prep
%setup -q -n %{project}-%{version}
%build
export GO111MODULE=off
%goprep %{import_path}
%gobuild cmd/container-suseconnect
%install
%goinstall
%gosrc
%gofilelist
%__mkdir_p %{buildroot}/%{zypp_path}
%__ln_s %{_bindir}/%{project} %{buildroot}/%{zypp_path}/%{project}-zypp
%files -f file.lst
%defattr(-,root,root,-)
%doc README.md LICENSE
%{_bindir}/%{project}
%{zypp_path}/%{project}-zypp
%changelog