Building rpm, x86_64 and i386 architecture, rpm --upgrade

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I've creted a .spec file for a rpm. The distfile are precompiled
binary files for i386 and x86_64 so I'm just repackaging it with the
proper directory hierarchy. Vendor rpm has both executables for i386 and
x86_64. My package has binary for appropriate arch.

As far as I understand, if the source (dist files) are working on
%{ix86} and x86_64 I should have the following line in .spec:

	ExclusiveArch: %{ix86} x86_64

Then I'm building the package on i686 host with command:

$ rpmbuild -ba --clean megacli.spec
$ rpmbuild -ba --clean --target x86_64 megacli.spec

and that creates everything what I need. Now I have problem when I
install any of those packages on x86_64 host.

On x86_64 system I can install both packages and there will be no
conflict message but I would like to get error when installing, or I
would like that rpm will be replaced when I will run rpm --upgrade.

How I can write .spec file to achieve that?


# rpm -Uhv megacli-2.00.12-1.2.2.i386.rpm
Preparing...                ########################################### [100%]
   1:megacli                ########################################### [100%]

# rpm -Uhv megacli-2.00.12-1.2.2.x86_64.rpm
Preparing...                ########################################### [100%]
   1:megacli                ########################################### [100%]

# rpm -q --last megacli
megacli-2.00.12-1.2.2                         Tue 02 Dec 2008 03:59:11 PM GMT
megacli-2.00.12-1.2.2                         Tue 02 Dec 2008 03:59:05 PM GMT


-- 
best regards
q#
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux