Hi, well I tried this: # rpm -qa --qf '%{name}-%{version}-%{release}.%{arch}\n' | sort | grep libstdc++ compat-libstdc++-7.3-2.96.128.i386 compat-libstdc++-devel-7.3-2.96.128.i386 libstdc++-3.2.3-52.i386 libstdc++-3.2.3-52.x86_64 libstdc++-devel-3.2.3-52.x86_64 # rpm -ql libstdc++-3.2.3-52.x86_64 | sort /usr/lib64/libstdc++.so.5 /usr/lib64/libstdc++.so.5.0.3 In the SPEC: Requires: libstdc++.so.5()(64bit) I made an RPM out of that, and tried to install it: # rpm -ivh /usr/src/redhat/RPMS/x86_64/oradep_rhel3-1.0-1.x86_64.rpm error: Failed dependencies: libstdc++.so.5()(64bit) is needed by oradep_rhel3-1.0-1.x86_64 Suggested resolutions: compat-libstdc++-33-3.2.3-47.3.x86_64.rpm =( -Christian _________________ Christian Rohrmeier Schering AG Corporate IT - Infrastructure and Services Computer Systems and Operations System Administration - Research and Development Tel +49 30 468 15794 Fax +49 30 468 95794 Paul Nasrat <pnasrat@xxxxxxxx om> To Sent by: RPM Package Manager rpm-list-bounces@ <rpm-list@xxxxxxxxxx> redhat.com cc Subject 16.09.2005 15:38 Re: SPEC: How to specify package ARCH for REQUIRES? Please respond to RPM Package Manager <rpm-list@redhat. com> On Fri, 2005-09-16 at 11:36 +0200, Christian.Rohrmeier@xxxxxxxxxxx wrote: > Hallo All, > > OS: RHEL 3 AS > Arch: X86_64 > More Detailed Information: > I am trying to make a virtual package that, when installed, brings in a > number of other packages. The packages are requirements for some other > software: Oracle has specified that the following packages need to be > installed: For most cases in packages library requirements are picked up automatically and marked correctly: eg: libstdc++.so.6 libstdc++.so.6()(64bit) > make > gcc.x86_64 > gcc-c++.x86_64 > libstdc++.i386 > libstdc++.x86_64 > etc. Require the library provides from said package in your virtual package, as if they'd been created automatically using the (64bit) style eg: Requires: libstdc++.so.6()(64bit) Requires: libstdc++.so.6 For gcc you could do: Requires: /usr/bin/x86_64-redhat-linux-gcc > then, using Yum for example, or APT, or whatever, the package won't install > because there is no such package "libstdc++.i386" for example. Yes Requires has no ".arch" concept. Library and file requires will get you where you need to be. Paul _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list