RE: Binary RPM | user defined name

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

 



Hi

The problem I am facing is, when I install  nameiwant-1.0-3.i386.rpm ,
it is not installing the files that I have mentioned in the %files
section of the spec file. I don't want to disable debuginfo rpm also.

Regards
Lis

-----Original Message-----
From: rpm-list-bounces@xxxxxxxxxx [mailto:rpm-list-bounces@xxxxxxxxxx]
On Behalf Of David Necas (Yeti)
Sent: Wednesday, November 01, 2006 1:13 PM
To: RPM Package Manager
Subject: Re: Binary RPM | user defined name

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

_______________________________________________
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