Browse Source

upgrading package: discodns 0.0.7 -> 0.0.7.20150126

master
parent
commit
0cbb84c2b0
  1. 30
      discodns/discodns.spec

30
discodns/discodns.spec

@ -22,8 +22,8 @@
##
# package version
%define V_opkg 0.0.7
%define V_dist 0.0.7
%define V_discodns_base 0.0.7
%define V_discodns_snap 20150126
# package information
Name: discodns
@ -35,17 +35,16 @@ Distribution: OpenPKG Community
Class: EVAL
Group: Network
License: MIT
Version: %{V_opkg}
Release: 20150114
Version: %{V_discodns_base}.%{V_discodns_snap}
Release: 20150126
# list of sources
Source0: https://github.com/duedil-ltd/discodns/archive/%{V_dist}.tar.gz
Source1: http://download.openpkg.org/components/versioned/discodns/discodns-gopath-20140705.tar.xz
Source2: rc.discodns
Source0: http://download.openpkg.org/components/versioned/discodns/discodns-%{V_discodns_snap}.tar.xz
Source1: rc.discodns
# build information
BuildPreReq: OpenPKG, openpkg >= 20120101, go
PreReq: OpenPKG, openpkg >= 20120101, etcd
BuildPreReq: OpenPKG, openpkg >= 20140101, go
PreReq: OpenPKG, openpkg >= 20140101, etcd
%description
An authoritative DNS nameserver that queries an etcd(8) database of
@ -53,18 +52,18 @@ PreReq: OpenPKG, openpkg >= 20120101, etcd
%track
prog discodns = {
version = %{version}
version = %{V_discodns_base}
url = https://github.com/duedil-ltd/discodns/releases
regex = (__VER__)\.tar\.gz
}
%prep
%setup -q -n discodns-%{V_dist}
%setup -q -n discodns-%{V_dist} -T -D -a 1
%setup -q -n discodns
%build
export GOPATH=`pwd`/gopath
go build -o discodns *.go
export GOPATH=`pwd`
cd src/github.com/duedil-ltd/discodns
go build -x -o bin/discodns
%install
%{l_shtool} mkdir -f -p -m 755 \
@ -73,7 +72,8 @@ PreReq: OpenPKG, openpkg >= 20120101, etcd
$RPM_BUILD_ROOT%{l_prefix}/var/discodns/run \
$RPM_BUILD_ROOT%{l_prefix}/var/discodns/log
%{l_shtool} install -c -s -m 755 \
discodns $RPM_BUILD_ROOT%{l_prefix}/sbin/
src/github.com/duedil-ltd/discodns/bin/discodns \
$RPM_BUILD_ROOT%{l_prefix}/sbin/
%{l_shtool} install -c -m 755 %{l_value -s -a} \
%{SOURCE rc.discodns} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \

Loading…
Cancel
Save