On Mon, Nov 30, 2009 at 01:53:09PM +0100, Roger Oberholtzer wrote:
On Mon, 2009-11-30 at 13:48 +0100, Michael Schroeder wrote:
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.
The command line is unchanged from 11.1. _topdir is set the same as before. On 11.1 and earlier, I needed _topdir as you see it. Do you mean I should not be using it?
I don't know. It's just that rpm defines _builddir to be %{_topdir}/BUILD, that's why you get the error message. 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