2021-09-27 17:23:32 +03:00
|
|
|
%define debug %nil
|
|
|
|
%define debug_package %nil
|
|
|
|
|
|
|
|
Name: gop
|
2025-02-22 08:57:37 +00:00
|
|
|
Version: 1.3.1
|
2021-09-27 17:23:32 +03:00
|
|
|
Release: 1
|
|
|
|
Summary: GoPlus
|
|
|
|
URL: https://goplus.org
|
|
|
|
Source0: https://github.com/goplus/gop/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
|
|
License: ASL 2.0
|
|
|
|
Group: Development/Other
|
|
|
|
BuildRequires: go
|
|
|
|
BuildRequires: git-core
|
|
|
|
BuildRequires: upx
|
|
|
|
|
|
|
|
%description
|
|
|
|
GoPlus - The Go+ language for engineering, STEM education,
|
|
|
|
and data science
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2025-02-22 08:57:37 +00:00
|
|
|
export GOPROXY=https://proxy.golang.org,direct
|
2021-09-27 17:23:32 +03:00
|
|
|
pushd cmd/gop
|
|
|
|
go build
|
|
|
|
upx %{name}
|
|
|
|
popd
|
|
|
|
|
|
|
|
%install
|
|
|
|
install -Dm0755 cmd/gop/%{name} %{buildroot}%{_bindir}/%{name}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc README.md LICENSE
|
|
|
|
%{_bindir}/%{name}
|