File elvish.spec of Package elvish

#
# spec file for package elvish
#
# Copyright (c) 2022 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


Name:           elvish
Version:        0.18.0
Release:        0
Summary:        Friendly and Interactive Shell in Go
License:        BSD-2-Clause
Group:          System/Shells
URL:            https://github.com/elves/elvish
Source:         %{name}-%{version}.tar.gz
Source1:        vendor.tar.gz
Patch:          %{name}-multi-dots.patch
BuildRequires:  fdupes
BuildRequires:  go

%description
Elvish is a friendly interactive shell and an expressive programming language.

%prep
%setup -q -a 1
%patch -p1

%build
go build \
   -buildmode=pie \
   -mod=vendor \
   -o %{name} cmd/elvish/main.go

%install
install -Dm755 %{name} -t %{buildroot}%{_bindir}

%files
%{_bindir}/%{name}
%license LICENSE

%changelog
openSUSE Build Service is sponsored by