# Generated by go2rpm
%bcond_without check
# https://github.com/cosmos72/gomacro
%global goipath github.com/cosmos72/gomacro
Version: 2.7
%global commit 888963e3d6540132aa44d7c0f6e5cb2aba993731
%gometa
%global common_description %{expand:
Gomacro is an almost complete Go interpreter, implemented in pure Go. It offers
both an interactive REPL and a scripting mode, and does not require a Go
toolchain at runtime (except in one very specific case: import of a third party
package at runtime).}
%global golicenses LICENSE
%global godocs _example doc README.md TrickyGo.md
Name: %{goname}
Release: 6%{?dist}
Summary: Go interpreter and debugger with REPL, Eval, generics and Lisp-like macros
# Upstream license specification: MPL-2.0
License: MPLv2.0
URL: %{gourl}
Source0: %{gosource}
BuildRequires: golang(github.com/peterh/liner)
BuildRequires: golang(golang.org/x/sys/unix)
%package -n gomacro
Summary: Go interpreter and debugger with REPL, Eval, generics and Lisp-like macros
%description -n gomacro
%{common_description}
%description
%{common_description}
%gopkg
%prep
%goprep
%build
%gobuild -o %{gobuilddir}/bin/gomacro %{goipath}
%install
%gopkginstall
install -m 0755 -vd %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
%if %{with check}
%check
%gocheck -d jit
%endif
%files -n gomacro
%license LICENSE
%doc _example doc README.md TrickyGo.md
%{_bindir}/*
%gopkgfiles
%changelog
* Thu May 30 16:05:34 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 2.7-6.20190530git888963e
- Bump to commit 888963e3d6540132aa44d7c0f6e5cb2aba993731
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.7-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Thu Nov 15 2018 Robert-André Mauchin <zebob.m@gmail.com> - 2.7-4
- SPEC refresh
* Tue Oct 23 2018 Nicolas Mailhot <nim@fedoraproject.org> - 2.7-3
- redhat-rpm-config-123 triggers bugs in gosetup, remove it from Go spec files as it’s just an alias
- https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/RWD5YATAYAFWKIDZBB7EB6N5DAO4ZKFM/
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.7-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Sat Jun 09 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.7-1
- First package for Fedora