File go-bindata.spec of Package go-bindata

#
# spec file for package go-bindata
#
# Copyright (c) 2019 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/
#

# Make sure that the binary is not getting stripped.
%{go_nostrip}

Name:           go-bindata
Version:        1.0.0
Release:        0
Summary:        Embed binary data into a Go program
License:        CC0-1.0
Group:          Development/Languages/Other
Url:            https://github.com/containous/%{name}
Source:         %{name}.tar.gz
BuildRequires:  fdupes
BuildRequires:  git
BuildRequires:  go >= 1.11.1
BuildRequires:  golang-packaging 
BuildRequires:  golang(API) = 1.11
Requires(post): %fillup_prereq
%{go_provides}

%description
Go-bindata converts any file into manageable Go source code. Useful for embedding binary data into a go program. The file data is optionally gzip compressed before being converted to a raw byte slice.

It comes with a command line tool in the go-bindata sub directory. This tool offers a set of command line options, used to customize the output being generated.

%prep
%setup -q -n %{name}

%build
%{goprep} github.com/containous/go-bindata
%{gobuild} go-bindata

%install
%{goinstall}
%{gofilelist}

%files -f file.lst
%license LICENSE
%{_bindir}/go-bindata

%changelog

openSUSE Build Service is sponsored by