# Generated by go2rpm %bcond_without check # https://github.com/nats-io/gnatsd %global goipath github.com/nats-io/gnatsd Version: 2.0.0 %global tag v2.0.0-RC8 %global distprefix %{nil} %global forgesetupargs -n nats-server-2.0.0-RC8 %global topdir nats-server-2.0.0-RC8 %global extractdir nats-server-2.0.0-RC8 %gometa %global goaltipaths github.com/nats-io/nats-server %global common_description %{expand: A High Performance NATS Server written in Go and hosted by the Cloud Native Computing Foundation (CNCF).} %global golicenses LICENSE %global godocs CODE-OF-CONDUCT.md GOVERNANCE.md MAINTAINERS.md\\\ ROADMAP.md TODO.md README.md Name: %{goname} Release: 1.rc8%{?dist} Summary: High-Performance server for NATS, the cloud native messaging system # Upstream license specification: Apache-2.0 License: ASL 2.0 URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/nats-io/jwt) BuildRequires: golang(github.com/nats-io/nkeys) BuildRequires: golang(golang.org/x/crypto/bcrypt) %if %{with check} # Tests BuildRequires: golang(github.com/nats-io/go-nats) BuildRequires: golang(github.com/nats-io/nuid) %endif %description %{common_description} %gopkg %prep %goprep %build %gobuild -o %{gobuilddir}/bin/gnatsd %{goipath} %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check # logger: needs access to syslog # server, test: need network %gocheck -d logger -d server -d server/pse -d test %endif %files %license LICENSE %doc CODE-OF-CONDUCT.md GOVERNANCE.md MAINTAINERS.md ROADMAP.md TODO.md %doc README.md %{_bindir}/* %gopkgfiles %changelog * Tue May 14 00:55:18 CEST 2019 Robert-André Mauchin - 2.0.0-1.rc8 - Initial package