Red Hat Bugzilla – Bug 501204
publican needs to override more rpm dir macros
Last modified: 2010-11-23 23:18:26 EST
Description of problem:
If one has an ~/.rpmmacros file that overrides where rpm looks for source files etc, then publican breaks.
Steps to Reproduce:
$ cat > ~/.rpmmacros <<EOF
%__pwd %(echo $PWD)
$ cd mybook
$ make srpm-en_US # or web-srpm-en-US,) etc
START: web-srpm-en-US: Mon May 18 10:51:14 EST 2009
rpmbuild --define "_topdir /home/petersen/tmp/rhel-ig/tmp/rpm" --define "dist .fc10" -bs tmp/rpm/SPECS/Red_Hat_Enterprise_Linux-Installation_Guide-en-US.spec
error: File /home/petersen/tmp/rhel-ig/Red_Hat_Enterprise_Linux-Installation_Guide-5-3.1-en-US.tgz: No such file or directory
make: *** [web-srpm-en-US] Error 1
publican needs to override %_srcrpmdir, %_rpmdir, %_sourcedir, and probably %_specdir
so that it always uses tmp/rpm even if .rpmmacros exists.
This also applies to building publican itself (eg make rpm).
This bug appears to have been reported against 'rawhide' during the Fedora 11 development cycle.
Changing version to '11'.
More information and reason for this action is here:
Adding to my Feature list for additional analysis post docs.redhat.com rebase.
This should be fixed in the BETA.
Fixed in 1.0
With ~/.rpmmacros set to contain the same as in the original report:
$ publican package --lang=en-US
$ Wrote: /home/rlandmann/Documents/beta/Testbook1/tmp/rpm/Documentation-Testbook1-0.1-web-en-US-0-0.el5.src.rpm
publican-1.2-0.fc12 has been submitted as an update for Fedora 12.
publican-1.2-0.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report.
publican-1.2-0.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report.