![](https://seccdn.libravatar.org/avatar/bc67c2666cfb0f5c7770293291610cc9.jpg?s=120&d=mm&r=g)
On Mon, Nov 30, 2009 at 12:40:10PM +0100, Roger Oberholtzer wrote:
On Mon, 2009-11-30 at 11:47 +0100, Michael Schroeder wrote:
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.)
I did these changes on 11.2, and they work. Thanks. I also tried the suggestion for < 11.2 (< rpm 4.7, I guess): [...] and I get the following:
+ umask 022 + cd /home/roger/source.18.00/Package.Linux/rpm/BUILD /var/tmp/rpm-tmp.48011: line 21: cd: /home/roger/source.18.00/Package.Linux/rpm/BUILD: No such file or directory error: Bad exit status from /var/tmp/rpm-tmp.48011 (%install)
That's because you redefined _topdir on the command line and _topdir must have a BUILD directory. But you said that it worked up to 11.1, so I guess you didn't change _topdir before. 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