Hi All,
I am new to linux. Still I am asked to package a war file as an RPM package. That is an unusual RPM packaging(To me). If you guys could guide me, on how to do that, will be great. I have a war file inside a folder, that folder is inside a tar file as a SOURCE for RPM package. The structure is like below.
--RPMS
--SOURCES
--tasmportlets-1.tar.gz(its a tar file)
--tasmportlets-1(its a folder)
--tasmportlets.war
--BUILD
--SPECS
--mySpecs.spec
--SRPMS
I simply want that the war file from sources is transferred to the web app of my tomcat server through RPM. I try to package it as an RPM, but its always giving me errors in %build stage. When I try to remove %build from stage from the spec file, then it says command missing.
Can anyone please help me here Or point me in the right direction? An example will be great.
My system details are:
SUSE Linux Enterprise Server 10 (x86_64)
VERSION = 10
PATCHLEVEL = 1
LSB_VERSION="core-2.0-noarch:core-3.0-noarch:core-2.0-x86_64:core-3.0-x86_64"
Hi,
Thanks for the reply.
This is the error.
The spec file has been attached as tasmportlet_original.txt and the /var/tmp/rpm-tmp.52497 has been attached as tmp.txt.
Moderator's Comments:
Please use code tags for console output. You've got an PM on how to do that.
Heyei Thanks for your help. It looks that we are getting nearer to the solution. The problem is with ./configure stage of the %build. It says
Code:
No such file or directoryerror: Bad exit status
Now I dont know what this .configure is as I already said that I am newby to linux. But so far I know that it is some config file needed for installation but in my case I am only copying and pasting the war file from one place to another. I dont know how to write this config file.
Quote:
Create empty lines between the prep, setup, and build sections.
I tried your way as well, which is at the same point, the %build. I cleaned the code below this stage but then it threw this error:
The configure script (./configure means the file/script named configure in the current directory) is usually generated by autoconf for use with automake. Since you don't need to invoke make you probably won't need it. So you can clear the build section (although the keyword still has to be there).
Hi, I wonder if anyone can point me in the right direction
I have a requirement to distribute a set of admin scripts that currently sit in an SVN repo by packaging them up in an RPM so that they can me unpacked to the correct location by simply installing the package .. e.g. 'yum install... (0 Replies)
Hi All,
I am trying to make rpm package for unixODBC driver manager 2.3.0 using below spec file. During rpmbuild i am getting the error. Can you pls advice how we can overcome this issue
%define name unixODBC
%define ver 2.3.0
%define prefix /usr
%define sysconfdir /etc
%define libdir... (2 Replies)
Good day people,
Hereby wish to have your advise for below:
I have some .jar files, some script files (install.sh, action.sh) , and a libaes.so file. Basically, the .jar files compute the operation of my system and define the working directory for my system.
My current scenario:
i trigger... (1 Reply)
Hi,
I need to create an RPM package for my java application.
Already build package for that application avail;able.
I need to create binary RPM package for my java application.
For that in spec file, do I need to write any script kind of thing to install my package.
any one have idea... (1 Reply)