]> git.pld-linux.org Git - packages/docker.git/blame - lxc-docker.spec
disable -debuginfo package as binary has no (useful) debug info (problem with all...
[packages/docker.git] / lxc-docker.spec
CommitLineData
b877f7b7
ER
1Summary: Docker: the Linux container engine
2Name: lxc-docker
3Version: 0.5.3
4Release: 0.1
5License: Apache v2.0
6Group: Applications/System
7Source0: https://github.com/dotcloud/docker/archive/v%{version}.tar.gz
8# Source0-md5: ff7b814574bbaf9e55dfe1c266ae991e
a0edb644
ER
9Source1: https://github.com/gorilla/context/archive/master.tar.gz?/gorilla-context.tgz
10# Source1-md5: 621f599f7a49f56ca89c25a6d01ecc3a
11Source2: https://github.com/gorilla/mux/archive/master.tar.gz?/gorilla-mux.tgz
12# Source2-md5: e908c7da6b4b8b61b4733d4a348f015c
13Source3: https://github.com/kr/pty/archive/master.tar.gz?/kr-pty.tgz
14# Source3-md5: ffdcacc582c7b6404e71c2dce638869e
b877f7b7 15URL: http://github.com/dotcloud/docker
a0edb644 16BuildRequires: git-core
cc7690e4 17BuildRequires: golang >= 1.1
2015cb19
ER
18Requires: lxc
19Requires: uname(release) >= 3.8
b877f7b7
ER
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
434d66d3
ER
22# binary stripped or something
23%define _enable_debug_packages 0
24
b877f7b7
ER
25%description
26Docker complements LXC with a high-level API which operates at the
27process level. It runs unix processes with strong guarantees of
28isolation and repeatability across servers.
29
30Docker is a great building block for automating distributed systems:
31large-scale web deployments, database clusters, continuous deployment
32systems, private PaaS, service-oriented architectures, etc.
33
34%prep
a0edb644
ER
35%setup -q -n docker-%{version} -a1 -a2 -a3
36
37# handle external deps offline
38install -d .gopath/src/github.com/{gorilla,kr}
39# git clone https://github.com/gorilla/context .gopath/src/github.com/gorilla/context
40mv context-master .gopath/src/github.com/gorilla/context
41# git clone https://github.com/gorilla/mux .gopath/src/github.com/gorilla/mux
42mv mux-master .gopath/src/github.com/gorilla/mux
43# git clone https://github.com/kr/pty .gopath/src/github.com/kr/pty
44mv pty-master .gopath/src/github.com/kr/pty
b877f7b7
ER
45
46%build
a0edb644
ER
47# avoid interfering with builder env
48unset GIT_WORK_TREE
49unset GIT_DIR
b877f7b7
ER
50%{__make} VERBOSE=1
51
52%install
53rm -rf $RPM_BUILD_ROOT
af991618 54install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,/var/lib/docker/{containers,graph,volumes}}
b877f7b7 55install -p bin/docker $RPM_BUILD_ROOT%{_bindir}/lxc-docker
9c77b76c 56ln -s lxc-docker $RPM_BUILD_ROOT%{_bindir}/docker
b877f7b7
ER
57cp -p packaging/debian/lxc-docker.1 $RPM_BUILD_ROOT%{_mandir}/man1
58
59%clean
60rm -rf $RPM_BUILD_ROOT
61
62%files
63%defattr(644,root,root,755)
64%doc README.md CHANGELOG.md CONTRIBUTING.md FIXME LICENSE AUTHORS NOTICE MAINTAINERS
65%attr(755,root,root) %{_bindir}/lxc-docker
9c77b76c 66%attr(755,root,root) %{_bindir}/docker
b877f7b7 67%{_mandir}/man1/lxc-docker.1*
af991618
ER
68%dir %attr(700,root,root) /var/lib/docker
69%dir %attr(700,root,root) /var/lib/docker/containers
70%dir %attr(700,root,root) /var/lib/docker/graph
71%dir %attr(700,root,root) /var/lib/docker/volumes
This page took 0.058098 seconds and 4 git commands to generate.