mirror of
https://github.com/containers/skopeo.git
synced 2025-08-10 02:48:12 +00:00
fix spec for GO15VENDOREXPERIMENT
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
3d25e18181
commit
4967efa951
14
skopeo.spec
14
skopeo.spec
@ -13,7 +13,7 @@ BuildRequires: golang >= 1.5
|
|||||||
BuildRequires: golang-github-cpuguy83-go-md2man
|
BuildRequires: golang-github-cpuguy83-go-md2man
|
||||||
BuildRequires: golang(github.com/Sirupsen/logrus) >= 0.8.4
|
BuildRequires: golang(github.com/Sirupsen/logrus) >= 0.8.4
|
||||||
BuildRequires: golang(github.com/codegangsta/cli) >= 1.2.0
|
BuildRequires: golang(github.com/codegangsta/cli) >= 1.2.0
|
||||||
BuildRequires: golang-googlecode-net-devel
|
BuildRequires: golang(golang.org/x/net/context)
|
||||||
|
|
||||||
%global debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
|
|
||||||
@ -23,13 +23,15 @@ Get information about a Docker image or repository without pulling it
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}
|
%setup -q -n %{name}-%{version}
|
||||||
|
|
||||||
find vendor/ -type 'd' | grep -v "github.com/[docker|opencontainers|vbatts|gorilla]"
|
rm -rf vendor/github.com/codegangsta
|
||||||
|
rm -rf vendor/github.com/Sirupsen
|
||||||
|
rm -rf vendor/golang.org
|
||||||
|
|
||||||
%build
|
%build
|
||||||
mkdir -p src/github.com/runcom
|
mkdir -p ./_build/src/github.com/runcom
|
||||||
ln -s ../../../ src/github.com/runcom/skopeo
|
ln -s $(pwd) ./_build/src/github.com/runcom/skopeo
|
||||||
export GOPATH=$(pwd):%{gopath}
|
export GOPATH=$(pwd)/_build:%{gopath}
|
||||||
make %{?_smp_mflags}
|
cd $(pwd)/_build/src/github.com/runcom/skopeo && make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1
|
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1
|
||||||
|
Loading…
Reference in New Issue
Block a user