|
|
|
|
@ -23,7 +23,7 @@
|
|
|
|
|
|
|
|
|
|
# package version |
|
|
|
|
%define V_opkg 1.0.0 |
|
|
|
|
%define V_dist 20190903 |
|
|
|
|
%define V_dist 20200216 |
|
|
|
|
|
|
|
|
|
# package information |
|
|
|
|
Name: eliasdb |
|
|
|
|
@ -36,7 +36,7 @@ Class: EVAL
|
|
|
|
|
Group: Database |
|
|
|
|
License: MPL |
|
|
|
|
Version: %{V_opkg}.%{V_dist} |
|
|
|
|
Release: 20190903 |
|
|
|
|
Release: 20200216 |
|
|
|
|
|
|
|
|
|
# list of sources |
|
|
|
|
Source0: http://download.openpkg.org/components/versioned/eliasdb/eliasdb-%{V_dist}.tar.xz |
|
|
|
|
@ -70,7 +70,8 @@ PreReq: OpenPKG, openpkg >= 20160101
|
|
|
|
|
%build |
|
|
|
|
# build program |
|
|
|
|
export GOPATH=`pwd` |
|
|
|
|
go build -v -o eliasdb devt.de/eliasdb/cli |
|
|
|
|
cd src/github.com/krotik/eliasdb |
|
|
|
|
go build -v -o eliasdb cli/eliasdb.go |
|
|
|
|
|
|
|
|
|
%install |
|
|
|
|
# create installation hierarchy |
|
|
|
|
@ -85,7 +86,8 @@ PreReq: OpenPKG, openpkg >= 20160101
|
|
|
|
|
|
|
|
|
|
# install program |
|
|
|
|
%{l_shtool} install -c -s -m 755 \ |
|
|
|
|
eliasdb $RPM_BUILD_ROOT%{l_prefix}/sbin/ |
|
|
|
|
src/github.com/krotik/eliasdb/eliasdb \ |
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/sbin/ |
|
|
|
|
|
|
|
|
|
# install default configuration |
|
|
|
|
%{l_shtool} install -c -m 644 %{l_value -s -a} \ |
|
|
|
|
|