title: Errors in a simple .RPM
body: <p>I need to make a very simple rpm to extract a tar.gz and to put its contents in /var/www without doing anything else.</p>
  
  <p>I have a .spec that is supposed to do that, but it fails with a non verbose error.</p>
  
  <p>rpmlint does not throw an error.</p>
  
  <p>Here goes the spec:</p>
  
  <pre><code>Name:           redmine
  Version:        2.4.3
  Release:        1%{?dist}
  Summary:        A flexible project management web application
  
  Group:          Development/Tools/Other
  License:        GPL-2.0
  URL:            http://www.redmine.org/
  Source0:        %{name}-%{version}.tar.gz
  BuildRoot:      %{_tmppath}/%{name}-%{version}-build
  
  BuildRequires:  gcc
  Requires:       httpd
  
  %description
  
  Redmine is a flexible project management web application.
  Written using Ruby on Rails framework, it is cross-platform and cross-database.
  %prep
  %setup
  
  %build
  
  %install
  rm -rf %{buildroot}
  mkdir -p /var/www/redmine/
  install -m 0755 * /var/www/redmine/
  mkdir -p /var/www/redmine/tmp/
  
  %clean
  rm -rf %{buildroot}
  
  
  %files
  %defattr(-,root,root,-)
  /var/www/redmine/*
  /var/www/redmine/app/*
  /var/www/redmine/config/*
  /var/www/redmine/db/*
  /var/www/redmine/doc/*
  /var/www/redmine/extra/*
  /var/www/redmine/lib/*
  /var/www/redmine/plugins/*
  /var/www/redmine/public/*
  /var/www/redmine/script/*
  /var/www/redmine/test/*
  /var/www/redmine/tmp/*
  /var/www/redmine/vendor/*
  %defattr(-,apache,apache,-)
  /var/www/redmine/tmp/*
  /var/www/redmine/files/*
  /var/www/redmine/log/*
  
  %post
  echo " "
  echo "installatios was successful"
  </code></pre>
  
  <p>And this is the last part of the error message:</p>
  
  <pre><code>+ rm -rf /root/rpmbuild/BUILDROOT/redmine-2.4.3-1.el6.i386
  + mkdir -p /var/www/redmine/
  + install -m 0755 CONTRIBUTING.md Gemfile README.rdoc Rakefile app config config.ru db doc extra files lib log plugins public script test tmp vendor /var/www/redmine/
  install: omitting directory `app'
  install: omitting directory `config'
  install: omitting directory `db'
  install: omitting directory `doc'
  install: omitting directory `extra'
  install: omitting directory `files'
  install: omitting directory `lib'
  install: omitting directory `log'
  install: omitting directory `plugins'
  install: omitting directory `public'
  install: omitting directory `script'
  install: omitting directory `test'
  install: omitting directory `tmp'
  install: omitting directory `vendor'
  error: Bad exit status from /var/tmp/rpm-tmp.FwRGmu (%install)
  
  
  RPM build errors:
      Bad exit status from /var/tmp/rpm-tmp.FwRGmu (%install)
  </code></pre>