Hi Now I am able to build the binary rpms with the name I specify.But now there is one more problem, It is writing two binary rpms with the same name in the /RPMS/i386 folder and when I try to install the rpm it is installing the debuginfo rpm instead of the binary rpm. To be more specific, The output of my rpmbuild is : Processing files: zzz-1.0-1 Requires(interp): /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(post): /bin/sh Processing files: zzz-debuginfo-1.0-1 Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/my-build Wrote: /home/mine/redhat/SRPMS/zzz-1.0-1.src.rpm Wrote: /home/mine/redhat/RPMS/i386/xxx-1.0-1.i386.rpm Wrote: /home/mine/redhat/RPMS/i386/xxx-1.0-1.i386.rpm Now,as a root,when I try to install rpm -ivh xxx-1.0-1.i386.rpm,it is actually installing zzz-debuginfo-1.0-1. I am not able to figure out what the mistake and where is this zzz-debuginfo-1.0-1 coming from. Can somebody help me ! ! ! Thanks in Advance Lis -----Original Message----- From: Lis Maria Thomas Sent: Friday, October 27, 2006 11:11 AM To: 'RPM Package Manager' Subject: RE: Binary RPM naming | doubt Hi I need some more help please. As u said in your previous mail, I tried to run rpmbuild command in the following ways 1) rpmbuild -ba yyy.spec --define "_build_name_fmt %_arch/xxx-%{version}-%{release}.%_arch.rpm" 2) rpmbuild -ba yyy.spec --define "_build_name_fmt %{ARCH}/lis-%{VERSION}-%{RELEASE}.%{ARCH}.rpm" In both the cases, I am getting the error as error: Could not generate output filename for package zzz: unknown tag Note: zzz is the value of the name tag in the spec file Regards Lis -----Original Message----- From: rpm-list-bounces@xxxxxxxxxx [mailto:rpm-list-bounces@xxxxxxxxxx] On Behalf Of Luciano Miguel Ferreira Rocha Sent: Thursday, October 26, 2006 7:11 PM To: rpm-list@xxxxxxxxxx Subject: Re: Binary RPM naming | doubt On Thu, Oct 26, 2006 at 06:58:10PM +0530, Lis Maria Thomas wrote: > > Wrote: /home/sapient/redhat/SRPMS/yyy-1.0-1.src.rpm > Wrote: /home/sapient/redhat/RPMS/xxx.i386.rpm > Wrote: /home/sapient/redhat/RPMS/xxx.i386.rpm ... > It is not installing the binary rpm ,rather it is install the debuginfo. > > Is there anything wrong with what I have done or is this the way it > works. Note also that it isn't creating the i386 rpms under a i386 subdirectory. The default _build_name_fmt is %{ARCH}/%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}.rpm Try changing your define to something like: %{ARCH}/thenameiwant-%{VERSION}-%{RELEASE}.%{ARCH}.rpm -- lfr 0/0 _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list