sciurus/docker-rhel-rpm — pull request #6 by tomdz (2013-10-10 06:50:27+00:00)
Title: Docker compilation fails because of package name change

The spec file for lxc-docker uses `%{name}` in some but not all places which leads to this build error (in `output/build.log`:
```
Processing files: lxc-docker-0.6.3-1.el6.x86_64
RPM build errors:
error: File not found: /builddir/build/BUILDROOT/lxc-docker-0.6.3-1.el6.x86_64/usr/bin/docker
error: File not found: /builddir/build/BUILDROOT/lxc-docker-0.6.3-1.el6.x86_64/etc/init/docker.conf
File not found: /builddir/build/BUILDROOT/lxc-docker-0.6.3-1.el6.x86_64/usr/bin/docker
File not found: /builddir/build/BUILDROOT/lxc-docker-0.6.3-1.el6.x86_64/etc/init/docker.conf
Child return code was: 1
EXCEPTION: Command failed. See logs for output.
# ['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps builddir/build/SPECS/lxc-docker.spec']
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/mockbuild/trace_decorator.py", line 70, in trace
result = func(*args, **kw)
File "/usr/lib/python2.6/site-packages/mockbuild/util.py", line 359, in do
raise mockbuild.exception.Error, ("Command failed. See logs for output.\n # %s" % (command,), child.returncode)
Error: Command failed. See logs for output.
# ['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps builddir/build/SPECS/lxc-docker.spec']
LEAVE do --> EXCEPTION RAISED
```
Presumably, the docker binary and configuration file should not have their names changed to `lxc-docker`/`lxc-docker.conf`, so the spec file should not use `%{name}` for them.