# Generated by go2rpm 1.3 %bcond_without check # https://github.com/ledisdb/ledisdb %global goipath github.com/ledisdb/ledisdb Version: 0.6 %global commit d35789ec47e667726160e227e7c05e09627a6d6c %gometa %global goaltipaths github.com/siddontang/ledisdb %global common_description %{expand: Ledisdb is a high-performance NoSQL database library and server written in Go. It's similar to Redis but store data in disk. It supports many data structures including kv, list, hash, zset, set. LedisDB now supports multiple different databases as backends.} %global golicenses LICENSE %global godocs doc CONTRIBUTING.md README.md Name: %{goname} Release: 1%{?dist} Summary: A high performance NoSQL Database Server powered by Go License: MIT URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/edsrzf/mmap-go) BuildRequires: golang(github.com/glendc/gopher-json) BuildRequires: golang(github.com/pelletier/go-toml) BuildRequires: golang(github.com/peterh/liner) BuildRequires: golang(github.com/siddontang/go/bson) BuildRequires: golang(github.com/siddontang/go/filelock) BuildRequires: golang(github.com/siddontang/go/hack) BuildRequires: golang(github.com/siddontang/go/ioutil2) BuildRequires: golang(github.com/siddontang/go/log) BuildRequires: golang(github.com/siddontang/go/num) BuildRequires: golang(github.com/siddontang/go/snappy) BuildRequires: golang(github.com/siddontang/go/sync2) BuildRequires: golang(github.com/siddontang/goredis) BuildRequires: golang(github.com/siddontang/rdb) BuildRequires: golang(github.com/syndtr/goleveldb/leveldb) BuildRequires: golang(github.com/syndtr/goleveldb/leveldb/cache) BuildRequires: golang(github.com/syndtr/goleveldb/leveldb/filter) BuildRequires: golang(github.com/syndtr/goleveldb/leveldb/iterator) BuildRequires: golang(github.com/syndtr/goleveldb/leveldb/opt) BuildRequires: golang(github.com/syndtr/goleveldb/leveldb/storage) BuildRequires: golang(github.com/syndtr/goleveldb/leveldb/util) BuildRequires: golang(github.com/ugorji/go/codec) BuildRequires: golang(github.com/yuin/gopher-lua) BuildRequires: golang(golang.org/x/net/context) %description %{common_description} %gopkg %prep %goprep %build for cmd in $(find cmd -mindepth 1 -type d) ; 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 # server: needs network %gocheck -d server -d store %endif %files %license LICENSE %doc doc CONTRIBUTING.md README.md tools/redis_import/README.md %{_bindir}/* %gopkgfiles %changelog * Sun Jan 10 16:32:28 CET 2021 Robert-André Mauchin - 0.6-1.20210110gitd35789e - Initial package