Snippets

Mihamina Rakotomandimby docker-distribution.spec

Created by Mihamina Rakotomandimby
--- rpmbuild/SPECS/docker-distribution.spec	2016-04-01 12:00:26.000000000 +0300
+++ rpmbuild/SPECS/docker-distribution-ok.spec	2016-05-13 19:09:26.913580179 +0300
@@ -33,11 +33,11 @@
 # https://github.com/docker/distribution
 %global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
 %global import_path     %{provider_prefix}
-%global commit          36936218c2e6a4527fc99a5c04126bb1f4c7d55c
+%global commit          3f7fa41272784c4442697efffeff001a6f1b9857
 %global shortcommit     %(c=%{commit}; echo ${c:0:7})
 
 Name:           %{project}-%{repo}
-Version:        2.3.1
+Version:        2.4.0
 Release:        1%{?dist}
 Summary:        Docker toolset to pack, ship, store, and deliver content
 License:        ASL 2.0
@@ -224,15 +224,19 @@
 
 pushd _build
 mkdir -p src/github.com/%{project}
-ln -s $(dirs +1 -l) src/%{import_path}
+ln -sv $(dirs +1 -l) src/%{import_path}
 popd
 
 %if ! 0%{?with_bundled}
-export GOPATH=$(pwd)/_build:%{gopath}
+  export GOPATH=$(pwd)/_build:%{gopath}
 %else
-export GOPATH=$(pwd)/_build:$(pwd)/Godeps/_workspace:%{gopath}
+  export GOPATH=$(pwd)/vendor:$(pwd)/_build:$(pwd)/Godeps/_workspace:%{gopath}
+  mkdir -pv $(pwd)/vendor/src
+  for V in $(find $(pwd)/vendor/  -maxdepth 1 -mindepth 1 -type d ! -name 'src')
+  do
+    mv $V $(pwd)/vendor/src/
+  done    
 %endif
-
 pushd _build/src/%{import_path}/cmd/registry
 go build .
 popd

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.