rpm: minor fixes; drop pkg-config for lua checks

Apply the patches in %prep section.

Drop pkg-config from configure.ac to check lua version. CMS does
not use pkg-config (*.pc) for externals. Stick to checking headers
for now.

Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>
bz2lib-bootstrap: fix libraries instalation

Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>
apt: bump version to 0.5.17 (experimental)

Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>