Quellcode durchsuchen

upgrading package: confd 0.11.0 -> 0.12.0

Ralf S. Engelschall vor 8 Jahren
Ursprung
Commit
0db9d5d827
1 geänderte Dateien mit 12 neuen und 7 gelöschten Zeilen
  1. 12 7
      confd/confd.spec

+ 12 - 7
confd/confd.spec

@@ -22,8 +22,8 @@
 ##
 
 #   package version
-%define       V_opkg  0.11.0
-%define       V_dist  0.11.0
+%define       V_opkg  0.12.0
+%define       V_dist  20170810
 
 #   package information
 Name:         confd
@@ -36,10 +36,10 @@ Class:        EVAL
 Group:        Networking
 License:      MIT
 Version:      %{V_opkg}
-Release:      20160327
+Release:      20170810
 
 #   list of sources
-Source0:      https://github.com/kelseyhightower/confd/archive/v%{V_dist}.tar.gz
+Source0:      http://download.openpkg.org/components/versioned/confd/confd-%{V_dist}.tar.xz
 Source1:      confd.toml
 Source2:      rc.confd
 Source3:      example.toml
@@ -63,7 +63,7 @@ PreReq:       OpenPKG, openpkg >= 20160101, etcd
     }
 
 %prep
-    %setup -q -n confd-%{V_dist}
+    %setup -q -n confd
 
 %build
     #   patch path to configuration file
@@ -72,7 +72,11 @@ PreReq:       OpenPKG, openpkg >= 20160101, etcd
         src/github.com/kelseyhightower/confd/config.go
 
     #   build program
-    ./build
+    export GOPATH=`pwd`
+    ( cd src/github.com/kelseyhightower/confd
+      mkdir bin
+      go build -x -o bin/confd .
+    ) || exit $?
 
 %install
     #   create directory hierarchy
@@ -87,7 +91,8 @@ PreReq:       OpenPKG, openpkg >= 20160101, etcd
 
     #   install program
     %{l_shtool} install -c -s -m 755 \
-        bin/confd $RPM_BUILD_ROOT%{l_prefix}/sbin/confd
+        src/github.com/kelseyhightower/confd/bin/confd \
+        $RPM_BUILD_ROOT%{l_prefix}/sbin/confd
 
     #   install configuration files
     %{l_shtool} install -c -m 644 %{l_value -s -a} \