Re: Binary RPM | user defined name

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

 



There is (at least for RHEL/FC) %debug_package macro
in the /usr/lib/rpm/macros file. the idea is
following:
all exe/dll in the "main" package are stripped, so
they take less space. If one want debug, one can
install xxx-debug rpm.
xxx-debug.rpm automatically generated, when you build
"regular" rpm.

Now, with _build_fmt_name you force rpm name.
But there are 2 rpm generated: first the normal one
and second xxx-debug. Because you force both rpm have
same name, when debug rpm is created it override
previously created normal one.
This is a reason for misterious behavour.
Solution - use %{NAME} in the build_name_fmt, so
normal and debut rpm can go two the different files,
or disable debug rpm generation altogether
(for example %define debug_package %{nil} - untested)

Valery

--- Lis Maria Thomas <lthomas2@xxxxxxxxxxx> wrote:

> Hi
> 
> 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
> 
> %description
> xxx RPM
> 
> %prep
> %setup -q -n %{name}-%{version}
> 
> %clean
> rm -rf $RPM_BUILD_ROOT
> 
> %install
> mkdir -p $RPM_BUILD_ROOT/apps/myfolder
> 
> cp -R $RPM_BUILD_DIR/xxx-1.0/xxx.war 
> $RPM_BUILD_ROOT/apps/myfolder
> cp -R $RPM_BUILD_DIR/xxx-1.0/deploy.xml 
> $RPM_BUILD_ROOT/apps/myfolder
> cp -R $RPM_BUILD_DIR/xxx-1.0/yyy.release.properties
> $RPM_BUILD_ROOT/apps/myfolder
> 
> %files
> /apps/myfolder/xxx.war
> /apps/myfolder/deploy.xml
> /apps/myfolder/yyy.release.properties
> 
> %changelog
> * Wed Nov 1 2006 Lis Thomas <lthomas2@xxxxxxxxxxx>
> - User Defined name for binary RPM
> 			
> 
> 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.
> 
> Can somebody help me out of this ! !
> 
> Thanks & Regards
> 
> Lis
> > _______________________________________________
> Rpm-list mailing list
> Rpm-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/rpm-list



 
____________________________________________________________________________________
Everyone is raving about the all-new Yahoo! Mail 
(http://advision.webevents.yahoo.com/mailbeta/)

_______________________________________________
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