Skip to content

Commit

Permalink
- Specify BuildRoot in the rpm spec to work around some kind of
Browse files Browse the repository at this point in the history
  bug/problem causing rpmbuild to use "/" as the BuildRoot on CentOS 5.
  Fixes #191. Confirmed working on CentOS 5.7 in a vm.
  • Loading branch information
jordansissel committed Mar 30, 2012
1 parent 6ced55e commit d588300
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions templates/rpm.erb
Expand Up @@ -24,6 +24,9 @@ Release: <%= iteration or 1 %>
Summary: <%= description.split("\n").first.empty? ? "_" : description.split("\n").first %>
BuildArch: <%= architecture %>
AutoReqProv: no
# Seems specifying BuildRoot is required on older rpmbuild (like on CentOS 5)
# fpm passes '--define buildroot ...' on the commandline, so just reuse that.
BuildRoot: %buildroot

Group: <%= category %>
License: <%= license %>
Expand Down

0 comments on commit d588300

Please sign in to comment.