File container-suseconnect.spec of Package container-suseconnect.9276

#
# 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/
#

Name:           container-suseconnect
Version:        1.1.0
Release:        0
License:        Apache-2.0
Summary:        Provides access to repositories inside containers
Url:            https://github.com/SUSE/container-suseconnect
Group:          Development/Languages/Other
Source0:        %{name}-%{version}.tar.bz2
BuildRequires:  go >= 1.4
Requires:       libzypp > 9.34
BuildRequires:  libzypp > 9.34
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
container-suseconnect gives access to package repositories inside containers
using the host machine entitlements.

%prep
%setup -q

%build
go build

%check
go test

%install
%{__mkdir_p} %{buildroot}/usr/lib/zypp/plugins/services
%{__install} -m755 container-suseconnect-%{version} %{buildroot}/usr/lib/zypp/plugins/services/container-suseconnect

%files
%defattr(-,root,root)
%doc README.md LICENSE
/usr/lib/zypp/plugins/services/container-suseconnect


openSUSE Build Service is sponsored by