PDA

View Full Version : Building RPMs: legacy syntax unsuported



uth
26th July 2006, 04:22 AM
So far, every RPM I tried to build myself has failed with a "legacy syntax unsupported" error. The sample below from heretic. Is there an easy workaround or will every old specfile need to be rewritten?

# rpmbuild --rebuild heretic-1.1-1.src.rpm
Installing heretic-1.1-1.src.rpm
warning: user knopper does not exist - using root
warning: user knopper does not exist - using root
warning: user knopper does not exist - using root
warning: user knopper does not exist - using root
error: Legacy syntax is unsupported: copyright
error: line 10: Unknown tag: Copyright: Activision/Raven, see Documentation

Evert
26th July 2006, 05:52 AM
install the src rpm
cd to /usr/src/redhat/SPECS

open the spec file

rename copyright to license
save

rpmbuild -ba the_spec_fille.spec