Hi,
Thanks all, I've now got it working.
The problem was that I was missing the "s" in the filename rpmmacros.
Adam
On Tue, 18 Dec 2007, Tony Earnshaw wrote:
Adam Miller skrev, on 18-12-2007 20:08:
I'm trying to allow a non root user build rpms and having a bit of
trouble.
created ~/.rpmmacros
%packager testlscsoft
[...]
%_topdir /home/testlscsoft
All the rest is crap, set it up properly.
Try it out!
Below %_topdir should be the five necessary main directories/architectures
(and even then, not even the architecture is necessary).
[...]
%_rpmtopdir /home/testlscsoft/usr/src/redhat
%_builddir /home/testlscsoft/usr/src/redhat/BUILD
%_rpmdir /home/testlscsoft/usr/src/redhat/RPMS
%_sourcedir /home/testlscsoft/usr/src/redhat/SOURCES
%_specdir /home/testlscsoft/usr/src/redhat/SPECS
%_srcrpmdir /home/testlscsoft/usr/src/redhat/SRPMS
%_tmppath /home/testlscsoft/usr/src/redhat/var/tmp
%_buildroot /home/testlscsoft/usr/src/redhat/var/tmp/%{name}-root
created dir structures
/home/testlscsoft
/home/testlscsoft/usr/src/redhat
/home/testlscsoft/usr/src/redhat/BUILD
/home/testlscsoft/usr/src/redhat/RPMS
/home/testlscsoft/usr/src/redhat/SOURCES
/home/testlscsoft/usr/src/redhat/SPECS
/home/testlscsoft/usr/src/redhat/SRPMS
/home/testlscsoft/usr/src/redhat/var/tmp
installed src rpm
rpm --root /home/testlscsoft/ -Uvh lscsoft-user-env-1.12-1.src.rpm
fails when running rpmbuild
rpmbuild --root /home/testlscsoft/ -ba
/home/testlscsoft/usr/src/redhat/SPECS/lscsoft-user-env.spec
error: File /usr/src/redhat/SOURCES/lscsoft-user-env-1.12.tar.gz: No such
file or directory
--Tonni
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list