Is there any particular need to evoke the command as the root user? I always build my rpm packages as normal user and it creates it’s own rpmbuild directory in my home folder.
Yes, it is exactly as you said.
rpmbuild command is in a script which can be invoked by root user. Some copy and remove actions performed needs root permission.
Consequently, I have to be root.
Other circumstance (Being ordinary user) costs me some overhead.
Hi
I would grab any recent src rpm and rebuild that with rpm;
rpmbuild --rebuild <some.src.rpm>
This should create the correct build structure for you to re-use.
No overhead using OBS then use osc locally. You should consider it,
so much simpler and less system overhead with having to manually install
all the devel files… building locally has the space overhead for rpms
(I’m currently using 9GB of disk space for 71 different OBS projects)
–
Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.2 (x86_64) Kernel 3.4.11-2.16-desktop
up 17:21, 3 users, load average: 0.00, 0.03, 0.05
CPU Intel® i5 CPU M520@2.40GHz | GPU Intel® Ironlake Mobile