File oci-runtime-tools.spec of Package oci-runtime-tools

#
# spec file for package oci-runtime-tools
#
# Copyright (c) 2017 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 provider        github
%global provider_tld    com
%global project         opencontainers
%global repo            runtime-tools
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
%global import_path     %{provider_prefix}

Name:           oci-runtime-tools
Version:        0.2.0+r40
Release:        0
Summary:        Official tooling for OCI runtime specification
License:        Apache-2.0
Group:          Development/Tools/Other
Url:            https://%{provider_prefix}
Source0:        %{repo}-%{version}.tar.xz
Source1:        rpmlintrc
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  golang-packaging
BuildRequires:  xz
BuildRequires:  fdupes

%{go_nostrip}
%{go_provides}

%description
oci-runtime-tool is a collection of tools for working with the OCI runtime
specification, implementing both generation and validation of OCI runtime
bundles and runtimes.

%package runtimetest
Summary:        Official tooling for OCI runtime specification
Group:          Development/Tools/Other
AutoReqProv:    Off

%description runtimetest
runtimetest allows an OCI runtime to be tested against the runtime
specification.

%prep
%setup -q -n %{repo}-%{version}

%build
%goprep %{import_path}
%gobuild cmd/oci-runtime-tool
%gobuild cmd/runtimetest

%install
%goinstall
%gosrc
%gofilelist
%fdupes %{buildroot}

#check
# The only tests for this project are validation tests for a runtime, which it
# doesn't make sense to test any of it here.
#gotest %%{import_path}...

%files -f file.lst
%defattr(-,root,root,-)
%doc README.md LICENSE
%{_bindir}/oci-runtime-tool

%files runtimetest
%{_bindir}/runtimetest

%changelog
openSUSE Build Service is sponsored by