![](https://seccdn.libravatar.org/avatar/bc67c2666cfb0f5c7770293291610cc9.jpg?s=120&d=mm&r=g)
On Mon, Nov 30, 2009 at 11:34:02AM +0100, Roger Oberholtzer wrote:
The rpm command I used in the past (up to and including 11.1) no longer works. I am not sure what the change is. I build rpms from an alternate directory. This is mainly so I do not need to deal with permissions in the system-wide place. My command is:
rpmbuild --define "_topdir /home/roger/source.18.00/Package.Linux/rpm" \ --define _rpmfilename %%{NAME}-%%{VERSION}-%%{ARCH}.rpm \ --quiet \ -bb \ --rmspec /usr/src/packages/SOURCES/RSofT_Convert.spec
/home/roger/source.18.00/Package.Linux/rpm is the alternate directory.
I get a message that this file cannot be found:
/home/roger/source.18.00/Package.Linux/rpm/BUILDROOT/RSofT_Convert-18.00-18.00.i386/home/roger/source.18.00/Package.Linux/rpm/RSofT_Convert-18.00.tgz
It seems the odd part is the /home/roger/source.18.00/Package.Linux/rpm/BUILDROOT/RSofT_Convert-18.00-18.00.i386 at the start.
This worked in 11.1. Any clue where to start looking? My spec file is:
rpm-4.7 has a default Buildroot set for all packages. You'll have to copy the file into the buildroot in the %install section: mkdir -p $RPM_BUILD_ROOT/home/roger/source.18.00/Package.Linux/rpm cp /home/roger/source.18.00/Package.Linux/rpm/RSofT_Convert-18.00.tgz $RPM_BUILD_ROOT/home/roger/source.18.00/Package.Linux/rpm (If you want the specfile to work for < 11.2 as well you'll also have to add a "Buildroot: %{_tmppath}/%{name}-%{version}-build" line.) (Btw, it looks quite odd that you copy some file from the system.) Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org