No modifying %{SOURCE*} during rpmbuild.
Stuff included in %{SOURCE*} must not be modified during rpmbuild because the resulting .src.rpm will contain the modified version, not original. You should instead make a copy, then modify that copy.
Example from gaim.spec: # If not using gnome-open, then default to htmlview +cp %{SOURCE1} prefs.xml if [ "%{gnome_open_integration}" == "0" ]; then - sed -i "s/gnome-open/custom/g" %{SOURCE1} - sed -i "s/pref name='command' type='string' value=''/pref name='command' type='string' value='htmlview'/" %{SOURCE1} + sed -i "s/gnome-open/custom/g" prefs.xml + sed -i "s/pref name='command' type='string' value=''/pref name='command' type='string' value='htmlview'/" prefs.xml fi
Warren Togami wtogami@xxxxxxxxxx