![](https://seccdn.libravatar.org/avatar/7946a5581e1e0b25e548f2b41c69d273.jpg?s=120&d=mm&r=g)
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): Summary: RSofT File Conversion Utilities Name: RSofT_Convert Version: 18.00 Release: 18.00 Group: Application/RSofT/Measurement URL: http://www.opq.se Vendor: Ramb�ll Sverige AB. RST/OPQ, Krukmakargatan 21, 118 51 Stockholm, Sweden Packager: roger@opq.se License: Proprietary Prefix: /home/roger/source.18.00/Package.Linux/rpm Buildroot: %{_tmppath}/%{name}-%{version}-build %description RSofT File Conversion Utilities %install 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 %files %attr(755, root, root) \ /home/roger/source.18.00/Package.Linux/rpm/RSofT_Convert-18.00.tgz 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)
(Btw, it looks quite odd that you copy some file from the system.)
You mean the .spec file? Yeah. I saw that. I think this is from the days before rpmbuild. I will be investigating our use of rpmbuild. I have always had trouble setting up an RPM to install files in the RPM into a relocatable location. And to have the RPM resolve sym links when making the RPM. So I do this via a tar file and an install script. Not my favorite solution. Perhaps I need to see what has changed in rpm since we first made out current 'solution'. I suspect rpm has some of the flexibility that used to be lacking. -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org