我正在尝试从 src.rpm 为 Fedora 中的 docker 构建 RPM。我从这里得到了 src.rpm 包:http://koji.fedoraproject.org/koji/buildinfo?buildID= 610523
我正在关注本指南:http ://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch11s03.html
现在,只要我运行 rpmbuild,我就会收到以下错误:
[peeyush@localhost ~]$ rpmbuild --rebuild docker-io-1.5.0-1.fc21.src.rpm
Installing docker-io-1.5.0-1.fc21.src.rpm
error: Failed build dependencies:
btrfs-progs-devel is needed by docker-io-1.5.0-1.fc21.x86_64
device-mapper-devel is needed by docker-io-1.5.0-1.fc21.x86_64
glibc-static is needed by docker-io-1.5.0-1.fc21.x86_64
go-md2man is needed by docker-io-1.5.0-1.fc21.x86_64
golang(code.google.com/p/go.net/websocket) is needed by docker-io-1.5.0-1.fc21.x86_64
golang(code.google.com/p/gosqlite/sqlite3) is needed by docker-io-1.5.0-1.fc21.x86_64
golang(github.com/Sirupsen/logrus) >= 0.6.0 is needed by docker-io-1.5.0-1.fc21.x86_64
golang(github.com/coreos/go-systemd/activation) >= 2-1 is needed by docker-io-1.5.0-1.fc21.x86_64
golang(github.com/docker/libtrust) >= 0-0.2 is needed by docker-io-1.5.0-1.fc21.x86_64
golang(github.com/docker/libtrust/trustgraph) >= 0-0.2 is needed by docker-io-1.5.0-1.fc21.x86_64
golang(github.com/godbus/dbus) is needed by docker-io-1.5.0-1.fc21.x86_64
golang(github.com/gorilla/mux) >= 0-0.13 is needed by docker-io-1.5.0-1.fc21.x86_64
golang(github.com/kr/pty) >= 0-0.19 is needed by docker-io-1.5.0-1.fc21.x86_64
golang(github.com/syndtr/gocapability/capability) >= 0-0.7 is needed by docker-io-1.5.0-1.fc21.x86_64
golang(github.com/tchap/go-patricia/patricia) is needed by docker-io-1.5.0-1.fc21.x86_64
有趣的是,我已经安装了 golang:
[peeyush@localhost ~]$ rpm -q golang
golang-1.3.3-1.fc21.x86_64
请帮我弄清楚这里有什么问题?或者您能否告诉我是否有任何其他方式来构建 docker RPM。