Permit packages with no files to omit %files entirely
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 26 Aug 2010 09:21:33 +0000 (12:21 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Thu, 26 Aug 2010 09:31:01 +0000 (12:31 +0300)
commitd010ec1c9026b35f5b2521be965c03c826894ce8
tree6549cadf735109e664fabfb2f6505d04231be124
parente38efea49c23e55914dd306e27fc0320b174807c
Permit packages with no files to omit %files entirely
- Fixes the long standing obscure behavior of missing %files
  section causes build to complete without errors but without producing
  any packages either. Packages without files in them are perfectly
  valid (eg metapackages), requiring empty %files section for those
  is just unnecessary spec noise.
- Remove %files section on one of the test-suite specs to create
  a test-case for this as a side-effect.
- This of course introduces a slight incompatibility with older rpm's,
  if compatibility is required then just add those empty %files in the
  spec, they dont hurt anything but the readers eyes.
build/files.c
build/pack.c
build/parseFiles.c
build/spec.c
tests/data/SPECS/versiontest.spec