Re: RPM Packaging doubts

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

 



On Wed, Sep 2, 2009 at 8:33 AM, ram s <ramforummail@xxxxxxxxx> wrote:
Hello Sir,

thank you.

Is that jpackage for rpm creation of java application?.

I need to create rpm package for my java application.


From the jpackage project home page :

The JPackage Project has two primary goals:

  • To provide a coherent set of Java software packages for Linux, satisfying all quality requirements of other applications.
  • To establish an efficient and robust policy for Java software packaging and installation.

Therefore the answer to the above question is : yes. Indeed many linux distro follow this java packaging standard.
 

Also. i need to create rpm p[ackage for C application.

I rpm howto explains the procedure to create rpm.

but, I not understand RPM_BUILD_ROOT.
Is that /home/mypackage/rpmbuild directory.

Maybe I did not understand the question. Anyway.
In rpm 4.4.2.x.y.z the rpm build root - e.g. the stage area where in the SPEC you install your application in the %install section - have to be defined in the SPEC file as  something as

BuildRoot: %{_tmppath}/%{name}-root

- the _tmppath macros was defined in ~/.rpmmacros as something as
......................
%_topdir   %(echo $HOME)/rpmbuild
%_tmppath  %{_topdir}/tmp
.......................
In recent RPM version of rpm.org it is predefined (and BuildRoot directive is ignored) as

 %{_topdir}/BUILDROOT/%{name}-%{version}-%{release}.%{_arch}

if _topdir isn't defined in .rpmmacros it defaults to %{getenv:HOME}/rpmbuild

Also, if I have custom shell script to run and make the C application or java application, where can I call the shell script in spec file.

please give any good example spec file for the above doubts.

 In the %build section. In the %install section install <myapp> in %{buildroot}/<destdir> and in %file section write
<destdir>/<myapp>

No example spec to refer, but i think it is not necessary now.

hth
thank you.

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list


_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/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