[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Binary RPM | user defined name
- From: David Nečas (Yeti) <yeti physics muni cz>
- To: RPM Package Manager <rpm-list redhat com>
- Subject: Re: Binary RPM | user defined name
- Date: Wed, 1 Nov 2006 08:43:27 +0100
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 sapient com>
> 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.
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]