Blob Blame History Raw
# Generated by go2rpm 1.8.1
%bcond_without check

# https://github.com/coreos/go-semver
%global goipath         github.com/coreos/go-semver
Version:                0.3.0
%global commit          167f5da54033088a1d6b3049504828fa2ff8b116

%gometa

%global common_description %{expand:
Go-semver is a semantic versioning library for Go. It lets you parse and compare
two semantic version strings.}

%global golicenses      LICENSE NOTICE
%global godocs          README.md code-of-conduct.md

Name:           %{goname}
Release:        %autorelease
Summary:        Semver library in Go

License:        Apache-2.0
URL:            %{gourl}
Source:         %{gosource}

%description %{common_description}

%gopkg

%prep
%goprep

%generate_buildrequires
%go_generate_buildrequires

%build
%gobuild -o %{gobuilddir}/bin/go-semver %{goipath}

%install
%gopkginstall
install -m 0755 -vd                     %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/

%if %{with check}
%check
%gocheck
%endif

%files
%license LICENSE NOTICE
%doc README.md code-of-conduct.md
%{_bindir}/go-semver

%gopkgfiles

%changelog
%autochangelog