# Generated by go2rpm %bcond_without check # https://github.com/golang/leveldb %global goipath github.com/golang/leveldb %global commit 259d9253d71996b7778a3efb4144fe4892342b18 %gometa %global common_description %{expand: The LevelDB key-value database in the Go programming language.} %global golicenses LICENSE %global godocs AUTHORS CONTRIBUTORS README README.md Name: %{goname} Version: 0 Release: 0.1%{?dist} Summary: LevelDB key-value database in the Go programming language # Upstream license specification: BSD-3-Clause License: BSD URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/golang/snappy) %description %{common_description} %gopkg %prep %goprep %build for cmd in cmd/* ; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %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 %doc AUTHORS CONTRIBUTORS README README.md %{_bindir}/* %gopkgfiles %changelog * Wed May 15 22:04:30 CEST 2019 Robert-André Mauchin - 0-0.1.20190515git259d925 - Initial package