16.05.2018 15:40, Roger Oberholtzer пишет:
I am using rpmbuild to make an RPM. I want to set the file name of the RPM by this option:
--define "_rpmfilename %%{NAME}-%%{VERSION}-%%{ARCH}.rpm"
My .spec file has this:
Name: SomeName Version: SomeVersion
The NAME and VERSION in the generated name are fine. But the ARCH is a mystery. It gets set to "i586".
On the build system, "uname -a" reports:
Linux os13-1 3.11.6-4-desktop #1 SMP PREEMPT Wed Oct 30 18:04:56 UTC 2013 (e6d4a27) i686 athlon i386 GNU/Linux
So I would expect any of these: i686 athlon i386
Not i586.
What I really want is what "uname -i" provides. Which is "i386". But I do not seem to get that.
Is there an RPM macro that is what uname -i lists? I have looked around in what rpmbuild --showrc reports. But I do not see this.
/usr/lib/rpm/rpmrc buildarchtranslate: i686: i586
The reason I want to use a variable here is that this should also build on a x86_64. On that type of system rpmbuild uses the expected value. Which is no suprise because that is reported for all values:
Linux acme 4.4.126-48-default #1 SMP Sat Apr 7 05:22:50 UTC 2018 (f24992c) x86_64 x86_64 x86_64 GNU/Linux
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org