Description of problem: The presence of "%install" ("% install" does not break things) in %changelog in rpm .spec file leads to the following error: "error: Package already exists: %package debuginfo" Version-Release number of selected component (if applicable): RPM version 4.2 How reproducible: download http://prdownloads.sourceforge.net/poptop/pptpd-1.1.4-b3.tar.gz?download, fix the %{rel} to b3, not 1b3 or the source of the .tar.gz file and try to rebuild for --target i386-redhat-linux. While I'm here, why in '/usr/lib/rpm/rpmrc' I see "optflags: i386 -O2 -g -march=i386 -mcpu=i686"? How am I expected to rebuild packages for i386 CPU? Steps to Reproduce: 1. rpmbuild -vvv -ba --with buildipalloc --target i386-redhat-linux pptpd.spec Actual results: error: Package already exists: %package debuginfo Expected results: normal package rebuild
Created attachment 91146 [details] "working" .spec file. This is my "working" .spec file, scroll down to " - fixed % install section so that it uses buildroot" and remove the space between "%" and "install" to represent the bug
Yup. Escape the '%, as in use '%%install', not '%install'.