[pkg] do not include toplevel directories in rpm (closes #10362119)
Our spec file conflicts with the filesystem package in centos7: we set
permissions to 0755 for /usr/bin and /usr/lib whereas filesystem sets
them to 0555.
So to be compatible with both centos7 and others we simply ignore these
directories.
if repo.system_source.dbdriver == 'postgres':
sql('ALTER TABLE appears ADD COLUMN weight float')
sql('UPDATE appears SET weight=1.0 ')