Re: Binary RPM | user defined name

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

 



On Wed, Nov 01, 2006 at 09:37:21AM +0530, Lis Maria Thomas wrote:
> I am back with the same old problem of creating a binary RPM with the
> name I specify during the rpmbuild.
> 
> The rpmbuild command I am running is rpmbuild -ba xxx.spec --define
> "_build_name_fmt %_arch/nameiwant-%{VERSION}-%{RELEASE}.%_arch.rpm"
> 
> My spec file looks like this
> 
> Summary         :Example RPM
> Name            	:xxx
> Version       	:1.0
> Release           :3
> License           :Portal
> Group             :Application/Productivity
> Source            :/home/myname/redhat/SOURCES/xxx-1.0.tar.gz
> Packager        :Lis Maria Thomas <lthomas2@xxxxxxxxxxx>
> BuildRoot       :/var/tmp/xxx-build
> 
> ...
> 
> After I run the rpmbuild command the output I am getting is 
> 
> Wrote: /home/myname/redhat/SRPMS/xxx-1.0-3.src.rpm
> Wrote: /home/myname/redhat/RPMS/i386/nameiwant-1.0-3.i386.rpm
> Wrote: /home/myname/redhat/RPMS/i386/nameiwant-1.0-3.i386.rpm
> 
> And when I try to install nameiwant-1.0-3.i386.rpm, the output I am
> getting is
> 
> Preparing...                ###########################################
> [100%]
>    1:xxx-debuginfo       ###########################################
> [100%]
> 
> It is trying to install xxx-debuginfo,which I have no idea when it was
> created.

What are you trying to achieve?  The whole thing looks like
an overly complex solution for a simple problem.  Of course,
you can disable debuginfo but debuginfo is just a special
kind of subpackage -- if you try to make any subpackage with
this scheme it breaks.  What's wrong with

Name: %{?name}%{!?name:xxx}
...
setup -n xxx-%{version}

rpmbuild --define 'name nameiwant' -bb xxx.spec

?

Yeti


--
Whatever.

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/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