File go.rice.spec of Package go.rice

#
# spec file for package cfssl
#
# Copyright (c) 2018 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:           go.rice
Version:        1.0.2
Release:        0
Summary:        A Go package that makes working with resources easy
License:        BSD-2-Clause
Group:          Productivity/Networking/Security
Url:            https://github.com/GeertJohan/go.rice
Source:         %{name}-%{version}.tar.gz
Source1:        vendor.tar.xz
BuildRequires:  golang-packaging
BuildRequires:  golang(API) >= 1.17
%go_nostrip

%description
go.rice a Go package that makes working with resources such as html,js,css,images,templates, etc very easy.

%prep
%autosetup -p1 -n %{name}-%{version} -a 1

%build
pushd rice
ln -s ../vendor .
go build -mod=vendor -buildmode=pie
popd

%install
install -D -m 0755 rice/rice %{buildroot}%{_bindir}/rice

%files
%doc README.md
%license LICENSE
%{_bindir}/rice
openSUSE Build Service is sponsored by