Binary RPM | user defined name

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

 



Title: Binary RPM | user defined name

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

[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