From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225 Description of problem: If a source rpm that has been imported into an Eclipse C/C++ project has %if/%endif statements around the last %patch statement the RPM manipulation plugin will place the generated patch statement after the last %patch statement (inside the %if/%endif logic) when a new source rpm is exported. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. import a source rpm that has its last %patch statement enclosed in %if/%endif statements 2. make a source change and re-export it 3. look at the new spec file and see that the new patch statement is inside the %if/%endif construct Additional info: